input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
public list get data objects return data objects
|
retrieve a list of the dataobjects for this join
|
public boolean is distinct return distinct
|
returns whether the join is distinct or not
|
public void set distinct boolean new value if new value null this distinct new value boolean value
|
sets whether the join is distinct or not with a boolean value
|
public void set distinct string new value this distinct com jcorporate expresso core misc string util to boolean new value
|
sets whether the join is distinct or not with a string value
|
public string get mapped data context if mapped data context null throwable t new java lang illegal state exception t t fill in stack trace log info use of dbobject before calling set data context setting to default t this set data context default return mapped data context
|
returns the name of the physical database that were talking with
|
public dbconnection pool get connection pool throws data exception try if my pool null if this get mapped data context null this set data context default string my data context this get mapped data context my pool dbconnection pool get instance my data context catch dbexception ex throw new data exception error getting connection pool ex return my pool
|
retrieve the connection pool associated with this dbobject
|
protected void set dbconnection pool dbconnection pool new pool my pool new pool
|
sets the connection pool associated with this dbobject
|
protected dbobject def construct new meta data throws dbexception return new dbobject def
|
construction method to allow for specialized metadata with specialized
|
public boolean check zero update return get def check zero update
|
returns the checkzero update as defined by the objects metadata
|
protected void set original dbname string new original name mapped data context new original name
|
set the name of the db context that was the original context
|
public void set case sensitive query boolean case sensitive query this case sensitive query case sensitive query
|
this tells the build where clause to either respect case true or
|
public void update notify user info uif throws dbexception this must be kept since it is possible that it was getting modified outside the user object this my user info uif any classes that implement the user listener interface and then call user add listener to register will be called back right before a user is deleted if listeners null array list the listeners null synchronized listeners the listeners new array list listeners values for iterator iterator the listeners iterator iterator has next user listener listener user listener iterator next listener modified user this
|
used to notify user listeners that a user info object has modified
|
public boolean is admin throws dbexception if admin id null int id get id from login admin user get data context admin id new integer id return admin id int value this get uid
|
determine if this user is admin
|
public string get primary group throws dbexception return get user info get primary group
|
the primary group of this user is appropriate for unix like purposes
|
public string get key value string mapped value try user u new user u set data context this get data context u set login name mapped value if u find return u get uid string else return null catch dbexception ex log error error getting key value ex return null
|
given a friendly name get the key value for this object
|
protected jdbcutil get jdbcutil return s jdbc util
|
get the jdbc util functions
|
public string get mapped value string key value try user u new user u set data context this get data context u set uid key value if u find return u get login name else return null catch dbexception ex log error error getting key value ex return null
|
given a key value return the mapped value
|
public data executor interface get executor return this s data executor
|
use this function to acquire the executor interface that is associated
|
public data query interface get query interface return this s data query object
|
use this function to acquire the data query interface that is associated
|
public void set data context string new context try this set dbname new context catch dbexception ex log error error setting data context ex throw new illegal argument exception ex get message
|
sets the data context for this particular object implementation
|
public string get dbname return this get data context
|
retrieve the data context for this particular object implementation
|
protected simple date format get simple date format string pattern simple date format a format null a format simple date format date convert format map get pattern if a format null a format new simple date format pattern date convert format map put pattern a format return a format
|
get a simple date format object that is cached
|
public void set criteria jdbcdata object new criteria throws data exception if new criteria null throw new illegal argument exception criteria cannot be null criteria new criteria
|
set the search criteria for the blob
|
protected jdbcdata object get criteria return criteria
|
protected method to get at the criteria object from any derived classes
|
public blob get blob string field name throws data exception if get criteria null throw new illegal argument exception criteria must be set before calling get blob try if my connection null my connection dbconnection pool get instance get criteria get mapped data context get connection lob field connection catch dbexception ex throw new data exception error getting database connection for blob retrieval ex return get blob get criteria field name my connection
|
retrieves a code java
|
public clob get clob string field name throws data exception if get criteria null throw new illegal argument exception criteria must be set before calling get clob try if my connection null my connection dbconnection pool get instance get criteria get mapped data context get connection lob field connection catch dbexception ex throw new data exception error getting database connection for clob retrieval ex return get clob get criteria field name my connection
|
retrieves a code java
|
public string make limitation stub dbconnection the connection data object the obj string limit the connection get limitation syntax int offset the obj get offset record int maxrec the obj get max records int endrec offset maxrec 1 limit string util replace limit offset integer to string offset limit string util replace limit maxrecords integer to string maxrec limit string util replace limit length integer to string maxrec limit string util replace limit endrecord integer to string endrec return limit make limitation stub dbconnection
|
creates the limitation syntax optimisation stub
|
public string get clob string string field name throws data exception java io reader is this get clob stream field name if is null return null fast string buffer fsb fast string buffer get instance try char buf new char 1024 1 k buffer int bytes read while bytes read is read buf 1 fsb append buf 0 bytes read return fsb to string catch java io ioexception ex throw new data exception i o exception reading character stream finally fsb release
|
clob convenience method
|
public input stream get clob ascii stream string field name throws data exception try clob the clob get clob field name return the clob get ascii stream catch sqlexception ex throw new data exception error getting clob ascii stream field name ex
|
retrieve a java
|
protected pattern matcher get matcher return pattern matcher pattern matcher get
|
retrieves an instance of a perl5 pattern matcher that is thread local
|
private boolean validate field string value string field value return get matcher matches field value legal strings
|
make sure there are no in between single quotes
|
private boolean validate field number value string field value return get matcher matches field value legal characters
|
instead of parsing the date just make sure it doesnt have likely injection
|
private boolean validate field date value string field value return get matcher matches field value legal strings
|
instead of parsing the date just make sure it doesnt have likely injection
|
private boolean validate comparison statement data field meta data metadata string expression value string tokenizer stok new string tokenizer expression value we got a weird expression if stok has more tokens return false return validate comparison recusive metadata stok
|
this function evaluates the formats of greater than less than types of
|
public void close if my connection null if log is debug enabled log debug closing and releasing lob connection my connection release my connection null
|
close the query resources held by the object
|
protected void finalize throws java lang throwable if my connection null log warn lob field was not closed before garbage collection close super finalize
|
override of base object finalization to make sure that the database
|
public boolean is cached if get cache size 0 return true return false is cached
|
is this object using internal caching
|
public boolean is field null string field name throws dbexception data field meta data one field get field meta data field name if one field null throw new dbexception my class name no such field as field name if one field is virtual log warn my class name field field name is a virtual field database object should extend get field method to handle requests for this field return false string return value get field data one field get name return return value null
|
tells whether a particular field is null or not
|
public list get data objects in order return this data objects
|
retrieves a list of data objects that were used in order
|
public list get aliases in order return this aliases in order
|
retrieves a list of aliases in order that they were added
|
public string get default value string field name string values this get object and field field name data object one obj data object my data objects get values 0 data object meta data metadata one obj get meta data return metadata get default value values 1
|
retrieve the default value for the specified
|
public boolean is allows null string field name throws dbexception string values this get object and field field name data object one obj data object my data objects get values 0 data object meta data metadata one obj get meta data return metadata is allows null values 1
|
retrieves whether the value is null
|
public void remove attribute string field name string attrib name string values this get object and field field name data object one obj data object my data objects get values 0 data object meta data metadata one obj get meta data metadata remove attribute values 1 attrib name
|
removes the attribute specified by field name and attrib name
|
public void set attribute string field name string attrib name object attrib value throws dbexception string values this get object and field field name data object one obj data object my data objects get values 0 data object meta data metadata one obj get meta data metadata set attribute values 1 attrib name attrib value
|
sets the attribute for the particular field
|
public object get attribute string field name string attrib name throws dbexception string values this get object and field field name data object one obj data object my data objects get values 0 data object meta data metadata one obj get meta data return metadata get attribute values 1 attrib name
|
retrieve the attribute for the field
|
public string get definition name return this definition name
|
retrieves the definition name in accordance with the
|
public void disable logging for iterator i this my data objects key set iterator i has next string key string i next data object value data object my data objects get key value get meta data disable logging
|
disable change logging of all objects of this type
|
protected joined data object meta data construct metadata return new joined data object meta data
|
construction method so that you can create custom derived metadata classes
|
public void enable logging for iterator i this my data objects key set iterator i has next string key string i next data object value data object my data objects get key value get meta data enable logging
|
enable logging of changes to this object
|
public boolean is logging enabled return this get primary data object get meta data is logging enabled
|
retrieves whether or not change logging is enabled for a particular
|
protected void initialize xml joined data object meta data metadata throws data exception if log is debug enabled log debug initializing xml metadata for this get definition name string file location this get definition name java net url def this get class get resource file location if def null throw new data exception unable to load metadata at file location joined digester bean digester bean new joined digester bean digester bean load join data def initialize from joined digester bean digester bean metadata
|
initialize the metadata based upon xml
|
public hash map get all keys map return this get primary data object get meta data get all keys map
|
return the all keys hash containing the dbfield objects that make up
|
public map get all attributes return attributes
|
retrieves all the attributes for this data object
|
public string get charset data object one obj this get primary data object return one obj get meta data get charset
|
return the current objects character set
|
public void set attribute string attribute name object attribute value if attributes null attributes new hash map attributes put attribute name attribute value
|
set an attribute
|
public int get cache size data object one obj this get primary data object return one obj get meta data get cache size
|
retrieves the cache size for the primary object
|
public void set cache size int new value data object one obj this get primary data object one obj get meta data set cache size new value
|
sets the cache size for this dbobject
|
public object get attribute string attribute name if attributes null return attributes get attribute name else return null
|
retrieve the attribute for this particular dataobject
|
public string get description java util locale l string field name string values this get object and field field name data object one obj data object my data objects get values 0 data object meta data metadata one obj get meta data return metadata get description l values 1
|
retrieve an i18nized description as per the locale defined for the
|
public object get value try return local obj get data field local field get value catch dbexception ex log error error getting embedded data field ex return null
|
retrieve the value of the object
|
public string get description string field name throws dbexception string values this get object and field field name data object one obj data object my data objects get values 0 data object meta data metadata one obj get meta data return metadata get description values 1
|
get the unlocalized description for a field name
|
public void set data context string new context for iterator i my data objects key set iterator i has next string key string i next data object oneobj data object my data objects get key oneobj set data context new context
|
sets the data context
|
public data field meta data get field metadata string field name string values this get object and field field name data object one obj data object my data objects get values 0 data object meta data metadata one obj get meta data return metadata get field metadata values 1
|
retrieve the metadata for the particular field
|
public string get length string field name throws dbexception string values this get object and field field name data object one obj data object my data objects get values 0 data object meta data metadata one obj get meta data return metadata get length values 1
|
return the length of a field
|
public string get data context iterator i my data objects values iterator if i has next data object oneobj data object i next return oneobj get data context else return default
|
returns the name of the currently set data context
|
public int get length int string field name throws dbexception string values this get object and field field name data object one obj data object my data objects get values 0 data object meta data metadata one obj get meta data return metadata get length int values 1
|
return the length of a field as an integer
|
public int get precision string field name throws dbexception string values this get object and field field name data object one obj data object my data objects get values 0 data object meta data metadata one obj get meta data return metadata get precision values 1
|
retrieve the precision of a particular field
|
public void test get set
|
tests the setter and getter values of the dataobject
|
public string get lookup object string field name throws dbexception string values this get object and field field name data object one obj data object my data objects get values 0 data object meta data metadata one obj get meta data return metadata get lookup object values 1
|
get a fields lookup object this is the name of another database
|
public string get lookup field string field name string values this get object and field field name data object one obj data object my data objects get values 0 data object meta data metadata one obj get meta data return metadata get lookup field values 1
|
when you get a lookup object to perform a complete mapping between the
|
public void test load join data joined digester bean bean new joined digester bean url file test joined digester bean class get resource test file if file null throw new illegal argument exception error getting test join xml file try bean load join data file catch exception ex ex print stack trace fail error digesting data run data integrity test bean
|
test for method load join data
|
public void reconfigure configuration new config throws configuration exception data context null config name null data url null user name null password null configure new config
|
lifecycle event for reconfiguration
|
public void destroy data context null config name null data url null user name null password null
|
event handler for the destruction of this component
|
public type mapper get type mapper return type mapper this locate component type mapper
|
retrieve the type mapper associated with this persistence connection
|
public dbconfig get dbconfig return dbconfig this locate component dbconfig
|
get the dbconfig class
|
public string get data context return data context
|
read only property that tells what data context were a part of
|
public data executor interface get executor iterator i my data objects values iterator if i has next data object oneobj data object i next return oneobj get executor else return null
|
use this function to acquire the executor interface that is associated
|
public void set data url string data url this data url data url
|
set the database connection url
|
public string get type string field name throws dbexception string values this get object and field field name data object one obj data object my data objects get values 0 data object meta data metadata one obj get meta data return metadata get type values 1
|
return the type of a field this method returns the internal expresso type
|
public data field meta data get field meta data string field name string tokenizer stok new string tokenizer string util not null field name if stok has more tokens throw new illegal argument exception field name must be proper format jdbcdata object dataobject jdbcdata object this my data objects get stok next token if stok has more tokens throw new illegal argument exception field name must be proper format if dataobject null throw new illegal argument exception unable to find specified data object in this join return dataobject get field meta data stok next token
|
retrieve the field meta data for the specified field name
|
public void test create try dbtool create tables install log schema list test system initializer get test context dbtool compare tables install log schema list test system initializer get test context catch exception e system out println e get message e print stack trace failed one true fail e get message
|
runs the create tables on the schema list to make sure no exceptions
|
public boolean is multi valued string field name throws dbexception string values this get object and field field name data object one obj data object my data objects get values 0 data object meta data metadata one obj get meta data return metadata is multi valued values 1
|
method called to determine if a particular field is multi valued
|
public void test populate tables try if failed one dbtool populate tables install log schema list test system initializer get test context else fail already failed earlier test unable to continue catch exception e system out println e get message e print stack trace failed default values don t necessarily mean failed other tests failed one true fail e get message
|
runs the populate tables on the schema list to make sure no exceptions
|
public void test setup security try if failed one dbtool setup security install log schema list test system initializer get test context else fail already failed earlier test unable to continue catch exception e system out println e get message e print stack trace failed one true fail e get message
|
runs the setup security on the schema list to make sure no exceptions
|
public void test setup config values try if failed one dbtool setup config install log schema list test system initializer get test context else fail already failed earlier test unable to continue catch exception e system out println e get message e print stack trace failed one true fail e get message
|
runs through setting up the configuration values for a particular schema
|
public void test other setups try if failed one dbtool other setups install log schema list test system initializer get test context else fail already failed earlier test unable to continue catch exception e system out println e get message e print stack trace failed one true fail e get message
|
runs the othersetups on the schema list to make sure no exceptions
|
public boolean is read only string field name throws dbexception string values this get object and field field name data object one obj data object my data objects get values 0 data object meta data metadata one obj get meta data return metadata is read only values 1
|
is a given field read only these fields are not offered for entry
|
public object get string field name throws data exception try return this get data field field name get value catch dbexception ex throw new data exception error retrieving data field ex
|
get the value object associated with the field specifieed
|
public boolean is secret string field name throws dbexception string values this get object and field field name data object one obj data object my data objects get values 0 data object meta data metadata one obj get meta data return metadata is secret values 1
|
is a given field secret these fields are not shown
|
public string get key joined data object meta data metadata joined data object meta data this get meta data string alias metadata get primary alias jdbcdata object primary object null try primary object this get by short name alias return primary object get key catch data exception ex log error error dataobject by name alias ex return
|
retrieve the key used for this join
|
public boolean check zero update return this get primary data object get meta data check zero update
|
retrieves whether or not check zero update is enabled for this data object
|
public void set description string new description description new description
|
sets the description for the data object join
|
public locale get locale if my locale null my locale locale get default return my locale
|
retrieve the locale of the current object
|
public void set name string the name this name the name
|
sets the name for this joined data object metadata
|
public string get mapped data context joined data object meta data metadata joined data object meta data this get meta data string alias metadata get primary alias jdbcdata object primary object null try primary object this get by short name alias return primary object get mapped data context catch data exception ex log error error dataobject by name alias ex return
|
retrieve the mapped data context for this data object
|
protected string no new line string field value string return value field value if return value index of n 0 return value string util replace return value n if return value index of r 0 return value string util replace return value r return return value no new line string
|
strip out the newlines out of a string
|
public string get schema return this get primary data object get meta data get schema
|
retrieve the schema class name
|
public crontab get cron manager return this m cron mgr
|
retrieve the crontab for this job handler
|
public void set max records int new max throws dbexception max records new max
|
set the maximum number of records to receive
|
public boolean is select distinct return select distinct
|
retrieve whether or not the join should be distinct or not
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.