input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public byte get column byte string column name throws db exception try return new byte result set get byte column name catch sqlexception e log error no column byte db raise db exception e get message sql query get column byte sql query get column byte return null | gets a column byte based on the column name for the current row |
public int get db connection max wait return db connection max wait | gets a database connection max wait |
public void set db connection max wait int db connection max wait this db connection max wait db connection max wait | sets a database connection max wait |
public array get column array string column name throws db exception try return result set get array column name catch sqlexception e log error no column array db raise db exception e get message sql query get column array sql query get column array return null | gets a column array based on the column name for the current row |
public void set db connection max wait string db connection max wait as string set db connection max wait integer parse int db connection max wait as string | sets a database connection max wait |
public db config api get db config return db config | returns a database configuration |
public blob get column blob string column name throws db exception try return result set get blob column name catch sqlexception e log error no column blob db raise db exception e get message sql query get column blob sql query get column blob return null | gets a column blob based on the column name for the current row |
private void set db config db config api db config this db config db config | sets a database configuration |
public clob get column clob string column name throws db exception try return result set get clob column name catch sqlexception e log error no column clob db raise db exception e get message sql query get column clob sql query get column clob return null | gets a column clob based on the column name for the current row |
public ref get column ref string column name throws db exception try return result set get ref column name catch sqlexception e log error no column ref db raise db exception e get message sql query get column ref sql query get column ref return null | gets a column ref based on the column name for the current row |
public boolean is opened connection throws db exception try if connection null return connection is closed catch sqlexception e throw new db exception e get message return false | checks if the sql database connection is opened |
private object execute get neighbor method ientity entity string neighbor code object neighbor value null try if entity get concept config get code equals concept neighbor code equals model exception in the concept concepts configuration class neighbor code domain model neighbor value reflector get field entity neighbor code catch exception e log error error in model meta execute get neighbor method entity get concept config get code e get message return neighbor value | executes the entity get neighbor method |
public boolean has next boolean outcome false if size 0 if position size 1 outcome true try if outcome false iterator db query release catch db exception e log error database exception in the iterator has next method e return outcome | checks if there is the next db query record |
public object next db query record old api next record null try if iterator db query next next record iterator db query current record else iterator db query release position catch db exception e log error database exception in the iterator next method e return next record | returns the next database query record object if it exists otherwise null |
public void set loaded boolean loaded this loaded loaded model model model get model model set initialized loaded | sets to code true code if the persistent model is loaded |
private void create persistent entries throws persistency exception model model model get model list ientities entry list model get entry list for ientities entry entry list ipersistent entities persistent entry new persistent entities entry this persistent entry map put entry get concept config persistent entry | creates persistent entries |
public ipersistent entities get persistent entry string entry code ipersistent entities entry null for iterator i persistent entry map entry set iterator i has next map entry e map entry i next concept config concept config concept config e get key if concept config get code equals ignore case entry code concept config get entities code equals ignore case entry code entry ipersistent entities e get value break return entry | gets the persistent entry for a given entry code |
public void load throws persistency exception set loaded false for map entry e persistent entry map entry set ipersistent entities persistent entry ipersistent entities e get value persistent entry load set loaded true | loads the persistent model |
public void save throws persistency exception for map entry e persistent entry map entry set ipersistent entities persistent entry ipersistent entities e get value persistent entry save | saves the persistent model |
public void close get model close | closes the persistent model |
public void set data file path string data file path this data file path data file path | sets the data file path |
public string get data file path if data file path null string file name entities get concept config get file name string sep file separator xml model xml model xml model persistent model string data directory path xml model get data directory path file data directory new file data directory path if data directory exists data directory mkdirs data file path data directory path sep file name return data file path | gets the data file path |
public void load throws persistency exception try saxreader reader new saxreader string data file path get data file path document document reader read data file path load document catch exception e log error problem with xml entities load e get message log info check if a path to the data file has space s throw new persistency exception e get message | loads entry entities from the xml data file |
private void load document document throws dm exception element root document get root element load root | loads entry entities from the xml document |
protected void load element element throws persistency exception try for iterator i element element iterator i has next element child element element i next model model model persistent model get model ientity entity model get model meta create entity entities xml entity xml entity new xml entity entity persistent model xml entity load child element entities add t xml entity get entity catch exception e log error problem with xml entities load element get name e get message throw new persistency exception e get message | loads an element |
public void save throws persistency exception try document document document helper create document fill document save document get data file path utf 8 catch exception e log error problem with xml entities save e get message throw new persistency exception e get message | saves data to the xml data file |
private void fill document document throws persistency exception try string concept code entities get concept config get code string concepts code entities get concept config get entities code text handler text handler new text handler string small letter concept code text handler first letter to lower concept code string small letter concepts code text handler first letter to lower concepts code element root document add element small letter concepts code fill root small letter concept code catch exception e log error problem with xml entities fill e get message throw new persistency exception e get message | fills an xml document |
protected void load element element throws persistency exception try entity entity entity get entity attribute oid attribute element attribute oid if oid attribute null string oid string oid attribute get text trim oid oid new oid transformer long integer oid string entity set oid oid element code child element element code if code child null string code code child get text trim entity set code code load property children element load neighbor children element catch exception e log error problem with xml entity load element get name e get message throw new persistency exception e get message | loads an xml element |
public void set data directory path string data directory path this data directory path data directory path | sets the data directory path |
public string get data directory path return data directory path | gets the data directory path |
protected void fill element element throws persistency exception try entity entity entity get entity string oid string transformer string entity get oid get unique number if oid string null element add attribute oid oid string string code entity get code if code null element add element code add text code fill property children element fill neighbor children element catch exception e log error problem with xml entity fill element get name e get message throw new persistency exception e get message | fills an xml element |
public db sequence api get db sequence throws db exception if db sequence null db sequence db sequence get instance this return db sequence | returns the database sequence used to generate object identifiers oid |
public void set value object value if values null values new object value else this values 0 value | sets a simple criteria search value |
public db criteria api add db criteria db criteria api db criteria if db criteria null return this if db criterias and link types size 0 db criteria logical operator db criteria link new db criteria logical operator and db criteria db criterias and link types add db criteria link else db criterias and link types add new db criteria logical operator null db criteria first db criteria return this | adds a database selection criteria |
public list items return db criterias and link types | returns a list of items |
public void clear db criterias and link types clear | clears a list of items |
public void commit throws db exception for int i 0 i db connections size i db connection api db connection db connection api db connections get i sql db connection db connection commit release | commits a transaction |
public void rollback try for int i 0 i db connections size i db connection api db connection db connection api db connections get i sql db connection db connection rollback catch db exception e log error transaction rollback problem db query get db raise db exception e get message db transaction release db transaction release finally release | rollbacks a transaction |
public boolean is opened throws db exception try if connection null return connection is closed catch sqlexception e throw new db exception e get message return false | checks if the sql database connection is opened |
protected boolean next throws db exception try if opened if result set next return true return false else return false catch sqlexception e log error problem with next db raise db exception e get message sql db query next sql db query next return false | finds the next sql database query record if it exists |
protected void release throws db exception exception e null if opened try if result set null result set close prepared statement close catch sqlexception sqle e sqle finally super release if e null log error sql db query not closed db raise db exception e get message sql db query release sql db query release | releases the sql database query |
protected void sql command string sql throws db exception try if opened if db connection null db connection is opened db connection db get db connection prepared statement sql db connection db connection get connection prepare statement sql opened true catch sqlexception e log error problem with the sql command db raise db exception e get message sql db query sql command sql db query sql command | prepares an sql command for a closed sql database query |
protected void sql cleanup throws db exception try if opened prepared statement clear parameters catch sqlexception e log error sql db query sql cleanup problem db raise db exception e get message sql db query sql cleanup sql db query sql cleanup | clears sql command parameters |
public long get new oid string table name throws db exception return get new seq table name oid | gets a new oid |
protected boolean create table try sql db connection rel con sql db connection db get db connection connection con rel con get connection prepared statement create stmt con prepare statement create create stmt execute update create stmt close return true catch exception e log error unable to create the drdb sequence table e get message return false | creates an sql database sequence table |
protected void release for int i 0 i db queries size i db query db query db query db queries get i try db query set db transaction null db connection api db query connection db query get db connection db query connection close catch db exception e log error transaction release problem db query get db raise db exception e get message db transaction release db transaction release db queries remove i | releases a transaction |
public list get db connections return db connections | obtains all db connections |
protected void sql query throws db exception try if opened result set prepared statement execute query catch sqlexception e log error sql db query sql query problem db raise db exception e get message sql db query sql query sql db query sql query | executes an sql select command |
protected int sql update throws db exception int updated rows count 1 try if opened updated rows count prepared statement execute update catch sqlexception e log error sql db query sql update problem db raise db exception e get message sql db query sql update sql db query sql update return updated rows count | executes an sql update command |
protected int get row count throws db exception try if result set next return result set get int 1 based on select count from table name else return 1 catch sqlexception e log error no row count db raise db exception e get message sql db query get row count sql db query get row count return 1 | gets a row count |
public void set db connections min count int db connections min count this db connections min count db connections min count | sets a database connections min count |
protected string get column string string column name throws db exception try return result set get string column name catch sqlexception e log error no column string db raise db exception e get message sql db query get column string sql db query get column string return | gets a column string based on the column name for the current row |
protected integer get column integer string column name throws db exception try string col value result set get string column name return col value null new integer col value null catch sqlexception e log error no column integer db raise db exception e get message sql db query get column integer sql db query get column integer return null | gets a column integer based on the column name for the current row |
public object next db query record api next record null try if iterator db query next next record iterator db query current record else iterator db query release position catch db exception e log error database exception in the iterator next method e return next record | returns the next database query record object if it exists otherwise |
protected double get column double string column name throws db exception try string col value result set get string column name return col value null new double col value null catch sqlexception e log error no column double db raise db exception e get message sql db query get column double sql db query get column double return null | gets a column double based on the column name for the current row |
protected long get column long string column name throws db exception try string col value result set get string column name return col value null new long col value null catch sqlexception e log error no column long db raise db exception e get message sql db query get column long sql db query get column long return null | gets a column long based on the column name for the current row |
protected float get column float string column name throws db exception try string col value result set get string column name return col value null new float col value null catch sqlexception e log error no column float db raise db exception e get message sql db query get column float sql db query get column float return null | gets a column float based on the column name for the current row |
protected short get column short string column name throws db exception try string col value result set get string column name return col value null new short col value null catch sqlexception e log error no column short db raise db exception e get message sql db query get column short sql db query get column short return null | gets a column short based on the column name for the current row |
protected boolean get column boolean string column name throws db exception try string col value result set get string column name if col value null if col value equals 1 col value equals true return new boolean true else if col value equals 0 col value equals false return new boolean false return null catch sqlexception e log error no column boolean db raise db exception e get message sql db query get column boolean sql db query get column boolean return null | gets a column boolean based on the column name for the current row |
protected date get column date string column name throws db exception try return result set get date column name catch sqlexception e log error no column date db raise db exception e get message sql db query get column date sql db query get column date return null | gets a column date based on the column name for the current row |
public pilot2 get pilot2 oid oid return retrieve by oid oid | retrieves the pilot2 with a given oid |
public pilot2 get pilot2 long oid unique number return get pilot2 new oid oid unique number | retrieves the pilot2 with a given oid unique number |
protected time get column time string column name throws db exception try return result set get time column name catch sqlexception e log error no column time db raise db exception e get message sql db query get column time sql db query get column time return null | gets a column time based on the column name for the current row |
public pilot2 get pilot2 string property code object property return retrieve by property property code property | retrieves the first pilot2 whose property with a |
public pilots2 get pilots2 string property code object property return pilots2 select by property property code property | selects pilots2 whose property with a property code is equal to a property |
public pilots2 get pilots2 property rule pilot2 rule return pilots2 select by rule rule | gets pilots2 selected by a property rule |
public pilots2 get firstname pilots2 string firstname property rule pilot2 rule property rule define equal firstname firstname return get pilots2 rule | gets firstname pilots2 |
public pilots2 get pilots2 ordered by license id boolean ascending order rule pilot2 rule order rule define order license id ascending return get pilots2 rule | gets pilots2 ordered by license id |
protected object get column object string column name throws db exception try return result set get object column name catch sqlexception e log error no column object db raise db exception e get message sql db query get column object sql db query get column string return null | gets a column object based on the column name for the current row |
public pilots2 get pilots2 ordered by lastname boolean ascending order rule pilot2 rule order rule define order lastname ascending return get pilots2 rule | gets pilots2 ordered by lastname |
public pilots2 get pilots2 ordered by firstname boolean ascending order rule pilot2 rule order rule define order firstname ascending return get pilots2 rule | gets pilots2 ordered by firstname |
public pilots2 get pilots2 ordered by points boolean ascending order rule pilot2 rule order rule define order points ascending return get pilots2 rule | gets pilots2 ordered by points |
protected byte get column byte string column name throws db exception try return new byte result set get byte column name catch sqlexception e log error no column byte db raise db exception e get message sql db query get column byte sql db query get column byte return null | gets a column byte based on the column name for the current row |
protected array get column array string column name throws db exception try return result set get array column name catch sqlexception e log error no column array db raise db exception e get message sql db query get column array sql db query get column array return null | gets a column array based on the column name for the current row |
protected blob get column blob string column name throws db exception try return result set get blob column name catch sqlexception e log error no column blob db raise db exception e get message sql db query get column blob sql db query get column blob return null | gets a column blob based on the column name for the current row |
protected clob get column clob string column name throws db exception try return result set get clob column name catch sqlexception e log error no column clob db raise db exception e get message sql db query get column clob sql db query get column clob return null | gets a column clob based on the column name for the current row |
protected ref get column ref string column name throws db exception try return result set get ref column name catch sqlexception e log error no column ref db raise db exception e get message sql db query get column ref sql db query get column ref return null | gets a column ref based on the column name for the current row |
public pilot get pilot oid oid return retrieve by oid oid | retrieves the pilot with a given oid |
public pilot get pilot long oid unique number return get pilot new oid oid unique number | retrieves the pilot with a given oid unique number |
public pilot get pilot string property code object property return retrieve by property property code property | retrieves the first pilot whose property with a |
public pilots get pilots string property code object property return pilots select by property property code property | selects pilots whose property with a property code is equal to a property |
public pilots get pilots property rule pilot rule return pilots select by rule rule | gets pilots selected by a property rule |
public pilots get firstname pilots string firstname property rule pilot rule property rule define equal firstname firstname return get pilots rule | gets firstname pilots |
public pilots get pilots ordered by license id boolean ascending order rule pilot rule order rule define order license id ascending return get pilots rule | gets pilots ordered by license id |
public pilots get pilots ordered by lastname boolean ascending order rule pilot rule order rule define order lastname ascending return get pilots rule | gets pilots ordered by lastname |
public pilots get pilots ordered by firstname boolean ascending order rule pilot rule order rule define order firstname ascending return get pilots rule | gets pilots ordered by firstname |
public pilots get pilots ordered by points boolean ascending order rule pilot rule order rule define order points ascending return get pilots rule | gets pilots ordered by points |
public pilot3 get pilot3 oid oid return retrieve by oid oid | retrieves the pilot3 with a given oid |
public pilot3 get pilot3 long oid unique number return get pilot3 new oid oid unique number | retrieves the pilot3 with a given oid unique number |
public pilot3 get pilot3 string property code object property return retrieve by property property code property | retrieves the first pilot3 whose property with a |
public pilots3 get pilots3 string property code object property return pilots3 select by property property code property | selects pilots3 whose property with a property code is equal to a property |
public pilots3 get pilots3 property rule pilot3 rule return pilots3 select by rule rule | gets pilots3 selected by a property rule |
public pilots3 get firstname pilots3 string firstname property rule pilot3 rule property rule define equal firstname firstname return get pilots3 rule | gets firstname pilots3 |
public pilots3 get pilots3 ordered by license id boolean ascending order rule pilot3 rule order rule define order license id ascending return get pilots3 rule | gets pilots3 ordered by license id |
public pilots3 get pilots3 ordered by lastname boolean ascending order rule pilot3 rule order rule define order lastname ascending return get pilots3 rule | gets pilots3 ordered by lastname |
public pilots3 get pilots3 ordered by firstname boolean ascending order rule pilot3 rule order rule define order firstname ascending return get pilots3 rule | gets pilots3 ordered by firstname |
public pilots3 get pilots3 ordered by points boolean ascending order rule pilot3 rule order rule define order points ascending return get pilots3 rule | gets pilots3 ordered by points |
public pilot5 get pilot5 oid oid return retrieve by oid oid | retrieves the pilot5 with a given oid |
public pilot5 get pilot5 long oid unique number return get pilot5 new oid oid unique number | retrieves the pilot5 with a given oid unique number |
public pilot5 get pilot5 string property code object property return retrieve by property property code property | retrieves the first pilot5 whose property with a |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.