input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
public void set skip text string new skip string util assert boolean new skip you must specify a boolean value skip text new skip
|
sets the skip text flag
|
public void set use null on create string new use null string util assert boolean new use null you must specify a boolean value use null on create new use null
|
set the flag that specifies if we use the null keyword in the
|
public boolean use null on create return string util to boolean use null on create
|
get the flag that specifies if we use the null keyword in the
|
public boolean skip text return string util to boolean skip text
|
gets the skip text flag
|
public void set unique row keyword string new key unique row keyword new key
|
sets the unique keyword flag
|
public string get unique row keyword return unique row keyword
|
gets the unique keyword flag
|
public void set limitation syntax string new limit limitation syntax new limit
|
sets the limitation syntax string
|
public string get limitation syntax return limitation syntax
|
gets the limitation syntax
|
public void set limitation position string new pos limitation position new pos
|
sets the limitation position string
|
public string get limitation position return limitation position
|
gets the limitation syntax position string
|
public void set db test string new test db test new test
|
sets the database test
|
public string get db test return db test
|
retrieves the db test string
|
public void set db stats string new stats string util assert boolean new stats you must specify a boolean value db stats new stats
|
sets the database statistics flag boolean
|
public string get dbmessage return db message get dbmessage
|
retrieve the message that was received from the jdbc driver
|
public string get message if db message null return super get message return super get message db message get message
|
returns the exception message
|
public boolean db stats return string util to boolean db stats
|
gets the database statistics flag boolean
|
public string get metadata name return dbconfig
|
retrieve the name of the metadata that is embedded in the parent
|
public void set create table indicies string new indicies string util assert boolean new indicies create table indicies must be y n true false yes or no create table indicies new indicies
|
sets the create table indicies boolean value
|
public void reconfigure configuration new config throws configuration exception current config null configure new config
|
reconfiguration event in this implementation there is no actual configuration
|
public list get supported configurations if log is debug enabled log debug retrieving valid value list for all supported configurations component metadata my metadata this get meta data simple property prop simple property my metadata get properties get config name return prop retrieve valid values
|
retrieves a list of all supported configuration keys and types as retrieved
|
public boolean create table indicies return string util to boolean create table indicies
|
gets the create table indicies boolean value
|
public jdbcconfig get current config return current config
|
retrieves the current configuration
|
public void set date select format string new format date select format new format
|
sets the date select format string
|
public connection get connection throws sqlexception if log writer null log writer println data connection pool retrieving new connection try return pool instance build new connection get connection catch dbexception ex log error error getting connection ex throw new sqlexception ex get message
|
retreive a java
|
public void set time select format string new format time select format new format
|
sets the time select format string
|
public print writer get log writer throws sqlexception return log writer
|
retrieve the current log writer
|
public void set log writer print writer out throws sqlexception log writer out
|
sets the log writer and thus turns on logging
|
public void set login timeout int seconds throws sqlexception log warn set login timeout not yet implemented
|
set the login timeout
|
public int get login timeout throws sqlexception log warn get login timeout not yet implemented return 0
|
retrieve the login timeout unimplemented
|
public void set date time select format string new format date time select format new format
|
sets the date time select format string
|
public void set date update format string new format date update format new format
|
sets the date update format string
|
public void set time update format string new format time update format new format
|
sets the time update format string
|
public void set date time update format string new format date time update format new format
|
sets the date time update format string
|
public void set date select function string new function date select function new function
|
sets the date select functon string
|
public void set time select function string new function time select function new function
|
sets the time select function string
|
public integer get expresso to java string db field type return integer expresso to java get db field type
|
retrieve a dbfield to java
|
public void set date time select function string new function date time select function new function
|
sets the date time select function string
|
public map get expresso to sqlmap return expresso to sql
|
get the expresso to sql map
|
public void set date update function string new function date update function new function
|
sets the date update function string
|
public int get java sqltype string field type throws dbexception integer i integer expresso to java get field type if i null throw new dbexception unable to locate java sql types mapping for field type field type return i int value
|
return a java
|
public void set time update function string new function time update function new function
|
sets the time update function string
|
public void set date time update function string new function date time update function new function
|
sets the date time update function string
|
public string get metadata name return type mapper
|
because we look up our metadata in the parent component we have to
|
public string get date select format return date select format
|
gets the date update function string
|
public string get name for sql int sql type return string sql type names get new integer sql type
|
get the actual java
|
public string get date select function return date select function
|
gets the date select format string
|
public map get sqlto dbmap return sql to db
|
get the sql to database type map
|
public string get date update format return date update format
|
gets the date update format string
|
public string get date update function return date update function
|
gets the date update function string
|
public string get type for expresso int sql type throws dbexception first get the string name from the type integer sql int new integer sql type string sql str string type to string get sql int if sql str null throw new dbexception there was no mapping for type sql type to a string type string expresso type string expresso from sql get sql str to lower case if expresso type null throw new dbexception there was no mapping of types from the sql type sql str to a expresso type return expresso type
|
map a type used in sql to an appropriate expresso specific type
|
public string get time select format return time select format
|
gets the time select function string
|
public string get time select function return time select function
|
gets the time select function string
|
public string get type for sql int sql type return string type to string get new integer sql type
|
retrieve a friendly name for a java
|
public string get time update format return time update format
|
gets the time update format string
|
public void destroy synchronized type mapper class if map instances null map instances remove data context expresso to sql null expresso to sql null expresso from sql null sql to db null type to string null expresso to java null sql type names null
|
destroys the component
|
public string get time update function return time update function
|
gets the time update function string
|
public void initialize component configuration true
|
any quick initializations here
|
public string get date time select format return date time select format
|
sets the date time select format string
|
public string get date time select function return date time select function
|
sets the date time select function string
|
public data field get data field string field name throws dbexception if field data null field data new hash map data field one field data field field data get field name if one field null one field default data field get instance get field meta data field name this field data put field name one field return one field
|
same as get field but works with the data object interface for now
|
public string get date time update format return date time update format
|
sets the date time update format string
|
public string get date time update function return date time update function
|
sets the date time select function string
|
public void set driver string new driver string util assert not blank new driver driver name must be specified driver new driver trim
|
sets the jdbc driver class name
|
public void add wildcard string new wild wild cards add element new wild
|
adds the specified wildcard entry
|
public vector get wildcards return wild cards
|
gets a vector list of wildcard entries
|
public hashtable get type map try database meta data dm my connection get meta data result set rsx dm get type info hashtable the map new hashtable 3 string one type string null int one type int 0 while rsx next one type string rsx get string 1 one type int rsx get short 2 the map put one type string new integer one type int return the map catch exception se return new hashtable get type map
|
attempt to return a mapping of java
|
public string get driver type return driver type
|
gets the jdbc driver type name
|
public string get url return system macros get instance expand value url
|
gets the jdbc url
|
public void set connect format string new format string util assert not blank new format connection format must be specified connect format new format trim
|
sets the jdbc connection format style
|
public int get update count return last update count get update count
|
returns the number of rows affected by the last operation
|
public string get connect format return connect format
|
gets the jdbc connection format style
|
public void set login string new login login new login
|
sets the jdbc login account name
|
public void set has boolean type string new value string util assert boolean new value you must specify a boolean value for native bool attribute this native bool new value
|
sets whether or not this jdbc configuration supports a native boolean
|
public void set native blob string new value string util assert boolean new value you must specify a boolean value for native bool attribute this native blob new value
|
sets whether the database supports the native blob datatype or whether
|
public void add error string error message if has error message error message add action errors global error new action error error message add error string
|
adds an error to the default collection
|
public void add error string error message object error message param1 if has error message error message add action errors global error new action error error message error message param1 add error string
|
adds an error with one param to the default collection
|
public boolean is native blob return string util to boolean this native blob
|
return whether this database type supports native blob types
|
public void add error string error message object error message param1 object error message param2 if has error message error message add action errors global error new action error error message error message param1 error message param2 add error string
|
adds an error with one param to the default collection
|
public enumeration get wild cards vector new chars new vector 4 new chars add element new chars add element new chars add element new chars add element return new chars elements get wild cards
|
return a vector of wild card characters for this database type
|
public void add error string error message object error message param1 object error message param2 object error message param3 if has error message error message add action errors global error new action error error message error message param1 error message param2 error message param3 add error string
|
adds an error with one param to the default collection
|
private boolean has error message string error message string one message null reject identical errors action error one error null for iterator all errors get all errors has next one error action error all errors next one message one error get key if one message equals error message return true return false
|
checks to see if a particular error message exists in the current collection
|
public void add error chained exception ex boolean done false while done string msg ex get message if msg null add error ex get message throwable t ex get nested if t null done true else if t instanceof chained exception ex chained exception t another loop else final item is not chained it is original exception message and exception type are captured in last get message done true
|
this method adds an error for each message in the chained exception link
|
public string get escape handler return escape handler
|
get the classname of the current escape handler for this data context
|
public void remove error string label for iterator i get label i has next i next i remove
|
allows us to retract an error if at one point in the code
|
public boolean is native bool return string util to boolean this native bool
|
returns whether or not this database supports native boolean datatypes
|
public array list get wild cards list array list new chars new array list 4 new chars add new chars add new chars add new chars add return new chars
|
return a vector of wild card characters for this database type
|
public string get attribute string attrib throws controller exception return string get request get attrib attrib
|
retrieve an attribute as specified from the request
|
public void set cache string new cache string util assert boolean new cache you must specify a boolean value cache new cache
|
sets the cache enabled boolean flag
|
public boolean cache return string util to boolean cache
|
gets the cache enabled boolean flag
|
public void set attributes map attributes throws controller exception get request set attributes attributes
|
set the attribute map
|
public void set check zero update string new check zero update string util assert boolean new check zero update you must specify a boolean value for check zero update check zero update new check zero update system out println config jdbc set check zero update new value new check zero update
|
set the check zero update version
|
public boolean is available return current available is available
|
when this connection is used as part of a pool of connections
|
public string get check zero update return check zero update
|
gets the check zero update version as a boolean
|
public map get attributes throws controller exception return get request get attributes
|
get the attribute map
|
public boolean check zero update return string util to boolean check zero update
|
gets the check zero update version as a boolean
|
public void set type mappings java util list new value this type mappings new value
|
set the list of type mappings
|
public void add type mapping type mapping config new value if type mappings null type mappings new java util array list 10 type mappings add new value
|
add a type mapping to the system
|
public block get block string block name throws controller exception valid state if block cache null return block block cache get block name return null
|
get a specific block
|
public void set calling servlet servlet new servlet my calling servlet new servlet
|
sets the calling servlet
|
public void set data field string field name data field o throws data exception if field data null field data new hash map field data put field name o
|
same as set field but works with the data object interface
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.