input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public set bundle entity bean into bean object set set entity beans throws ejbexception return bundle entity bean into bean object set entity beans false | internal utility method to take a set of thin entity beans |
public set bundle entity bean into bean object set set entity beans boolean as clones throws ejbexception set bean objects new hash set entity beans size iterator entity beans iterator entity beans iterator while entity beans iterator has next bean objects add get bean object for entity bean entity bean entity beans iterator next as clones as clones return bean objects | internal utility method to take a set of thin entity beans |
public entity bean activate entity bean mr entity bean bean boolean recurse boolean cache throws ejbexception try if bean null if recurse activate entity bean relatives bean cache try bean ejb activate this catch create exception create failure throw new ejbexception create failure if cache cache entity bean bean catch remote exception remote failure return bean | the immediate action of this method is to reactivate a bean |
public map restore unrelated to related map restored unrelated beans in relationships new hash map iterator bean type iterator joined beans key set iterator while bean type iterator has next class type class bean type iterator next restored unrelated beans in relationships put type cloning utilities joined beans get type restore unrelated to related return restored unrelated beans in relationships | restores business objects which have been explicitly unrelated from |
public void unrelate all in nested map from related map relationship participant unrelated table throws ejbexception iterator bean type iterator relationship participant unrelated table key set iterator while bean type iterator has next class type class bean type iterator next cloning utilities joined beans get type unrelate all in nested map from related map relationship participant unrelated table get type | does a bulk removal of business objects from the relationships of all |
public collection bundle thin siamese bean into siamese bean object collection collection entity beans string query throws ejbexception collection bean objects new vector entity beans size iterator entity beans iterator entity beans iterator while entity beans iterator has next bean objects add new mr siamese bean container this thin siamese bean entity beans iterator next query false return bean objects | internal utility method to take a collection of thin siamese beans |
public boolean is identical ejblocal object other throws ejbexception return get primary key equals other get primary key | tests if a given bean object is identical to the invoked bean object |
public object clone throws clone not supported exception ejbexception return super clone | produces a shallow copy of this bean object |
public entity bean passivate entity bean entity bean bean throws ejbexception return passivate entity bean bean true | the immediate action of this method is to passivate a bean |
public object deeper clone throws clone not supported exception ejbexception map unrelated flat map restore unrelated map unrelated nested map restore unrelated to related mr siamese bean clone mr siamese bean deep clone unrelate all in nested map from related unrelated nested map clone unrelate all in nested map from related unrelated nested map unrelate all in flat map unrelated flat map clone unrelate all in flat map unrelated flat map return clone | produces a deeper copy of this bean object than deep clone |
public boolean is cloned throws no such object local exception return cloned | checks if this bean object is cloned |
public entity bean passivate entity bean entity bean bean boolean recurse throws ejbexception both server and client containers override this method with implementations which do not effect the cache future container variants may decide to use the uncaching behaviour implemented here which is more typical of a traditional all encompassing ejb container try if bean null uncache entity bean bean uncache bean object for entity bean bean bean ejb passivate if recurse passivate entity bean relatives bean catch remote exception remote failure return bean | the immediate action of this method is to passivate a bean |
public void mark cloned throws no such object local exception iterator bean iterator joined beans values iterator while bean iterator has next client managed local object bean iterator next mark cloned | marks this bean as cloned |
public boolean is shallow throws no such object local exception return false | checks if this bean object is a shallow clone |
public string get joining query return joining query | returns the query which populated this siamese bean or |
public entity bean store entity bean entity bean bean boolean cloned throws ejbexception debug message first part called get object idfor entity bean bean store store command command new store command bean cloned this store response response store response do command in transaction context command if response null return null else command committed response return response get result | the eventual action of this method is to update an entity |
private string get selection conditions collection selection conditions new vector iterator bean iterator joined beans values iterator while bean iterator has next entity bean bean bean wrapper bean iterator next get underlying bean selection conditions add all container build field and value list for entity bean bean new hashtable true return strings list selection conditions and | for a prototype siamese bean produces a list of conditions |
public object write replace throws object stream exception try return new serializable bean object this catch clone not supported exception serialize failure throw new not serializable exception au gov tas dpiwe mr bean mr siamese bean | returns a new serializable bean object with this bean as its underlying object |
public entity bean remove entity bean entity bean bean boolean cloned throws ejbexception remove exception debug message first part called get object idfor entity bean bean remove remove response response remove response do command in transaction context new remove command bean cloned this uncache entity bean bean uncache bean object for entity bean bean if response null return null else return response get result | the eventual action of this method is to delete an entity |
public invoke response invoke method of bean object method method entity bean bean object parameters throws ejbexception debug message first part called get object idfor entity bean bean invoke on server method method get name strings express parameters return invoke response do command in transaction context new invoke command method bean parameters this | the immediate action of this method is to execute a method |
public local home get home for entity bean entity bean bean throw new ejbexception homes not instantiated in deployment container | get the home interface implementation corresponding to beans |
public method get key getter for entity bean entity bean bean throw new ejbexception entity beans not instantiated in deployment container | internal method to get a thin beans primary key getter method |
protected method get key setter for entity bean entity bean bean return method key setter table get bean get class | internal method to get a thin beans primary key setter method |
protected entity bean get pooled entity bean entity bean bean throws ejbexception throw new ejbexception entity beans not instantiated in deployment container | internal method to request a pooled thin entity bean of the specified type |
public flush response flush beans entity bean bean throws ejbexception class bean class bean get class debug message first part called container flush beans bean class get name synchronized bean cache map throw on null bean cache get bean class get abstract name for entity bean class bean class clear synchronized object cache map object cache get object class table get bean class clear return flush response do command in transaction context new flush command bean this | ensures that beans of the specified type are removed from all |
public string get abstract name for entity bean entity bean bean throw new ejbexception entity beans not instantiated in deployment container | internal utility method to convert a bean instance to its abstract name |
public heimliched obstruction heimlich server string server dump filename throws ejbexception debug message first part called container heimlich server server dump filename return heimliched obstruction do command in transaction context new heimlich maneuver server dump filename this | kills all running threads on the server leaving it in an |
public string get abstract name for entity bean class class bean class return strings after last bean class get name | internal utility method to convert a bean type to its abstract name |
public entity bean find entity bean entity bean bean object primary key throws ejbexception throw new ejbexception entity beans not instantiated in deployment container | the immediate action of this method is to load a single entity |
public collection get readable field names in query order ejblocal object bean object entity bean bean bean wrapper bean object get underlying bean collection field list new vector iterator methods iterator collection throw on null bean class method table get bean get class get abstract name for entity bean bean iterator return build field list bean field list methods iterator false true | returns the names of the readable fields in a bean in |
public entity bean find all of entity bean entity bean bean object primary key throws ejbexception throw new ejbexception entity beans not instantiated in deployment container | the immediate action of this method is to load a single entity |
public entity bean create entity bean entity bean bean object primary key throws ejbexception create exception throw new ejbexception entity beans not instantiated in deployment container | the immediate action of this method is to create a single entity |
public string get idfor entity bean entity bean bean try object key get key getter for entity bean bean invoke bean null if key null throw new null pointer exception return get abstract name for entity bean bean strings express key catch invocation target exception bean failure catch illegal access exception bean failure catch null pointer exception bean failure return get abstract name for entity bean bean | this internal utility method returns an identifier for a |
public collection select entity beans entity bean bean collection constrained fields throws ejbexception throw new ejbexception entity beans not instantiated in deployment container | the immediate action of this method is to load many entity |
public string get object idfor entity bean entity bean bean try object key get key getter for entity bean bean invoke bean null if key null throw new null pointer exception return get abstract name for entity bean bean object strings express key catch invocation target exception bean failure catch illegal access exception bean failure catch null pointer exception bean failure return get abstract name for entity bean bean object | this internal utility method returns an identifier for a |
public collection select all of entity beans entity bean bean collection constrained fields throws ejbexception throw new ejbexception entity beans not instantiated in deployment container | the immediate action of this method is to load many entity |
public void set rollback only thread current thread thread current thread synchronized transaction thread command table if transaction thread command table contains key current thread synchronized transaction thread rollback only list transaction thread rollback only list add current thread else throw new illegal state exception no transaction to mark as rollback only time out | ensures that the current transaction being managed for the calling |
public collection select siamese bean objects string sql query throw new ejbexception entity beans not instantiated in deployment container | the immediate action of this method is to load many entity |
public entity bean load entity bean entity bean bean throws ejbexception throw new ejbexception entity beans not instantiated in deployment container | the immediate action of this method is to refresh an entity |
public boolean get rollback only thread current thread thread current thread synchronized transaction thread rollback only list if transaction thread rollback only list contains current thread return true return false | returns true if the current transaction being managed for the calling |
public entity bean store entity bean entity bean bean throws ejbexception throw new ejbexception entity beans not instantiated in deployment container | the eventual action of this method is to update an entity |
public entity bean remove entity bean entity bean bean throws ejbexception remove exception throw new ejbexception entity beans not instantiated in deployment container | the eventual action of this method is to delete an entity |
public void rollback thread current thread thread current thread synchronized transaction thread command table if transaction thread command table contains key current thread debug message rolling back transaction from current thread get name synchronized transaction thread rollback only list transaction thread command table remove current thread transaction thread rollback only list remove current thread else throw new illegal state exception no transaction to rollback time out | roll back the transaction associated with the calling thread |
public collection do commands collection commands throws ejbexception return new vector | internal method to perform a batch of commands |
public response do command command command boolean one off throws ejbexception return null | internal method to perform a single command immediately |
private boolean no response to batch find and commands not cancelled thread current thread thread current thread synchronized thread batch find table synchronized batch thread group command table return batch thread group response table contains key current thread get thread group batch thread group command table contains key current thread get thread group | returns true if the batch find response table contains no responses |
public int get status thread current thread thread current thread synchronized transaction thread command table if transaction thread command table contains key current thread synchronized transaction thread rollback only list if transaction thread rollback only list contains current thread return status status marked rollback else return status status active else return status status no transaction | obtain the status of the transaction associated with the calling thread |
public void debug transaction thread current thread thread current thread synchronized transaction thread command table debug message commands on current thread get name collection commands collection transaction thread command table get current thread iterator commands iterator commands null null commands iterator if commands iterator null debug message no commands else while commands iterator has next command command command commands iterator next debug message command | prints if debugging is enabled the contents of the current |
private boolean is batchable command command command return command instanceof date command command instanceof find command command instanceof create command command instanceof select command command instanceof join command command instanceof load command command instanceof invoke command command instanceof start command command instanceof stop command command instanceof heimlich maneuver command instanceof alert command command instanceof status command | internal utility method to determine if this command can |
protected boolean is command which expects non pooled bean command command return command instanceof load command command instanceof store command command instanceof remove command command instanceof invoke command | internal utility method to determine if this command takes |
public void remove non relatives collection bean objects throws ejbexception remove exception iterator bean objects iterator bean objects iterator while bean objects iterator has next client managed local object bean object client managed local object bean objects iterator next bean object remove unrelated try bean object remove catch no such object local exception failure | internal utility method to activate the remove unrelated and remove |
public void remove non relatives from bean object non relatives collection bean objects throws ejbexception remove exception iterator bean objects iterator bean objects iterator while bean objects iterator has next client managed local object bean object client managed local object bean objects iterator next bean object remove unrelated from related bean object remove unrelated | internal utility method to activate the remove unrelated from related and |
public map restore non relatives to bean object relatives collection bean objects throws ejbexception iterator bean objects iterator bean objects iterator map map new hash map bean objects size while bean objects iterator has next object key cloning utilities bean object cloning utilities bean objects iterator next map entry new map 2 key bean object get primary key entry 0 bean object restore unrelated entry 1 bean object restore unrelated to related map put key entry return map | internal utility method to activate the restore unrelated and |
public void unrelate given relatives from bean object relatives collection relatives map key entry table throws ejbexception iterator key entry table iterator key entry table key set iterator map related bean objects bundle bean object collection into bean object map relatives while key entry table iterator has next object key cloning utilities bean object cloning utilities related bean objects get key key entry table iterator next map entry map key entry table get key bean object unrelate all in nested map from related entry 1 bean object unrelate all in flat map entry 0 | internal utility method to activate the unrelate all in flat map and |
public void execute retrieve method calls for bean object bean wrapper bean object throws ejbexception batch batch new batch strings after last bean object get class get name strings express bean object get primary key retrieve batch add new method call initiate batch find this new object batch batch add last execute batch find this batch retrieve method calls for bean object batch bean object run | internal utility method to invoke methods starting |
public collection execute retrieve method calls for bean objects collection bean objects throws ejbexception if bean objects size 0 batch batch new batch strings after last bean objects iterator next get class get name retrieve batch add new method call initiate batch find this new object batch batch add last execute batch find this batch retrieve method calls for bean objects batch bean objects run return bean objects | internal utility method to invoke methods starting |
public map execute retrieve method calls for bean objects map bean objects throws ejbexception if bean objects size 0 batch batch new batch strings after last bean objects values iterator next get class get name retrieve batch add new method call initiate batch find this new object batch batch add last execute batch find this batch retrieve method calls for bean objects batch bean objects values run return bean objects | internal utility method to invoke methods starting |
protected batch batch retrieve method calls for bean objects batch batch collection bean objects throws ejbexception iterator bean objects iterator bean objects iterator while bean objects iterator has next batch retrieve method calls for bean object batch bean wrapper bean objects iterator next return batch | internal utility method to batch calls to the methods starting |
public int get bad command index boolean remove thread current thread thread current thread synchronized thread bad command index table integer command index integer remove thread bad command index table remove current thread thread bad command index table get current thread if command index null return 1 else return command index int value | gives the index of the last command that failed during a do commands |
public response do command command command throws ejbexception return do command command false | internal method to perform a single command immediately |
public boolean equals object another return this hash code container another hash code | does a crude test to check if two containers contain the same types |
public string get name return container principal table name to bean class mapping hash code | returns a dummy principal name for this container |
public string to string return strings list get all types r n | returns a string representation of this container |
public int hash code return table name to bean class mapping hash code | returns a hashcode for this container |
public void test base64 system out println new string new org apache commons codec binary base64 decode test get bytes | creates a new instance of test base64 |
private prequest construct request pevent event pcomponent event source prequest req new prequest req set view id current view id req set session id current session id req set view state current view state pcomponent comps new pcomponent components size for int i 0 i components size i object j2me component components element at i jmfcomponent wrapper interface wrapper jmfcomponent wrapper interface wrappers get component registry get wrapper class by j2me component j2me component comps i wrapper persist j2me component event source req set components comps return req | construct prequest object based on state of controller and components |
public color schema get for display display display if display null throw new illegal argument exception display parameter cannot be null color schema schema color schema system color schemas get display if schema null schema new color schema display system color schemas put display schema return schema | gets system color schema for given display |
public void set color schema color schema color schema set color schema impl display color schema repaint | sets color schema to be used with this component |
public color schema get color schema return color schema | gets color schema currently in use |
public void set model simple table model model throws illegal argument exception if this model null this model remove table model listener this if model null throw new illegal argument exception model parameter cannot be null if model null if model get row count 0 throw new illegal argument exception model cannot have negative number of rows if model get column count 0 throw new illegal argument exception model cannot have negative number of cols model add table model listener this this model model recompute model values invalidate | sets a new model to the table |
protected int get min content width recompute model values int sum col widths length border line width border line width int result 0 for int i 0 i col widths length i sum col widths i result sum if title null int title width get title font string width title if title width result result title width double cell padding if get label null this is rather hack i don t know the size of the label int label width font get default font string width get label if label width result result label width return result | implementation of the abstract method |
private void set color schema impl display display color schema color schema if color schema null this color schema color schema else this color schema get for display display | sets color schema |
public void table model changed simple table model changed model if changed model model recompute model values invalidate repaint | listener for changes of the model |
public int get column count return cols | gets number of columns of the supplied values matrix |
public void set value int col int row string value throws illegal argument exception if values null throw new illegal argument exception no values set to the model if values length row throw new illegal argument exception specified row row is larger than the number of rows available in values values length if values row length col throw new illegal argument exception specified column col is larger than the number of columns available in values values row length change the value values row col value recompute model values repaint | sets the value to the defined row and column of the model |
public void set values string values throws illegal argument exception check values validity check values values this values values recompute model values fire table model changed | sets the values of the model |
public object get value int col int row return values row col | gets the value of a table cell at a specified location |
public boolean is using headers return column names null | decides wheter this table is using headers column names |
public void set column names string column names this column names column names recompute model values fire table model changed | sets the column names for this model |
public string get column name int column if column names null column column names length return column names column else return null | gets the column name for the specified index |
public void fire table model changed enumeration e model listeners elements while e has more elements table model listener e next element table model changed this | fires an event that the values in the table has been changed and |
private void check values string values throws illegal argument exception rows 0 cols 0 if values null throw new illegal argument exception values cannot be null rows values length if rows 0 cols values 0 length for int i 0 i values length i string row values i if row null throw new illegal argument exception data cannot contain null rows row i else if values 0 length row length throw new illegal argument exception data cannot contain different row lengths row i | checks values if they are rectangular matrix |
public void show xaxis boolean show x axis set visible show | show or hide the x axis depending on the value of show |
public void show yaxis boolean show y axis set visible show | show or hide the y axis depending on the value of show |
public boolean is showing xaxis return x axis is visible | returns the visible status of x axis |
public boolean is showing yaxis return y axis is visible | returns the visible status of y axis |
public void set xunits string units this x units units this div xunits set text units | set the units of the x axis |
public void set yunits string units this y units units string new units for int i 0 i units length i new units units char at i br this div yunits set html new units | set the units of the y axis |
public string get xunits return this x units | returns the units representation of the x axis |
public string get yunits return this y units | returns the units representation of the y axis |
public void set pixel height int pixel height this pixel height pixel height this set height pixel height px | set the height of the chart in pixels |
public int get pixel height int offset height this get offset height if offset height pixel height set pixel height offset height return this pixel height | returns the height of the chart in pixels |
public void set pixel width int pixel width this pixel width pixel width | set the width of the chart in pixels |
public int get pixel width int offset width this get offset width if offset width pixel width set pixel width offset width return this pixel width | returns the width of the chart in pixels |
public void add configured parameter param param parameters put param get name param | parameter which will be passed to transformer |
public void set cloudscape boolean cloudscape this cloudscape cloudscape | use cloudscape database instead of hypersonic |
public void set cleanup boolean cleanup this cleanup cleanup | cleanup old reviews info after review |
public void set unpack dir file unpack dir this unpack dir unpack dir | if this attribute is set then har archive will be unpacked |
public void set skip intact packages boolean skip intact packages this skip intact packages skip intact packages | do not generate summary pages for packages and summary |
public void set force on waivers boolean force on waivers this force on waivers force on waivers | force review of compilation units for which waivers are available |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.