input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
public void delete tooptype ref string id throws dbexception generic dao generic dao super get dbconnection get generic dao generic dao delete by id typeref table id
|
deletes a type reference
|
public string new instance string type dbref id string structure definition dbref id string db structure instance id throws dbexception ddo ddo super get dbconnection get ddo if ddo table exists instance table get name ddo create table instance table generic dao generic dao super get dbconnection get generic dao string unique id generic dao insert into instance table new string id type ref id structuredefinition ref id structureinstance new object type dbref id structure definition dbref id db structure instance id return unique id
|
adds an instance to the realm
|
public void insert toopstructure interface structure interface throws dbexception sqlexception generic dao generic dao super get dbconnection get generic dao generic dao insert into structure interface table new string packagename name new object structure interface get package name structure interface get name
|
insert a new structure interface in the database
|
public string insert instance ref string toop realm ref id string toop type ref id toopinstance ref toop instance ref throws dbexception ddo ddo super get dbconnection get ddo if ddo table exists instance ref table get name ddo create table instance ref table generic dao generic dao super get dbconnection get generic dao string unique id generic dao insert into instance ref table new string id realm ref id type ref id instance new object toop realm ref id toop type ref id toop instance ref get instance id return unique id
|
adds an instance reference to the realm
|
public string create tooprealm ref throws dbexception generic dao generic dao super get dbconnection get generic dao string unique id generic dao insert into realmref table new string new object return unique id
|
adds an empty realm reference
|
public string create tooptype class ref throws dbexception generic dao generic dao super get dbconnection get generic dao string unique id generic dao insert into typeclassref table new string new object return unique id
|
creates an empty type class reference
|
public void delete tooprealm ref string id throws dbexception generic dao generic dao super get dbconnection get generic dao generic dao delete by id realmref table id
|
delete a realm reference
|
public boolean update by id table definition table definition string columns object values string id throws dbexception if columns null columns length 0 throw new dbexception columns not specified string buffer sql new string buffer sql append update append table definition get name append set for int i 0 i columns length i if i 0 sql append sql append columns i append sql append where id object parameters new object 1 parameters 0 new integer id return execute update table definition columns values sql to string parameters 1
|
update a row in a table by id selection
|
public void execute throws dbexception try p stmt execute catch sqlexception ex throw new dbexception ex
|
executes a statement
|
public int execute update throws dbexception try return p stmt execute update catch sqlexception ex throw new dbexception ex
|
executes an update statement
|
public void delete tooptype class ref string id throws dbexception generic dao generic dao super get dbconnection get generic dao generic dao delete by id typeclassref table id
|
deletes a type class reference
|
public string insert tooprealm ref tooprealm ref toop realm ref throws dbexception string connection string toop realm ref get connection string if get dbconnection get dbrealm ref get connection string equals connection string connection string self connection string generic dao generic dao super get dbconnection get generic dao string unique id generic dao insert into realmref table new string connection string new object connection string return unique id
|
adds a realm reference to the realm
|
public int update where table definition table definition string columns object values string where clause object parameters throws dbexception string buffer sql new string buffer sql append update append table definition get name append set for int i 0 i columns length i if i 0 sql append sql append columns i append sql append where sql append where clause return execute update table definition columns values sql to string parameters
|
update a row in a table by id selection
|
public boolean update tooprealm ref string id tooprealm ref toop realm ref throws dbexception generic dao generic dao super get dbconnection get generic dao return generic dao update by id realmref table new string connection string new object toop realm ref get connection string id
|
update a realm reference to the given realm
|
protected int execute update table definition table definition string columns object values string sql object parameters throws dbexception if columns null columns length 0 throw new dbexception columns not specified dbstatement p stmt null try p stmt get dbconnection prepare statement sql to string int id parameter 1 if values null for int i 0 i values length i p stmt set value id parameter values i if parameters null for int i 0 i parameters length i p stmt set value id parameter parameters i return p stmt execute update finally if p stmt null p stmt close
|
executes a sql update and returns the number of updated rows
|
public tooprealm dbref get tooprealm ref string realm ref id throws dbexception generic dao generic dao super get dbconnection get generic dao object ret generic dao select by id realmref table new string id connection string realm ref id tooprealm dbref toop realm dbref null if ret null ret length 0 if self connection string equals ret 1 ret 1 get dbconnection get dbrealm ref get connection string toop realm dbref new tooprealm dbref string ret 0 string ret 1 return toop realm dbref
|
returns a type reference given the id
|
public string insert tooptype class ref string toop realm ref id tooptype class ref toop type class ref throws dbexception ddo ddo super get dbconnection get ddo if ddo table exists typeclassref table get name ddo create table typeclassref table generic dao generic dao super get dbconnection get generic dao string unique id generic dao insert into typeclassref table new string id realm ref packagename name new object toop realm ref id toop type class ref get package name toop type class ref get name return unique id
|
adds a type class reference to the realm
|
public boolean update tooptype class ref string id string toop realm ref id tooptype class ref toop type class ref throws dbexception generic dao generic dao super get dbconnection get generic dao return generic dao update by id typeclassref table new string id realm ref packagename name new object toop realm ref id toop type class ref get package name toop type class ref get name id
|
updates a type class reference to the realm
|
public void delete by id table definition table definition string id throws dbexception string buffer sql new string buffer sql append delete from append table definition get name sql append where id dbstatement p stmt null try p stmt get dbconnection prepare statement sql to string p stmt execute finally if p stmt null p stmt close
|
delete a row in a table by id selection
|
public void set default structure for type tooptype type toopstructure definition structure definition if type null default structure for type put type structure definition
|
sets the default structure to be used for a given type
|
public void set default structure for type class tooptype class type class toopstructure definition structure definition if type class null default structure for type class put type class structure definition
|
sets the default structure to be used for a given type class
|
public toopstructure definition get default structure for type tooptype type toopstructure definition structure definition toopstructure definition default structure for type get type return structure definition
|
returns the default structure to be used for a given type
|
public toopstructure definition get default structure for type class tooptype class type class toopstructure definition structure definition toopstructure definition default structure for type class get type class return structure definition
|
returns the default structure to be used for a given type class
|
public toopinstance ref new instance tooptype type throws toopexception toopstructure definition structure definition get default structure for type type if structure definition null if type get type class null structure definition get default structure for type class type get type class return new instance type structure definition
|
creates a new instance of the given type with default structure
|
public string get type repository path return type repository path
|
returns the path of the system toop type repository
|
public type catalog get type catalog if type catalog null read system type catalog return type catalog
|
return a type catalog instance representing toop types known by the system
|
public void on module load log set uncaught exception handler soup factory gwtsoupfactory get instance soupauthentication ontology init constants soup factory soupauthorization ontology init constants soup factory soupapplications ontology init constants soup factory soupservices ontology init constants soup factory soupuiontology init constants soup factory history add value change handler this
|
this is the entry point method
|
public boolean is normalized return is normalized
|
checks whether this object has already been normalized
|
private string int2string int i value int min digits string result string value of i value int zero count min digits result length if zero count 0 string builder sb new string builder min digits for int i 0 i zero count i sb append 0 sb append result result sb to string return result
|
converts an integer to a string enforcing the resulting string to have at
|
public string to string top entity ns holder return org string
|
returns string representation of a logical expression
|
public void on module load super on module load officina billi romagnoli init constants get soupfactory super set application context officina billi romagnoli officinabr context super set root object get soupfactory create uri http billibellu com apps super init interface
|
this is the entry point method
|
private connection async get data registry engine connection connection async connection uri data registry uri throws soupexception if engine connections get connection null uri engine uri data registry2 engine get data registry uri if engine uri null return get engine connection connection engine uri return null
|
return the connection to the first engine that knows the data registry
|
public world object get world object world object type type int index return this world objects map get type get index
|
warning accesses hashmap everytime
|
public void set getter method getter this getter getter
|
sets the getter method of this property
|
public void initialize sub class should over ride this
|
empty method that must be over ridden by sub class
|
public boolean is repeatable for int i 0 i parts length i if parts i is repeatable return false return true
|
returns code true code if all parts are repeatable code false code otherwise
|
override public string get name return this name
|
returns the name
|
public void init string path string filename property configurator configure path filename logger logger logger get logger log4j initialize class logger info log4j initilized
|
function log4j properties initialize br
|
public void do init string path string filename try msgparam prop new properties file input stream is new file input stream path filename read properties msgparam prop load is catch exception e1 e1 print stack trace
|
function read the message file into a hashmap br
|
public void do init string path string filename if config map null config map new hash map string map string string get the config index map string string index map this get config list path filename iterator valuesets index map key set iterator while valuesets has next string name string valuesets next string url string index map get name read the constant file content map string string constant map this read constant file path url put the constant file content to properties config map put name constant map
|
function read the system configuration constant br
|
public void append init string path string filename if config map null config map new hash map string map string string get the config index map string string index map this get config list path filename iterator valuesets index map key set iterator while valuesets has next string name string valuesets next string url string index map get name read the constant file content map string string constant map this read constant file path url put the constant file content to properties config map put name constant map
|
function add other constant into hashmap br
|
public void debug string msg logger log fqcn priority debug format msg msg null
|
logger a message with the debug level
|
public void error string msg logger log fqcn priority error format msg msg null
|
logger a message object with the error level
|
public void fatal string msg logger log fqcn priority fatal format msg msg null
|
logger a message object with the fatal level
|
public void info string msg logger log fqcn priority info format msg msg null
|
logger a message object with the info level
|
public void warn string msg logger log fqcn priority warn format msg msg null
|
logger a message object with the warn level
|
public string uppercase initial string word if word null equals word return return word substring 0 1 to upper case word substring 1 word length
|
convert the initial letter of a word to uppercase
|
public void log priority priority string msg logger log fqcn priority format msg msg null
|
logger a message object with the costom level
|
public void log priority priority string msg throwable e boolean exlog flag logger log fqcn priority format msg msg e exlog flag e null
|
logger a message object with the costom level
|
public void l7dlog priority priority string msg id throwable e boolean exlog flag string msg null messages this get messages if messages null msg messages get message msg id if msg null msg msg id logger log fqcn priority format msg msg e exlog flag e null
|
log a localized and parameterized message
|
public void l7dlog priority priority string msg id string args throwable e boolean exlog flag string msg null messages this get messages if messages null msg messages get message msg id if msg null msg msg id logger log fqcn priority format msg msg e exlog flag e null
|
log a localized and parameterized message
|
public void logerror exception e e print stack trace
|
function print the exception trace br
|
public void start method string s name debug method s name started
|
write a message when start a method
|
public void end method string s name debug method s name ended
|
write a message when end a method
|
private string retrieve java type string type in excel if char equals ignore case type in excel varchar2 equals type in excel varchar equals type in excel return string else if number equals ignore case type in excel return long else if date equals ignore case type in excel return date else return
|
convert db style type names to java style names
|
public void info string msg try handler write info msg n catch ioexception e system out println cannot log message msg
|
logs an information message
|
public boolean perform ok if super perform ok ant view ant view antview plugin get default get ant view if null ant view return true ant view content provider view content provider ant view get view content provider if null view content provider return true vector target vector view content provider get target vector target vector remove all elements view content provider reset ant view refresh return true return false
|
method perform ok
|
public string decorate text string text object obj try return tree node obj decorate text text catch class cast exception e return text
|
method decorate text
|
public image decorate image image image object obj try return tree node obj decorate image image catch class cast exception e return image
|
method decorate image
|
private void hook context menu menu manager menu mgr new menu manager popup menu menu mgr set remove all when shown true menu mgr add menu listener new imenu listener public void menu about to show imenu manager manager ant view this main context menu manager menu menu menu mgr create context menu viewer get control viewer get control set menu menu get site register context menu menu mgr viewer
|
method hook context menu
|
private void main context menu imenu manager manager manager add action action map get iconstants image run manager add action action map get iconstants image refresh manager add action action map get iconstants image clear menu manager submenu new menu manager resource mgr get string label display level manager add submenu msg lvl context menu submenu manager add new separator other plug ins can contribute there actions here manager add new separator additions
|
method main context menu
|
public action get msg level action string action return action action map get action
|
method get msg level action
|
public vector get target vector return vector tree root get property target vector
|
method get target vector
|
public void remove child tree node child children remove child child set parent null
|
method remove child
|
public string decorate text string text return text
|
method decoreate text
|
public void set selected if selected selected false else selected true
|
method set selected
|
public object get property string key return property get key
|
method get property
|
public void set property string key object data property put key data
|
sets the property
|
public void remove property string key property remove key
|
method remove property
|
public image decorate image image image return image
|
method decorate image
|
public void clear head 0 tail 0 empty true
|
empties the buffer
|
public boolean is passive mode return is active mode
|
returns true iff this data connection is in passive mode
|
public int get writable byte channel channel throws java io ioexception if can get return 0 int r 0 if tail head head tail empty capacity is limit buffer limit buffer capacity buffer position tail r channel write buffer inc tail r if tail head head is limit buffer limit head buffer position tail int r2 channel write buffer inc tail r2 r r2 return r
|
gets bytes from this buffer
|
public inet socket address get local listening address if is passive mode return listening address else throw new illegal state exception must be in passive mode
|
returns the address of the a listening socket
|
protected void inc tail int delta if delta 0 tail delta if tail buffer capacity tail buffer capacity if tail head empty true
|
increases tail by a positive amount and updates empty flag
|
public boolean can get return empty
|
returns true if the buffer is not empty
|
public boolean is active mode return port address null
|
returns true iff this data connection is in active mode
|
protected void inc head int delta if delta 0 head delta if head buffer capacity head buffer capacity empty false
|
increases head by a positive amount and clears the empty flag
|
public boolean is connected return data socket null data socket is connected
|
returns true iff there is an established data connection
|
public boolean can put return head tail empty
|
returns true if the buffer is not full
|
public void start data transfer boolean read if read data transfer op selection key op read else data transfer op selection key op write if data socket null data socket key for selector interest ops data transfer op try data socket register selector data transfer op this catch ioexception ex should throw an exception on the next select try data socket close catch ioexception ignore else throw new illegal state exception not yet connected
|
starts data transfer
|
public void close throws ioexception if data socket null data socket close if listening socket null listening socket close
|
closes this connection
|
public void reset state type ascii true logged in false username null restart marker 0 required commands null cmds clear in buffer null response iterator null response current buffer null close connection after response false charset null abortable command active false
|
resets the state of this object
|
public iterator get byte buffer iterator charset charset return new response byte buffer iterator charset
|
gets an iterator that returns byte buffer objects containing this
|
public boolean execute command cmd if sc is connected return false fails if another cmd is being executed if command null return false command cmd sk interest ops sk interest ops selection key op write out buffer charset encode command get command string r n fire output command get command string return true
|
executes a command
|
public void command finished command null if abort command null command abort command abort command null
|
indicates that the current command is complete and new commands can
|
public response supported features map features if features size 0 return new response 211 no supported extensions vector v new vector v add extensions supported for iterator it features key set iterator it has next string name string it next string params string features get name if params null v add name params else v add name v add end return new response 211 v
|
returns a feat command response
|
public abstract command abort abstract command cmd new simple command abor if command null if execute cmd return null else selects writing and enqueues abort command if sc is connected return null sk interest ops sk interest ops selection key op write abort out buffer charset encode cmd get command string r n fire output cmd get command string abort command cmd return cmd
|
aborts the current cmd
|
public void close throws ioexception if sc null return if sk null sk cancel sk null if out buffer null out buffer clear sc close
|
closes this connection
|
public response modification time date time calendar cal new gregorian calendar time zone get time zone gmt 0 cal set time time return new response 213 cal get gregorian calendar year cal get gregorian calendar month cal get gregorian calendar day of month cal get gregorian calendar hour of day cal get gregorian calendar minute cal get gregorian calendar second
|
returns a mdtm response in yyyymmddhhmmss format
|
public void set type ascii type ascii true
|
sets the transfer type to ascii
|
public void command response response response sk interest ops sk interest ops selection key op write response iterator response get byte buffer iterator charset response current buffer byte buffer response iterator next remove command after response response get code 100 response get code 200 if remove command after response data commands are not active anymore this needs to be reset now and not after writing the response as this response changes behaviour of the abort command otherwise an abort could try to stop a data transfer that is already finished abortable command active false todo fire output notification
|
called by handlers after they finished processing a command and have the
|
public void set type image type ascii false
|
sets the transfer type to image binary
|
public boolean is type ascii return type ascii
|
returns true iff transfer type is ascii
|
public boolean is type image return type ascii
|
returns true iff transfer type is image
|
public void command response and close response response runnable callback command response response close connection after response true close connection after response cb callback
|
called by handlers after they finished processing a command and have the
|
public void add input listener control connection listener l ccls in add l
|
adds a listener for incoming lines
|
public void remove input listener control connection listener l ccls in remove l
|
removes a listener for incoming lines
|
protected void fire input char sequence line ccls in fire line
|
tells listeners about incoming lines
|
public void add output listener control connection listener l ccls out add l
|
adds a listener for outgoing lines
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.