input
stringlengths
10
828
output
stringlengths
5
107
public boolean is null return underlying character null
returns true if this nullable character represents the null value
protected object throw on null object object string bean type if object null throw new ejbexception bean type bean type not recognised return object
internal utility method to preempt null pointer exceptions and produce
public string next token string delim throw new unsupported operation exception
this operation is not supported
public boolean has more tokens return token null
returns true if there are more comma separated values
public boolean has more elements return token null
returns true if there are more comma separated values
public int count tokens throw new unsupported operation exception
this operation is not supported
public void shutdown bean cache null object cache null synchronized reaper reaper notify
throws away the contents of this bean cache
public object read resolve throws object stream exception return new serializable method methods from string string representation
returns a new serializable method with an underlying object
public boolean is null return underlying string null
returns true if this nullable string represents the null value
public int get int return i
returns the value of this mutable integer object
public mutable integer set int int i this i i return this
changes the int primitive value of this
public number get number return underlying big integer
the big integer underlying this
public boolean is null return underlying big integer null
returns true if this nullable big integer represents the null value
public boolean is null return underlying date null
returns true if this nullable date represents the null value
protected nullable date get last update date from entity bean entity bean bean try return new nullable date java util date bean get class get method get last update date time null invoke bean null catch no such method exception bean failure catch invocation target exception bean failure catch illegal access exception bean failure catch null pointer exception bean failure return new nullable date null
this internal utility method returns the last update date time
public int get representation size if type equals byte type type equals boolean type return 1 else if type equals short type type equals character type return 2 else if type equals integer type type equals float type return 4 else if type equals long type type equals double type return 8 else return 1
returns the size in bytes of representations of field
public number get number return underlying long
the long underlying this
public number get number return underlying big decimal
the big decimal underlying this
public boolean is null return underlying long null
returns true if this nullable long represents the null value
public boolean is null return underlying big decimal null
returns true if this nullable big decimal represents the null value
public number get number return underlying short
the short underlying this
public boolean is null return underlying short null
returns true if this nullable short represents the null value
public void set output boolean output set console output output set error output output
sets whether this messenger should suppress all
public void set console output boolean console this console console this exceptions to console console
sets whether this messenger should direct messages
public number get number return underlying float
the float underlying this
public void set transaction timeout int seconds transaction timeout seconds
determines the age in seconds which transactions must reach before
public boolean is null return underlying float null
returns true if this nullable float represents the null value
public void set console output boolean console boolean exceptions to console this console console this exceptions to console exceptions to console
sets whether this messenger should direct messages
public void set error output boolean error this error error this exceptions to error error
sets whether this messenger should direct messages
public void set error output boolean error boolean exceptions to error this error error this exceptions to error exceptions to error
sets whether this messenger should direct messages
public boolean get boolean return b
returns the value of this mutable boolean object
public mutable boolean set boolean boolean b this b b return this
changes the boolean primitive value of this
public void set message level int message level this message level message level
sets the level at which messages should be output
public object message first part string prefix string suffix object message if message level level normal return message if console system out print prefix message suffix if error system err print prefix message suffix return message
prints a command level logging message related to an object
public object message part string prefix string suffix object message if message level level normal return message if console system out print prefix message suffix if error system err print prefix message suffix return message
prints a command level logging message related to an object
public object message last part string prefix string suffix object message if message level level normal return message if console system out println prefix message suffix if error system err println prefix message suffix return message
prints a command level logging message related to an object
public ejblocal object get bean object container container throws ejbexception return container get bean object for entity bean bean
returns a reference to the bean which caused this exception
public void begin throws not supported exception thread current thread thread current thread purge timed out transactions synchronized transaction thread command table if transaction thread command table contains key current thread collection commands new vector debug message beginning transaction from current thread get name commands add new begin command transaction thread command table put current thread commands else throw new not supported exception transactions don t nest
creates a new transaction and associates it with the current thread
public object message string prefix string suffix object message if message level level normal return message if console system out println prefix message suffix if error system err println prefix message suffix return message
prints a command level logging message related to an object
public object message first part object message if message level level normal return message if console system out print message to string if error system err print message to string return message
prints a command level logging message related to an object
public object message part object message if message level level normal return message if console system out print message to string if error system err print message to string return message
prints a command level logging message related to an object
public int get failure reason return failure reason
returns an identifier indicating what validation test failed
public object message last part object message if message level level normal return message if console system out println message to string if error system err println message to string return message
prints a command level logging message related to an object
public class get type return mr meta data this get type field name
get the java type of the field this type record describes
public object message object message if message level level normal return message if console system out println message to string if error system err println message to string return message
prints a command level logging message related to an object
public int get length return mr meta data this get length field name
get the length of the field this type record describes
public object empty message object message if message level level normal return message if console system out println if error system err println return message
starts a new line after command level logging
public void empty message if message level level normal return if console system out println if error system err println
starts a new line after command level logging
public int get number of lines return mr meta data this get number of lines field name
get the number of lines in the text field this type record describes
public void set primary key object primary key this primary key primary key
sets the value of the primary key property
public string get other field return other field
access method for the other field property
public void set other field string other field this other field other field
sets the value of the other field property
public object get parent primary key return parent primary key
access method for the parent primary key property
public object debug message first part string prefix string suffix object message if message level level debug return message first part prefix suffix message return message
prints a debugging message related to an object
public void set parent primary key object parent primary key this parent primary key parent primary key
sets the value of the parent primary key property
public string get label return mr meta data this get label field name
get the textual label of the field this type record describes
public object debug message part string prefix string suffix object message if message level level debug return message part prefix suffix message return message
prints a debugging message related to an object
public collection get child beans return child beans
traverses the one to zero or more child beans relationship
public void set child beans collection child beans this child beans child beans
specifies the one to zero or more child beans relationship
public object debug message last part string prefix string suffix object message if message level level debug return message last part prefix suffix message return message
prints a debugging message related to an object starting a new line afterward
public object debug message string prefix string suffix object message if message level level debug return message prefix suffix message return message
prints a debugging message related to an object starting a new line afterward
public boolean is password return mr meta data this is password field name
returns true if this field should be obfuscated like a password field
public object debug message part object message if message level level debug return message part message return message
prints a debugging message related to an object
public object debug message last part object message if message level level debug return message last part message return message
prints a debugging message related to an object starting a new line afterward
public object debug message object message if message level level debug return message message return message
prints a debugging message related to an object starting a new line afterward
private void purge timed out transactions synchronized transaction thread command table iterator transactions iterator transaction thread command table key set iterator while transactions iterator has next thread key thread transactions iterator next collection commands collection transaction thread command table get key iterator commands iterator commands iterator if commands iterator has next command command command commands iterator next if command instanceof begin command if begin command command older than transaction timeout synchronized transaction thread rollback only list transaction thread command table remove key transaction thread rollback only list remove key
internal method to discard records of aging transactions being
public boolean is date only return mr meta data this is date only field name
returns true if this field contains only date significant information
public object debug empty message object message if message level level debug return empty message message return message
starts a new line after debugging messages
public boolean is time only return mr meta data this is time only field name
returns true if this field contains only time significant information
public void success if message level level normal return if console system out println success if error system err println success
prints a success message
public boolean pretty exception throwable throwable boolean pretty exception exception message table contains key throwable get class if pretty exception message level level none message format message new message format string exception message table get throwable get class message strings make sentence message format new object throwable get message return pretty exception
prints a pretty exception message
public string get table heading return mr meta data this get table heading field name
get the suggested column heading of the field this type record describes
public void stack trace throwable throwable if message level level none return if exceptions to console throwable print stack trace system out if exceptions to error throwable print stack trace
prints a stack trace
public void debug stack trace throwable throwable if message level level debug return if exceptions to console throwable print stack trace system out if exceptions to error throwable print stack trace
prints a debugging stack trace
public void query report throwable throwable string query if message level level none return if exceptions to console system out println database exception strings eliminate controls throwable get message while executing query to query if exceptions to error system err println database exception strings eliminate controls throwable get message while executing query to query
reports a failed query
public void ejb activate throws java rmi remote exception if container null container instanceof server container container log on server type get name bean is no longer pooled else system out println type get name bean is no longer pooled
callback issued upon resurrecting a serialized bean
public void ejb passivate throws java rmi remote exception if container null container instanceof server container container log on server type get name bean returns to pool else system out println type get name bean returns to pool
callback issued prior to serializing a bean
public void ejb load if container null container instanceof server container container log on server type get name bean refreshed by persistent storage else system out println type get name bean refreshed by persistent storage
callback issued prior to refreshing a bean with its persistent storage
public int get report level return mr meta data this get report level field name
get the report level of this field
public void ejb store if container null container instanceof server container container log on server type get name bean committed to persistent storage else system out println type get name bean committed to persistent storage
callback issued prior to committing a bean to persistent storage
public void ejb remove if container null container instanceof server container container log on server type get name bean has been removed from persistent storage else system out println type get name bean has been removed from persistent storage
callback issued prior to removing a bean from persistent storage
public void set entity context entity context context if container null container instanceof server container container log on server type get name entity bean context set else system out println type get name entity bean context set this context context
callback issued when a bean is placed in a container
public void unset entity context if container null container instanceof server container container log on server type get name entity bean context unset else system out println type get name entity bean context unset this context null
callback issued when a bean is removed from a container
public void container changed container change event event container event container if container null container instanceof server container container log on server type get name container changed else system out println type get name container changed if event clone wrapper this wrapper bean wrapper event get source
event handler called when the ownership of this bean
public bean wrapper get bean object return wrapper
internal method to determine the bean wrapper associated
public void simple validate throws validate exception if container null container instanceof server container container log on server type get name simple validation attempt else system out println type get name simple validation attempt container validate entity bean this if container null container instanceof server container container log on server type get name success else system out println type get name success
makes simple data validity checks for this bean based
public collection get beans return joined beans
returns the thin entity beans comprising this siamese bean
public map get orphaned fields return orphaned fields
returns the orphaned fields leftover from the query which
public void ejb activate throws java rmi remote exception iterator bean iterator joined beans iterator while bean iterator has next entity bean bean iterator next ejb activate
callback issued upon resurrecting a serialized bean
public void ejb passivate throws java rmi remote exception iterator bean iterator joined beans iterator while bean iterator has next entity bean bean iterator next ejb passivate
callback issued prior to serializing a bean
public void ejb activate container container throws create exception java rmi remote exception iterator bean iterator joined beans iterator while bean iterator has next mr entity bean bean iterator next ejb activate container
p initializes the temporary entity context if present and
public object ejb create object primary key throws create exception return primary key
p informs a bean of the primary key identity it will be
public void ejb post create object primary key throws create exception
p informs a bean that it has been assigned identity
public void make persistent iterator bean iterator joined beans iterator while bean iterator has next mr entity bean bean iterator next make persistent
p flags that this bean now exists in persistent storage
public void ejb passivate throws java rmi remote exception
callback issued prior to serializing a bean
protected object throw ejbexception string message throws ejbexception throw new ejbexception message
utility method to throw an ejb exception with the specified detail message
public void set entity context entity context context if container null container message this context set home context get ejblocal home null set unset this context context
callback issued when a bean is placed in a container
public void unset entity context if container null container message this context unset this context null
callback issued when a bean is removed from a container
public void container changed container change event event container event container if event clone wrapper this wrapper bean wrapper event get source
event handler called when the ownership of this bean
public void simple validate throws validate exception container validate entity bean this
makes simple data validity checks for this bean based