input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public void lock field jdbcfield bridge field entity enterprise context ctx get locking strategy lock field field ctx | this method actually locks the field |
public object visit astlcase node object data block string buffer buf block string buffer data jdbcfunction mapping meta data function type mapping get function mapping lcase object args new object new node string wrapper node jjt get child 0 buf append function get function sql args return buf | type mapping function translation |
public void lock field value jdbcfield bridge field entity enterprise context ctx get locking strategy lock field value field ctx | locks fields value but not the field |
public void update locked field values entity enterprise context ctx for iterator locked fields iter get locked fields ctx iterator locked fields iter has next final jdbccmpfield bridge field jdbccmpfield bridge locked fields iter next locking strategy update locked field value field ctx | updates locked field values |
protected void set sql string sql if log is debug enabled log debug name sql sql this sql sql | used to set static sql in subclass constructors |
public object visit astucase node object data block string buffer buf block string buffer data jdbcfunction mapping meta data function type mapping get function mapping ucase object args new object new node string wrapper node jjt get child 0 buf append function get function sql args return buf | type mapping function translation |
protected string get sql object arg or args throws exception return sql | gets the sql to be used in the prepared statement |
public object get locked field value jdbccmpfield bridge field entity enterprise context ctx return get locking strategy get locked field value field ctx | returns locked fields value |
public jpmfind entities command create find entities command if find entities command null find entities command new jdbcfind entities command this return find entities command | singleton multiple callers get references to the |
public collection get locked fields entity enterprise context ctx return get locking strategy get locked fields ctx | returns all the locked fields |
public object visit astlength node object data block string buffer buf block string buffer data jdbcfunction mapping meta data function type mapping get function mapping length object args new object new node string wrapper node jjt get child 0 buf append function get function sql args return buf | type mapping function translation |
public void destroy relation links entity enterprise context my ctx object related id destroy relation links my ctx related id true | destroys the relation links between the instance associated with the |
public object visit astlocate node object data block string buffer buf block string buffer data jdbcfunction mapping meta data function type mapping get function mapping locate object args new object 3 args 0 new node string wrapper node jjt get child 0 args 1 new node string wrapper node jjt get child 1 if node jjt get num children 3 args 2 new node string wrapper node jjt get child 2 else args 2 1 add the sql to the current buffer buf append function get function sql args return buf | type mapping function translation |
public int get list cache max return list cache max | the maximum number of qurey result lists that will be tracked |
private void check field throws deployment exception try field verify nested field catch deployment exception e try it again but debug class before debug class ejb class field verify nested field log warn using buggy hotspot try to upgrade | detects the actual field of a nested field and sets field accordingly |
public void after completion int status map tx map map get application data tx data key synchronized tx map tx map remove tx | free up any data associated with this transaction |
public object visit astabs node object data block string buffer buf block string buffer data jdbcfunction mapping meta data function type mapping get function mapping abs object args new object new node string wrapper node jjt get child 0 buf append function get function sql args return buf | type mapping function translation |
public void empty key null trans null | named empty to not collide with superclass clear |
public object visit astsqrt node object data block string buffer buf block string buffer data jdbcfunction mapping meta data function type mapping get function mapping sqrt object args new object new node string wrapper node jjt get child 0 buf append function get function sql args return buf | type mapping function translation |
public collection get queries return collections unmodifiable collection queries values | gets the queries defined on this entity |
private void debug class class debug class field fields debug class get fields for int i 0 i fields length i | workaround for certain hotspot problems |
public collection get relationship roles return jdbc application get roles for entity entity name | get the relationsip roles of this entity |
protected void create service throws exception context ctx provider adapter get initial context try string factory name provider adapter get queue factory ref queue connection factory factory queue connection factory ctx lookup factory name log debug using factory factory connection factory create queue connection log debug created connection connection dlq queue ctx lookup destination jndi log debug using queue dlq catch exception e if e instanceof jmsexception throw e else jmsexception x new jmsexception error creating the dlq connection e get message x set linked exception e throw x finally ctx close | initalize the service |
public void set invoker meta data invoker proxy binding meta data imd invoker meta data imd | set the invoker meta data so that the proxy factory can initialize properly |
protected message make writable message msg throws jmsexception hashtable tmp new hashtable save properties for enumeration en msg get property names en has more elements string key string en next element tmp put key msg get object property key make them writable msg clear properties enumeration keys tmp keys while keys has more elements string key string keys next element msg set object property key tmp get key return msg | make the message properties writable |
public class get primary key class return primary key class | gets the primary key class for this entity |
public object get initial value jdbccmpfield bridge field throw new illegal state exception method get initial value isn t supported by the chosen locking strategy | returns initial value for a locking field |
public void free enterprise context ctx if transaction still present don t do anything let the instance be gc if ctx get transaction null if log is trace enabled log trace can not free entity context because a transaction exists return super free ctx | return an instance to the free pool |
public void set container ejbcontainer container super set container container if container null bean name container get bean meta data get jndi name | stores the container reference and the application and bean jndi |
public void set container ejbcontainer container this container container | set the container for which this is an invoker to |
public object get next locking value jdbccmpfield bridge field object value throw new illegal state exception method get next locking value isn t supported by the chosen locking strategy | returns the next value for a locking field |
public void set container ejbcontainer container super set container container if container null bean meta data bean meta data container get bean meta data security identity meta data sec meta data bean meta data get security identity meta data if sec meta data null sec meta data get use caller identity false string role name sec meta data get run as role name run as role new simple principal role name | called by the super class to set the container to which this interceptor |
public jdbcentity command meta data get entity command return entity command | gets the entity command metadata |
public object get related id entity enterprise context my ctx if is collection valued throw new ejbexception get related id may only be called on a cmr field with a multiplicity of one load my ctx collection c get field state my ctx get value if c is empty return c iterator next return null | get the related entitys id |
public entity persistence store get persistence store return store | gets the entity persistence store |
public void create looks like create is called after set container wonder if container method callback order is documented somewhere it should be publisher new thread new publisher publisher set name metrics publisher thread for bean name publisher set daemon true publisher start | starts the jms publisher thread |
public void set store directory name final string dir name this store dir name dir name | set the sub directory name under the server data directory |
public void destroy publisher interrupt | kills the publisher thread |
public void set optimized final boolean optimize if log is debug enabled log debug container invoker optimize set to optimize this optimize optimize | sets the optimized attribute of the jmscontainer invoker object |
public string get store directory name return store dir name | get the sub directory name under the server data directory |
public file get store directory return store dir | returns the directory used to store entity state files |
public object get ejbhome throw new error not valid for message driven beans | always throws an error |
protected void destroy service throws exception store dir delete | try to remove the store directory if we cant then ignore |
public collection get entity collection collection ids throw new error not valid for message driven beans | always throws an error |
public void update locked field value jdbccmpfield bridge field entity enterprise context ctx if field is primary key member return map field values per ctx id map locked field values by ctx id get map field values map field values per ctx id get ctx get id if field values null return object value field get instance value ctx if log is trace enabled log trace update locked field value field field get field name value value field values put field value | updates locked field value |
public object get entity ejbobject object id throw new error not valid for message driven beans | always throws an error |
public object get locked field value jdbccmpfield bridge field entity enterprise context ctx map field values per ctx id map locked field values by ctx id get map field values map field values per ctx id get ctx get id if field values null return null return field values get field | returns locked fields value |
public object get stateful session ejbobject object id throw new error not valid for message driven beans | always throws an error |
public collection get locked fields entity enterprise context ctx map fields per ctx id map locked fields by ctx id get map locked fields map fields per ctx id get ctx get id if locked fields null return collections empty list return locked fields key set | returns all the locked fields |
public object get stateless session ejbobject throw new error not valid for message driven beans | always throws an error |
public boolean is optimized if log is debug enabled log debug optimize in action optimize return optimize | gets the optimized attribute of the jmscontainer invoker object |
public long get cache size int cache size m cache null m cache size 0 return cache size | get the current cache size |
public void flush if m cache null m cache flush | flush the cache |
public long get passivated count return 0 | get the passivated count |
public void remove relation entity enterprise context my ctx object fk remove relation my ctx fk true | removes the foreign key to the set of related ids and updates |
public void set container ejbcontainer c this con c | set the callback to the container |
protected void create service throws exception import xml invoker meta data get proxy factory config jason this is all whacked out ex listener new exception listener impl this | initialize the container invoker |
public boolean equals object o if o instanceof jdbcentity meta data jdbcentity meta data entity jdbcentity meta data o return entity name equals entity entity name jdbc application equals entity jdbc application return false | compares this jdbcentity meta data against the specified object |
protected cache policy get cache return m cache | returns the cache policy used for this cache |
public object get cache lock return m cache lock | returns the mutex used to sync access to the cache policy object |
public void set container ejbcontainer c this container c | set the callback to the container |
protected void clear lock tx invocation mi throwable e boolean trace if container is read only false method method mi get method if method null container get bean meta data is method read only method get name false object key mi get id bean lock lock container get lock manager get lock key lock sync try transaction tx lock get transaction if tx null if trace log trace clearing bean lock s tx tx key key e lock wont synchronize tx finally lock release sync container get lock manager remove lock ref lock get id | something went wrong getting the enterprise context |
public int hash code int result 17 result 37 result jdbc application hash code result 37 result entity name hash code return result | returns a hashcode for this jdbcentity meta data |
public void free enterprise context ctx if log is trace enabled string msg pool size max size free instance this ctx get id ctx get transaction reclaim get container get bean class log trace msg ctx clear try add the unused context back into the pool synchronized pool if pool size max size pool add first ctx end of if if we block when max size instances are in use invoke release on strict max size if strict max size null strict max size release catch exception ignored | return an instance after invocation |
protected class resolve class object stream class v throws ioexception class not found exception try use the application classloader to resolve the class return app cl load class v get name catch class not found exception e we should probably never get here return super resolve class v | override the object input stream implementation to use the application class loader |
public void set container ejbcontainer container super set container container if container null bean meta data bean meta data container get bean meta data security identity meta data sec meta data bean meta data get security identity meta data if sec meta data null sec meta data get use caller identity false string role name sec meta data get run as role name run as role new simple principal role name security manager container get security manager realm mapping container get realm mapping | called by the super class to set the container to which this interceptor |
protected class resolve proxy class string interfaces throws ioexception class not found exception class clazz null class iface classes new class interfaces length for int i 0 i interfaces length i iface classes i class for name interfaces i false app cl try clazz proxy get proxy class app cl iface classes catch illegal argument exception e throw new class not found exception failed to resolve proxy class e return clazz | override the object input stream implementation to use the application class loader |
private void free all linked list clone linked list pool clone for iterator i clone iterator i has next enterprise context ec enterprise context i next clear tx so that still tx entity pools get killed as well ec clear discard ec pool clear | at undeployment we want to free completely the pool |
private void load entity enterprise context my ctx if we are already loaded we re done field state field state get field state my ctx if field state is loaded return check the preload cache if log is trace enabled log trace read ahead cahce load cmr field get field name pk my ctx get id manager get read ahead cache load my ctx if field state is loaded return load the value from the database load my ctx manager load relation this my ctx get id we just loaded the results so we are clean set clean my ctx | loads the collection of related ids |
public string to string return jdbcentity meta data entity name entity name | returns a string describing this jdbcentity meta data |
public void set purge enabled final boolean flag this purge enabled flag | set the stale session state purge enabled flag |
public boolean get purge enabled return purge enabled | get the stale session state purge enabled flag |
public void set instance object instance this instance instance try session bean instance set session context ctx catch exception x log error failed to set session context x | during activation of stateful session beans we replace the instance |
private void purge all session data if purge enabled return log debug purging all session data in store dir file sessions store dir list files for int i 0 i sessions length i if sessions i delete log warn failed to delete session state file sessions i else log debug removed stale session state sessions i | removes any state files left in the storgage directory |
public iterator get deployed applications return deployments values iterator | returns the deployed applications |
protected void inner stop try if connection null connection set exception listener null log debug unset exception listener catch exception e log error could not set exception listener to null e stop the connection try if connection null connection stop log debug connection stopped catch exception e log error could not stop jms connection e | stop done from inside we should not stop the |
protected void destroy service throws exception purge data and attempt to delete directory purge all session data nuke the directory too if purge is enabled if purge enabled store dir delete log warn failed to delete session state storage directory store dir | purge any data in the store and then the store directory too |
private file get file final object id jason may have to translate id into a os safe string though the format of uid is safe on unix and win32 already return new file store dir string value of id ser | make a session state file for the given instance id |
protected void start service throws exception service controller service controller mbean mbean proxy ext create service controller mbean class service controller mbean object name server tm transaction manager get server get attribute transaction manager service name transaction manager register with main deployer super start service | get a reference to the service controller |
protected void stop service throws exception tm null for iterator modules deployments values iterator modules has next deployment info di deployment info modules next stop di avoid concurrent modification exception for iterator modules new array list deployments values iterator modules has next deployment info di deployment info modules next destroy di deployments clear deregister with main deployer super stop service | implements the template method in superclass |
public void set verify deployments boolean verify verify deployments verify | enables disables the application bean verification upon deployment |
public boolean get verify deployments return verify deployments | returns the state of bean verifier on off |
public void set foreign key entity enterprise context my ctx object foreign key if has foreign key throw new ejbexception get field name cmr field does not have a foreign key to set for iterator fk fields iter foreign key fields iterator fk fields iter has next jdbccmp2x field bridge fk field jdbccmp2x field bridge fk fields iter next object field value fk field get primary key value foreign key fk field set instance value my ctx field value | sets the foreign key field value |
public void set verifier verbose boolean verbose verifier verbose verbose | enables disables the verbose mode on the verifier |
public boolean get verifier verbose return verifier verbose | returns the state of the bean verifier verbose non verbose mode |
public void remove passivated final object id boolean debug log is debug enabled file file get file id only attempt to delete if the file exists if file exists if debug log debug removing passivated state file file if file delete log warn failed to delete passivated state file file | removes the saved state file if any for the given session id |
public void set port int port server set port port | set the web service listening port |
public void set strict verifier boolean strict verifier this strict verifier strict verifier | enables disables the strict mode on the verifier |
public string get bind address return server get bind address | get the specific address the web service listens on |
public ejblocal home get ejblocal home invocation mi return super get local proxy factory get ejblocal home | mf fixme these are implemented on the client |
public void set bind address string host throws unknown host exception server set bind address host | set the specific address the web service listens on |
public boolean get strict verifier return strict verifier | returns the mode of the bean verifier strict non strict mode |
public int get backlog return server get backlog | get the web service listen queue backlog limit |
public object name get container return container name | gets the jmx object name of the web class loaders container |
public void init instance entity enterprise context ctx mark this field as loaded get field state ctx load relations collections empty set if has foreign key return for iterator fields foreign key fields iterator fields has next jdbccmpfield bridge field jdbccmpfield bridge fields next field init instance ctx | initialized the foreign key fields |
public void set backlog int backlog server set backlog backlog | set the web service listen queue backlog limit |
public url get url return unified class loader get parent get url | returns the single url for my parent an unified class loader |
public void set web urls url web urls this web urls web urls string buffer sb new string buffer for int i 0 i web urls length i sb append web urls i to string if i web urls length 1 sb append codebase string sb to string | set the urls that should be returned from this classes get urls override |
public boolean get download server classes return server get download server classes | a flag indicating if the server should attempt to download classes from |
public void set metrics enabled boolean enable metrics enabled enable | enables disables the metrics interceptor for containers |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.