input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public string get elba ql return elba ql | gets the elba ql query which will be invoked |
public boolean is subquery supported return subquery supported | does this type mapping support subqueries |
public boolean equals object o if o instanceof jdbcelba qlquery meta data return jdbcelba qlquery meta data o method equals method return false | compares this jdbcelba qlquery meta data against the specified object |
public string to string return jdbcelba qlquery meta data method method | returns a string describing this jdbcelba qlquery meta data |
public boolean is none return strategy none | is read ahead strategy is none |
public boolean is on load return strategy on load | is the read ahead stratey on load |
public boolean is on find return strategy on find | is the read ahead stratey on find |
public string get eager load group return eager load group | gets the eager load group |
public string to string return jdbcread ahead meta data strategy strategies get strategy page size page size eager load group eager load group | returns a string describing this jdbcread ahead meta data |
public int get jdbc type for java type class type string java type type get name check primitive first for int i 0 i primitives length i if java type equals primitives i translate into class java type primitive classes i break check other types jdbcmapping meta data mapping jdbcmapping meta data mappings get java type if not found return mapping for java lang object if mapping null mapping jdbcmapping meta data mappings get java lang object return mapping get jdbc type | gets the jdbc type which this class has mapped to the specified java |
public jdbctype mapping meta data get type mapping by name string name return jdbctype mapping meta data type mappings get name | gets the type mapping with the specified name |
public string get sql type for java type class type string java type type get name if the type is a primitive convert it to it s wrapper class for int i 0 i primitives length i if java type equals primitives i translate into class java type primitive classes i break check other types jdbcmapping meta data mapping jdbcmapping meta data mappings get java type if not found return mapping for java lang object if mapping null mapping jdbcmapping meta data mappings get java lang object return mapping get sql type | gets the sql type which this class has mapped to the java class |
public collection get relationships return collections unmodifiable collection relationships | gets the container managed relations in this application |
public collection get roles for entity string entity name collection roles collection entity roles get entity name return collections unmodifiable collection roles | gets the relationship roles for the entity with the specified name |
public jdbcread ahead meta data get read ahead return metadata get read ahead | gets the read ahead meta data |
public jdbcfunction mapping meta data get row locking template return row locking | returns row locking sql template |
public collection get value classes return collections unmodifiable collection value classes values | gets dependent value classes that are directly managed by the container |
public jdbcfunction mapping meta data get per table locking template return per table locking | returns per table locking sql template |
public jdbcentity meta data get bean by ejb name string name return jdbcentity meta data entities get name | gets the metadata for an entity bean by name |
public list get property overrides return collections unmodifiable list property overrides | gets the property overrides |
public jdbcentity meta data get bean by abstract schema name string name return jdbcentity meta data entities by abstract schema name get name | gets the metadata for an entity bean by the abstract schema name |
public jdbcrelationship role meta data get left relationship role return left | gets the left jdbc relationship role |
public jdbcentity meta data get bean by interface class intf return jdbcentity meta data entities by interface get intf | gets the metadata for an entity bean by the interface |
public jdbctype mapping meta data get type mapping return datasource mapping | gets the jdbc type mapping for this entity |
public jdbcread ahead meta data get read ahead return jdbcread ahead meta data default | gets the read ahead metadata for the query |
public jdbcentity command meta data get entity command by name string name return jdbcentity command meta data entity commands get name | gets the entity command with the specified name |
public boolean equals object o if o instanceof jdbcraw sql query meta data return jdbcraw sql query meta data o method equals method return false | compares this jdbcraw sql query meta data against the specified object |
public string to string return jdbcraw sql query meta data method method | returns a string describing this jdbcraw sql query meta data |
public jdbcrelationship role meta data get right relationship role return right | gets the right jdbc relationship role |
public string get parameter string return parameter string | gets the dotted parameter string for this parameter |
public boolean is primary key member return primary key member | is this field one of the primary key fields |
public boolean has foreign key return has foreign key | does this cmr field have foreign keys |
public boolean is table mapping style return mapping style table | should this relation be mapped to a relation table |
public string get abstract schema name return abstract schema name | gets the abstract shcema name of this entity |
public boolean is foreign key mapping style return mapping style foreign key | should this relation use foreign keys for storage |
public boolean is indexed if is primary key member return false else return gen index | should an index for this field be generated |
public boolean all fk fields mapped to pk fields return all fkfields mapped to pkfields | returns true if all fk fields are mapped to pk fields |
public field get primary key field return primary key field | gets the field of the primary key object which contains the value of |
public boolean is collection valued return metadata get related role is multiplicity many | is this a collection valued field |
public boolean is unknown pk field return unknown pk field | is this field an unknown primary key field |
public string get default table name return table name | gets the name of the relation table |
public entity container get container return container | gets the container for this entity |
public array list get default table post create cmd return table post create cmd | gets the user defined sql commands that should be |
public void set container ejbcontainer container this container entity container container if container null ejb module container get ejb module log logger get logger this get class get name container get bean meta data get ejb name else ejb module null | sets the container for this entity |
public boolean equals object o if o instanceof jdbccmpfield meta data jdbccmpfield meta data cmp field jdbccmpfield meta data o return field name equals cmp field field name entity equals cmp field entity return false | compares this jdbccmpfield meta data against the specified object |
public boolean is single valued return metadata get related role is multiplicity one | is this a single valued field |
public boolean is duplicate key sqlexception e return 23000 equals e get sqlstate | return true if the exception indicates that an operation failed due to a |
public class get home class return home class | gets the home class of this entity |
public int hash code int result 17 result 37 result entity hash code result 37 result field name hash code return result | returns a hashcode for this jdbccmpfield meta data |
public void execute jdbccmpfield bridge required field entity enterprise context ctx execute required field ctx true | loads entity or required field |
public class get remote class return remote class | gets the remote class of this entity |
public list get table key fields return table key fields | gets the key fields that this entity maintains in the relation table |
public string to string return jdbccmpfield meta data field name field name entity | returns a string describing this jdbccmpfield meta data |
public boolean get create table return create table | should the relation table be created on startup |
public boolean get remove table return remove table | should the relation table be removed on shutdown |
public class get local home class return local home class | gets the local home class of this entity |
public list get foreign key fields return foreign key fields | gets the foreign key fields of this entity i |
public boolean has primary key constraint return primary key constraint | when the relation table is created should it have a primary key |
protected sqlexception process exception throwable t if t instanceof invocation target exception t invocation target exception t get target exception if t instanceof sqlexception return sqlexception t if t instanceof runtime exception throw runtime exception t if t instanceof error throw error t log error t throw new illegal state exception | helper for subclasses that use reflection to avoid driver dependencies |
public object jjt accept elba qlparser visitor visitor object data return visitor visit this data | accept the visitor |
public class get local class return local class | gets the local class of this entity |
public jdbcoptimistic lock get optimistic lock entity enterprise context ctx if ctx get id null return null bean lock lock container get lock manager get lock ctx get id lock remove ref if lock instanceof jdbcoptimistic lock return jdbcoptimistic lock lock return null | returns optimistic lock associated with the context or null |
public jdbccmrfield bridge get related cmrfield return related cmrfield | the related entitys cmr field for this relationship |
public int get read time out return read time out | gets the read time out length |
public boolean has row locking return row locking | should select queries do row locking |
public boolean is cmp1x return is cmp1x | does this entity use cmp version 1 |
public jdbcstore manager get related manager return related manager | the related manger |
public boolean is cmp2x return is cmp1x | does this entity use cmp version 2 |
public entity bridge get related entity return related entity | the related entity |
public object children accept elba qlparser visitor visitor object data if children null for int i 0 i children length i children i jjt accept visitor data return data | accept the visitor |
public list get cmpfields return collections unmodifiable list cmp fields | gets the cmp fields of this entity |
public jdbcentity bridge get related jdbcentity return related entity | the related entity |
public list get lazy load groups return collections unmodifiable list lazy load groups | gets the collection of lazy load group names |
public boolean is read only return get relation meta data is read only | is this field readonly |
public object visit astwhere node object data node jjt get child 0 jjt accept this data return data | generates where clause without the where keyword |
public void create throws exception store a reference to this manager in an application level hashtable this way in the start method other managers will be able to know the other managers hash map managers map hash map get application data created jdbcstore managers if managers map null managers map new hash map put application data created jdbcstore managers managers map managers map put container get bean meta data get ejb name this | does almost nothing because other services such |
public list get load group string name throws deployment exception list group list load groups get name if group null throw new deployment exception unknown load group name name return group | gets the load group with the specified name |
public boolean is read timed out entity enterprise context ctx if we are read write then we are always timed out if is read only return true if read time out is 1 then we never time out if get relation meta data get read time out 1 return false long read interval system current time millis get field state ctx get last read return read interval get relation meta data get read time out | had the read time expired |
public list get dirty fields entity enterprise context ctx list dirty fields new array list fields size for iterator iter fields iterator iter has next jdbcfield bridge field jdbcfield bridge iter next if field instanceof jdbccmrfield bridge list dirty fk fields jdbccmrfield bridge field get dirty foreign key fields ctx if dirty fk fields is empty dirty fields add all dirty fk fields else if field is dirty ctx dirty fields add field return dirty fields | returns the list of dirty fields |
public void reset persistence context entity enterprise context ctx for iterator iter fields iterator iter has next jdbcfield bridge field jdbcfield bridge iter next field reset persistence context ctx | this is only called in commit option b |
private void wait awhile transaction tx release sync try synchronized readers try readers wait tx timeout catch interrupted exception e check transaction tx finally sync | use readers as a semaphore object to avoid |
private void notify waiters synchronized readers readers notify all | use readers as a semaphore object to avoid |
public object create bean class instance throws exception return create bean class instance command execute | returns a new instance of a class which implemnts the bean class |
public jdbccmpfield meta data get cmpfield by name string name return jdbccmpfield meta data cmp fields by name get name | gets the cmp field with the specified name |
public void set transaction transaction tx this tx tx | the set transaction associates a transaction with the lock |
public long get passivated count return m passivated size | get the passivated count |
public void add waiting transaction tx if tx null throw new illegal argument exception attempt to add waiting with a null transaction synchronized waiting waiting put tx this | add a transaction waiting for a lock |
public void end invocation invocation mi transaction tx mi get transaction if is read only tx lock tx null if we are not the owner won t synchronize was done first to pass the lock if tx equals get transaction false return if is read only tx lock end transaction tx | release method lock |
public void remove waiting transaction tx if tx null throw new illegal argument exception attempt to remove waiting with a null transaction synchronized waiting waiting remove tx | remove a transaction waiting for a lock |
public object visit astentity comparison node object data block string buffer buf block string buffer data node arg0 node jjt get child 0 node arg1 node jjt get child 1 if node opp compare entity true arg0 arg1 buf else compare entity false arg0 arg1 buf return buf | compre entity arg0 arg1 |
public object invoke invocation invocation throws exception transaction old transaction invocation get transaction for int i 0 i max retries i try return run with transactions invocation catch exception ex application deadlock exception deadlock application deadlock exception is ade ex if deadlock null if deadlock retryable old transaction null i 1 max retries throw deadlock log warn deadlock get message retrying i 1 thread sleep random next int 1 i random next int 1000 else throw ex throw new runtime exception unreachable | this method does invocation interpositioning of tx management |
protected void remove passivated long max life after passivation stateful session persistence manager store m container get stateful session persistence manager long now system current time millis iterator entries m passivated entry set iterator while entries has next map entry entry map entry entries next object key entry get key long passivation time long entry get value long value if now passivation time max life after passivation pre removal preparation key store remove passivated key if log is trace enabled log key must use iterator to avoid concurrent modification exception entries remove post removal cleanup key | remove all passivated instances that have been inactive too long |
public locking strategy get locking strategy if locking strategy null locking strategy locking strategy locking strategy by container get container return locking strategy | returns locking strategy implementation per lock instance |
public key generator get key generator if key generator null key generator key generator key generator by container get container return key generator | returns key generator per lock instance |
public object visit astconcat node object data block string buffer buf block string buffer data jdbcfunction mapping meta data function type mapping get function mapping concat object args new object new node string wrapper node jjt get child 0 new node string wrapper node jjt get child 1 buf append function get function sql args return buf | type mapping function translation |
protected string get sql object arg or args throws exception boolean tuned jaws entity has tuned updates return tuned make sql arg or args super get sql arg or args | returns dynamically generated sql if this entity |
public object get next locking value jdbccmpfield bridge field object value return get locking strategy get next locking value field value | returns the next value for a locking field |
public jdbcbean exists command create bean exists command if bean exists command null bean exists command new jdbcbean exists command this return bean exists command | singleton multiple callers get references to the |
protected void build sql string sql load command create select clause finder delegate get from clause finder delegate get where clause finder delegate get order by clause if jaws entity has row locking sql for update set sql sql | helper method called by the constructors |
public object visit astsubstring node object data block string buffer buf block string buffer data jdbcfunction mapping meta data function type mapping get function mapping substring object args new object new node string wrapper node jjt get child 0 new node string wrapper node jjt get child 1 new node string wrapper node jjt get child 2 buf append function get function sql args return buf | type mapping function translation |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.