input
stringlengths
10
828
output
stringlengths
5
107
public relationship role meta data get left relationship role return left
gets the left relationship role
public relationship role meta data get right relationship role return right
gets the right relationship role
public string get virtual host return virtual host
the servlet container virtual host the war should be deployed into
public boolean has on message method class c method method c get methods for int i 0 i method length i if is on message method method i return true return false
searches for an instance of a public on message method from the class
public boolean get distributable return distributable
the distributable flag
public void import ejb jar xml element element throws deployment exception ref name get element content get unique child element resource env ref name type get element content get unique child element resource env ref type
parse the ejb jar child element
public boolean get java2 class loading compliance return java2 class loading compliance
a flag indicating if the normal java2 parent first class loading model
public string get relationship role name return relationship role name
gets the relationship role name
public relation meta data get relation meta data return relation meta data
gets the relation meta data to which the role belongs
public relationship role meta data get related role meta data return relation meta data get other relationship role this
gets the related roles metadata
public boolean is multiplicity one return multiplicity one
checks if the multiplicity is one
public boolean is multiplicity many return multiplicity many
checks if the multiplicity is many
public boolean has create method class c method method c get methods for int i 0 i method length i if is create method method i return true return false
searches for an instance of a public create method from the class
public string get cmrfield name return cmr field name
gets the name of the entitys cmr field for this role
public string get cmrfield type return cmr field type
gets the type of the cmr field i
public boolean has ejbcreate method class c boolean is session method method c get methods for int i 0 i method length i if is ejb create method method i if is static method i is final method i is session has void return type method i is session return true return false
searches for an instance of a public ejb create method from the class
public string get run as role name return run as role name
get the run as security identity
public boolean has default create method class home method method home get methods for int i 0 i method length i if is create method method i class params method i get parameter types if params length 0 return true return false
searches the class or interface and its superclass or superinterface
public bean meta data get bean by ejb name string ejb name iterator iterator get enterprise beans while iterator has next bean meta data current bean meta data iterator next if current get ejb name equals ejb name return current not found return null
get an ejb by its declared lt ejb name gt tag
public boolean has ejbfind by primary key class c method method c get methods for int i 0 i method length i if method i get name equals ejb find by primary key return true return false
checks if the class has an ejb find by primary key method
public iterator get relationships return relationships iterator
get the container managed relations in this application
public boolean has primary key return type entity meta data entity method m try return m get return type is assignable from classloader load class entity get primary key class catch class not found exception cnfe only check equality return m get return type get name equals entity get primary key class
checks the return type of method matches the entitys primary key
public void remove container ejbcontainer con containers remove con get bean meta data get ejb name container ordering remove con
remove a container from this deployment unit
public void discard throws remote exception message driven bean instance ejb remove
calls ejb remove on the mdb instance
public ejbhome get ejbhome throw new illegal state exception mdb must not call get ejbhome ejb 2 0 15 4 3
not allowed for mdb
public ejblocal home get ejblocal home throw new illegal state exception mdb must not call get ejblocal home ejb 2 0 15 4 3
not allowed for mdb
public boolean is caller in role string id throw new illegal state exception mdb must not call is caller in role ejb 2 0 15 4 3
not allowed for mdb
public principal get caller principal throw new illegal state exception mdb must not call get caller principal ejb 2 0 15 4 3
not allowed for mdb
private boolean is tx required message driven meta data md message driven meta data con get bean meta data return md get method transaction type meta data tx required
helper to check if the tx type is tx required
public boolean get rollback only if is container managed tx throw new illegal state exception bean managed mdb are not allowed get rollback only ejb 2 0 15 4 3 jason i think this is lame but the spec says this is how it is i think it would be better to silently ignore or not so silently but still continue if is tx required throw new illegal state exception get rollback only must only be called in the context of a transaction ejb 2 0 15 5 1 return super get rollback only
if transaction type is not container or there is no transaction
public void set rollback only if is container managed tx throw new illegal state exception bean managed mdb are not allowed set rollback only ejb 2 0 15 4 3 if is tx required throw new illegal state exception set rollback only must only be called in the context of a transaction ejb 2 0 15 5 1 super set rollback only
if transaction type is not container or there is no transaction
public method get ejbfind by primary key class c method method c get methods for int i 0 i method length i if method i get name equals ejb find by primary key return method i return null
returns the ejb find by primary key method
public ejbcontainer get container string name return ejbcontainer containers get name
get a container from this deployment unit that corresponds to a given name
public handle get handle invocation mi return null
while the following methods are implemented in the client in the case
public collection get containers return container ordering
get all containers in this deployment unit
public iterator get ejbfind methods class c list finders new linked list method method c get methods for int i 0 i method length i if method i get name starts with ejb find finders add method i return finders iterator
returns the ejb find method methods of a bean
public ejbcontainer get container return con
gets the container that manages the wrapped bean
private void teardown environment throws exception context ctx context new initial context lookup java comp ctx unbind env log debug removed bindings from java comp env for ejb get bean meta data get ejb name
the code teardown environment code method unbinds everything from
public iterator get finder methods class home list finders new linked list method method home get methods for int i 0 i method length i if method i get name starts with find finders add method i return finders iterator
returns the finder methods of a home interface
public void set class loader class loader cl this class loader cl
set the class loader of this deployment unit
public url get url return deployment info url
get the url from which this deployment unit was deployed
public iterator get on message methods class c list on messages new linked list method method c get methods for int i 0 i method length i if is on message method method i on messages add method i return on messages iterator
returns the on message
public void clear this id null this locked 0 this principal null this bean principal null this synch null this transaction null
before reusing this context we clear it of previous state called
public string get local jndi name if local jndi name null local jndi name local ejb name return local jndi name
gets the jndi name under with the local home interface should be bound
public ejbobject get ejbobject invocation mi all we need is an ejbobject for this id the first argument is the id ejbproxy factory ci get proxy factory if ci null throw new illegal state exception return ejbobject ci get stateful session ejbobject mi get arguments 0
a method for the get ejbobject from the handle
public string get container object name jndi name return get home null get jndi name get local jndi name
gets the container jndi name used in the object name
public iterator get ejbcreate methods class c list ejb creates new linked list method method c get methods for int i 0 i method length i if is ejb create method method i ejb creates add method i return ejb creates iterator
returns the ejb create
protected void start service throws exception list iterator iter container ordering list iterator while iter has next ejbcontainer con ejbcontainer iter next log debug start service starting container con get bean meta data get ejb name service controller start con get jmx name
the mbean service interface code start code method calls
public iterator get create methods class c list creates new linked list method method c get methods for int i 0 i method length i if is create method method i creates add method i return creates iterator
return all create methods of a class
protected void stop service throws exception list iterator iter container ordering list iterator container ordering size while iter has previous ejbcontainer con ejbcontainer iter previous try log debug stop service stopping container con get bean meta data get ejb name service controller stop con get jmx name catch exception e log error unexpected exception stopping container con get jmx name e end of try catch
stops all the containers of this application
public boolean has more than one create methods class c int count 0 method method c get methods for int i 0 i method length i if is create method method i count return count 1
check whether a class has more than one create method
public boolean has matching method class bean method method try bean get method method get name method get parameter types return true catch no such method exception e return false
check if a class or its superclasses declare a given method
public boolean has matching return type method a method b return a get return type b get return type
check whether two methods have the same return type
public boolean has matching ejbpost create class bean method create try return bean get method get matching ejbpost create name create get name create get parameter types null catch no such method exception e return false
check whether a bean has a matching ejb post create methods for
public void set clean entity enterprise context ctx field state field state get field state ctx field state is dirty false update last read time if is read only field state last read system current time millis
mark this field as clean
private method attributes method attributes for method string method name method attributes ma method attributes cached method attributes get method name if ma null iterator iterator method attributes iterator while iterator has next ma null ma method attributes iterator next if ma pattern matches method name ma null if ma null ma method attributes k default method attributes cached method attributes put method name ma return ma
checks meta data to obtain the method attributes of a beans method
public boolean is method read only string method name return method attributes for method method name read only
is this method a read only method described in elba
public void set clean entity enterprise context ctx field state field state get field state ctx field state original value get instance value ctx update last read time if is read only field state last read system current time millis
mark this field as clean
public jdbcstore manager get jdbcstore manager return manager
gets the manager of this entity
public void execute entity enterprise context ctx entity init persistence context ctx entity init instance ctx
called before ejb create
public jdbcentity bridge get entity return entity
gets bridge for this entity
public jdbcread ahead meta data get read ahead return read ahead
gets the read ahead metadata for the query
public boolean equals object o if o instanceof jdbcautomatic query meta data return jdbcautomatic query meta data o method equals method return false
compares this jdbcautomatic query meta data against the specified object
public int hash code return method hash code
returns a hashcode for this jdbcautomatic query meta data
public jdbcrelation meta data get relation meta data return relation meta data
gets the relation to which this role belongs
public string to string return jdbcautomatic query meta data method method
returns a string describing this jdbcautomatic query meta data
public boolean has foreign key constraint return foreign key constraint
should this role use a foreign key constraint
public jdbcrelationship role meta data get meta data return metadata
gets the metadata of the relationship role that this field represents
public boolean is select distinct return distinct
should the select be distinct
public boolean is multiplicity many return multiplicity one
checks if the multiplicity is many
public void check message bean message driven meta data bean
provides an empty default implementation for ejb 1
public string get ejbname return ejb name
the name of the ejb from which the field will be selected
public boolean is indexed if is indexed null return true else return false
should an index be created for this column
public boolean is row locking return row locking
does this query need to lock rows select for update
public boolean is single valued return get related role is multiplicity one
is this field single valued that means it does not return a collection
public boolean equals object o if o instanceof jdbcdynamic qlquery meta data return jdbcdynamic qlquery meta data o method equals method return false
compares this jdbcdynamic qlquery meta data against the specified object
public string to string return jdbcdynamic qlquery meta data method method
returns a string describing this jdbcdynamic qlquery meta data
public boolean is collection valued return get related role is multiplicity many
is this field collection valued that means it returns a collection
public boolean equals object o if o instanceof jdbcql query meta data return jdbcql query meta data o method equals method return false
compares this jdbcql query meta data against the specified object
public jdbcrelation meta data get relation meta data return metadata get relation meta data
gets the relation metadata
public string get additional columns return additional columns
additional columns that should be added to the select clause
public int get jdbctype return jdbc type
gets the jdbc type of this property
public string to string return jdbcql query meta data method method
returns a string describing this jdbcql query meta data
public boolean equals object o if o instanceof jdbcdeclared query meta data return jdbcdeclared query meta data o method equals method return false
compares this jdbcdeclared query meta data against the specified object
public jdbcentity meta data get entity return entity
gets the name of the entity that has this role
public strategy context get context return context
returns the context object reference for this strategy implementation
public string to string return jdbcdeclared query meta data method method
returns a string describing this jdbcdeclared query meta data
public string get field name return metadata get cmrfield name
gets the name of this field
public void set table exists boolean table exists this table exists table exists
sets table exists flag
public string get alias header prefix return alias header prefix
gets the prefix for that is used when generating an alias header
public jdbccmpfield meta data get cmpfield return cmp field
gets the cmp field on which this property is defined
public jdbcrelationship role meta data get related role return relation meta data get other relationship role this
gets the related roles jdbc meta data
public boolean get table existed return table existed
did the table already exist in the db
public string get alias header suffix return alias header suffix
gets the suffix for that is used when generating an alias header
public string get sqltype return sql type
gets the sql type the property should use or null
public boolean equals object o if o instanceof jdbccmpfield property meta data jdbccmpfield property meta data cmp field property jdbccmpfield property meta data o return property name equals cmp field property property name cmp field equals cmp field property cmp field return false
compares this jdbccmpfield property meta data against the specified object
public int hash code int result 17 result 37 result cmp field hash code result 37 result property name hash code return result
returns a hashcode for this jdbccmpfield property meta data
public int get alias max length return alias max length
gets maximum length of a table alias
public collection get key fields return collections unmodifiable collection key fields values
gets the key fields of this role
public string to string return jdbccmpfield property meta data property name property name cmp field
returns a string describing this jdbccmpfield property meta data