input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
public hashtable get all keys return new hashtable all keys get all keys
|
return the all keys hash containing the dbfield objects that make up
|
public hash map get all keys map return new hash map all keys get all keys map
|
return the all keys hash containing the dbfield objects that make up
|
public int get error number return super get error number
|
return the error number if one was supplied
|
public void print stack trace super print stack trace print stack trace
|
extend print stack trace to handle the nested exception correctly
|
public void print stack trace print stream p super print stack trace p print stack trace print stream
|
extend print stack trace to handle the nested exception
|
public void print stack trace print writer p super print stack trace p print stack trace print writer
|
extend print stack trace to handle the nested exception
|
public throwable get nested return super get nested get nested
|
retrieve the nested exception
|
public string get charset return char set get charset
|
return the current objects character set
|
public void add file attachment string name lazy instantiation of the list of filenames if needed if attachments null attachments new array list 4 add the attachment to the list of attachments attachments add name add file attachments string
|
this method adds an attachment to the email to be sent
|
public void add data source attachment byte array data source data source lazy instantiation of the list of filenames if needed if data source attachments null data source attachments new array list 4 add the attachment to the list of attachments data source attachments add data source
|
this method adds an attachment to the email to be sent
|
public void add data source attachments list data source list lazy instantiation of the list of filenames if needed if attachments null attachments new array list 4 loop through each file name adding it to the list of files to send for iterator itor data source list iterator itor has next byte array data source data source byte array data source itor next data source attachments add data source
|
this method accepts a list of byte array data source collection
|
public void set cache size int new value if new value 2 throw new java lang illegal argument exception this get class get name set cache size int new value must be greater than or equal to 2 cache size new value
|
sets the cache size for this dbobject
|
private string get smtppassword string this method this class get smtppassword string my password password try if my password null my password setup get value required get dbname mailpassword catch dbexception dex my password null password my password return my password get smtppassword
|
this method returns the smtp password to use for an authenticated smtp session
|
private string get smtpuser string this method this class get smtpuser string my user string util not null user try if my user equals my user setup get value required get dbname mailuser name catch dbexception dex my user null user my user return my user get smtpuser
|
this method returns the smtp username to use for an authenticated smtp session
|
public string get description if string util not null object description equals return get name else return object description get description
|
return a description of this database object
|
public string get description locale l string key this get description if key null key length 0 return unknown table if l null l locale get default string schema this get schema if schema null schema length 0 schema com jcorporate expresso core expresso schema class get name string return value try return value messages get string schema l key catch illegal argument exception ex return value key return return value
|
retrieve the table description in a localized way
|
public void set from address string from this from from set from address string
|
this method sets the address to be used in the from header
|
public void set email html format call this when email sender object is created html format true
|
tells the email sender to send html mail only
|
public void set personal string personal this personal personal set from address string
|
this method sets the address to be used in the from header
|
public string get description java util locale l string field name string key null try key this get description field name catch dbexception ex log error error getting field field name ex if key null return unknown field if l null l locale get default string schema this get schema if schema null schema length 0 schema com jcorporate expresso core expresso schema class get name string return value try return value messages get string schema l key catch illegal argument exception ex return value key return return value
|
retrieve an i18nized description as per the locale defined for the
|
public string get personal if personal null return new string else return this personal set from address string
|
this method sets the address to be used in the from header
|
public void set smtphost string host this host host set smtphost string
|
this method sets the name of the smtp server to use
|
public dbfield get dbfield string field name dbfield one field dbfield all fields get field name if one field null throw new illegal argument exception no such field as field name in object m object name return one field get dbfield string
|
get the dbfield object specified by the fieldname
|
public void set smtppassword string password this password password set smtppassword string
|
this method sets the smtp password to use for authentication
|
public void set smtpuser string user this user user set smtpuser string
|
this method sets the username to use for smtp authentication
|
synchronized public enumeration get field list return new vector field names in order elements get field list
|
get a list of all of the fields in this object
|
public void set subject string subject this subject subject set subject string
|
this method sets the value to use for the subject header
|
public void set text string text this text text set text string
|
thiis method sets the content string of the email message
|
public void set to address string to this to to set to address string
|
this method sets the address to be used in the to header
|
public void set connect retry delay long connect retry delay this connect retry delay connect retry delay
|
sets the connect retry delay
|
public void set max connect retries int max connect retries this max connect retries max connect retries
|
sets the max connect retries
|
public string get length string field name throws dbexception dbfield one field get dbfield field name return one field get length get length string
|
return the length of a field
|
public void set dbname string new dbname db name new dbname
|
bean method that setse the database context name for the login
|
public string get dbname return db name
|
bean method that gets the current database name
|
public void value unbound http session binding event evt config manager remove session session id session id null
|
clears this login object from the system
|
public string get lookup field string field name dbfield one field get dbfield field name if one field null throw new illegal argument exception no field metadata found for field name field name return one field get lookup field
|
when you get a lookup object to perform a complete mapping between the
|
public document parse string string data return parse string data to char array
|
given an xml formatted string return a dom document based upon the
|
public document parse string char data try input source input source new input source new char array reader data document builder factory dbf document builder factory new instance dbf set namespace aware true dbf set validating false document builder db dbf new document builder db set error handler this document doc db parse input source return doc catch exception e log error error parsing xml document e return null
|
given an xml formatted character array return a dom document based upon the
|
public input stream get binary field string field name throws dbexception dbconnection pool connection pool null dbconnection my connection local connection input stream is null if local connection null connection pool dbconnection pool get instance get data context my connection connection pool get connection try byte data lobsupport get instance get blob this field name my connection is new byte array input stream data finally if local connection null if connection pool null connection pool release my connection return is
|
retrieves the binary field as an input stream
|
public void dump dom node n if n null return fast string buffer fsb new fast string buffer 512 fsb append n fsb this build domstring n fsb 0 log info fsb to string return
|
dumps the dom tree to the log
|
public string get name if m object name equals object name not assigned equals m object name m object name null return table name else return m object name get name
|
get the name of this object
|
static public string replace string once string text string str1 string str2 return replace string text str1 str2 1
|
substituate once str1 by str2 in text
|
static public string replace string string text string str1 string str2 return replace string text str1 str2 1
|
substituate all occurence of str1 by str2 in text
|
public boolean has index if this index list null return false else return true
|
returns true if an index exists for this array
|
static public string replace string string text string str1 string str2 int max if text null return null string buffer buffer new string buffer text length int start 0 int end 0 while end text index of str1 start 1 buffer append text substring start end append str2 start end str1 length if max 0 break buffer append text substring start return buffer to string
|
replace n occurences of str1 in text by str2
|
static public string un upper first char string str if str null return null fast string buffer fsb null try fsb fast string buffer get instance fsb append character to lower case str char at 0 fsb append str substring 1 return fsb to string finally if fsb null fsb release
|
convert the first character of string in lower case
|
static public string upper first char string str if str null return null fast string buffer fsb fast string buffer get instance try fsb append character to title case str char at 0 fsb append str substring 1 return fsb to string finally fsb release return character to title case str char at 0 str substring 1
|
convert the first character of the string upper case
|
static public string repeat string string str int n if str null return null fast string buffer buffer fast string buffer get instance try fast string buffer is preallocated for 1 k so we may not need to do any memory allocation here int val n str length if val buffer capacity buffer ensure capacity val string buffer buffer new string buffer n str length for int i 0 i n i buffer append str return buffer to string finally buffer release
|
repeat str n time to format another string
|
static public string center pad string str int n return center pad str n
|
enclosed the string with padding character
|
static public string center pad string str int n string delim if str null return null int sz str length int p n sz if p 1 return str str left pad str sz p 2 delim str right pad str n delim return str
|
enclosed the string with padding character
|
public long get found count if found keys null return 0 else return found keys size get found count
|
return the number of records found in the last search operation
|
static public string right pad string str int n string delim if str null return null int sz str length n n sz delim length if n 0 str repeat string delim n return str
|
right padding with delimiter
|
public vector get found keys if found keys null return new vector else return vector found keys clone get found keys
|
return the vector of keys in the form field field field that
|
static public string reverse string string str if str null return null fast string buffer fsb fast string buffer get instance try fsb append str return fsb reverse to string finally fsb release
|
reverse the string
|
synchronized public void set description string new description object description new description set description string
|
set the description of this object
|
static public string random int count return random count false false
|
create a random string
|
static public string random ascii int count return random count 32 127 false false
|
create a random ascii string
|
static public string random alphabetic int count return random count true false
|
create a random character only string
|
static public string random alphanumeric int count return random count true true
|
create a random alpha numeric string
|
static public string random numeric int count return random count false true
|
create a random numeric string
|
static public string random int count boolean letters boolean numbers return random count 0 0 letters numbers
|
create a random numeric string where you have control over size and
|
static public string random int count int start int end boolean letters boolean numbers return random count start end letters numbers null
|
create a random numeric string where you have control over size and
|
static public string random int count string set return random count set to char array
|
create a random string
|
static public string random int count char set return random count 0 set length 1 false false set
|
create a random string
|
public boolean is allows null string field name throws dbexception return allows null field name
|
returns whether the field allows null values or not
|
public data field meta data get field metadata string field name return data field meta data all fields get field name
|
retrieve the metadata for the field
|
public void set url pattern string new pattern url pattern new pattern try compiled reg exp compiler compile new pattern perl5 compiler read only mask catch malformed pattern exception mpe throw new illegal argument exception error compiling regular expression new pattern mpe get message
|
sets the matching url pattern and precompiles the expression
|
public pattern get compiled url pattern return compiled reg exp
|
returns the compiled regular expression pattern
|
public void run log info event handler starts try while true if idle times max idle times log info event handler idle more than max idle times times shutting down return try check queue catch dbexception ae log error unable to check event queue ae yield this sleep sleep time 1000 forever catch interrupted exception ie log error event handler was interrupted ie run
|
main thread process of the event handler process
|
public void dispose clear
|
disposes the parser
|
public void clear parameters clear
|
clear all name value pairs out of this object
|
public void set character encoding string s character encoding s
|
set the character encoding that will be used by this value parser
|
public void add string name double value add name double to string value
|
add a name value pair into this object
|
public void add string name int value add name integer to string value
|
add a name value pair into this object
|
public void add string name integer value add name value to string
|
add a name value pair into this object
|
public void add string name long value add name long to string value
|
add a name value pair into this object
|
public void add string name string value append name value
|
add a name value pair into this object
|
protected string get field name string cd get header content disposition if cd null cd starts with form data return null int start cd index of name int end cd index of start 6 if start 1 end 1 return null return cd substring start 6 end
|
p retrieves field name from content disposition header
|
public void append string name string value string items this get strings name if items null items new string 1 items 0 value parameters put convert name items else string new items new string items length 1 system arraycopy items 0 new items 0 items length new items items length value parameters put convert name new items
|
add a string parameters
|
protected string get file name string cd get header content disposition if log is debug enabled log debug disposition says cd if cd starts with form data cd starts with attachment return null int start cd index of filename find the next quote int end cd index of start 10 if start 1 end 1 start 10 end return null string str cd substring start 10 end trim if str length 0 return null else if log is debug enabled log debug got a filename str return str
|
p retrieves file name from content disposition header
|
public dbconnection get local connection return local connection
|
returns the local connection currently associated with this dbobject
|
public object remove string name return parameters remove convert name
|
removes the named parameter from the contained hashtable
|
public string convert string value return convert and trim value
|
trims the string data and applies the conversion specified in
|
protected string get header string name return string headers get name to lower case
|
p returns a header with specified name
|
public void set servlet action servlet servlet my action servlet servlet
|
convienience method to set a reference to a working
|
public boolean contains key object key return parameters contains key convert string key
|
determine whether a given key has been inserted
|
public void set mapping action mapping mapping my mapping mapping
|
convienience method to set a reference to a working
|
public action servlet get servlet return my action servlet
|
get the action servlet instance
|
public boolean get boolean string name boolean default value boolean value default value object object parameters get convert name if object null string tmp get string name if tmp equals ignore case 1 tmp equals ignore case true tmp equals ignore case on value true if tmp equals ignore case 0 tmp equals ignore case false value false return value
|
return a boolean for the given name
|
public action mapping get mapping return my mapping
|
get the action mapping instance for this request
|
public boolean get boolean string name return get boolean name false
|
return a boolean for the given name
|
public hashtable get text elements hashtable text elements new hashtable string one key null for enumeration ee my parser keys ee has more elements one key string ee next element if my parser has file item one key text elements put one key string util not null my parser get one key return text elements
|
this method is called on to retrieve all the text
|
public hashtable get file elements hashtable file elements new hashtable string one key null for enumeration ee my parser keys ee has more elements one key string ee next element if my parser has file item one key file elements put one key my parser get file item one key return file elements
|
this method is called on to retrieve all the form file
|
public boolean get bool string name boolean default value if get boolean name default value return boolean true else return boolean false
|
return a boolean for the given name
|
public hashtable get all elements if my parser null throw new illegal argument exception parser not set hashtable all elements new hashtable string one key null for enumeration ee my parser keys ee has more elements one key string ee next element object o my parser get one key if o null all elements put one key o return all elements
|
this method returns all elements of a multipart request
|
public boolean get bool string name return get bool name false
|
return a boolean for the given name
|
public void rollback not supported with this uloader class
|
this method is called on when theres some sort of problem
|
public void finish not used here
|
this method is called on when a successful form post
|
public double get double string name double default value double value default value try object object parameters get convert name if object null value double value of string object 0 double value catch number format exception exception return value
|
return a double for the given name
|
public boolean in memory return content null byte stream null
|
provides a hint if the file contents will be read from memory
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.