input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
public void set alt java lang string new alt alt new alt
|
insert the methods description here
|
public void set src java lang string new src src new src
|
insert the methods description here
|
public boolean get inverse return inverse
|
getter for inverse member
|
public void set inverse boolean new inverse inverse new inverse
|
setter for inverse
|
public string get groupname return groupname
|
getter for groupname member
|
public void set groupname string name groupname name
|
setter for groupname
|
public void set multiple java lang string new multiple multiple new multiple
|
sets the multiple value to use
|
public void set component java lang string new value component new value set name java lang string
|
insert the methods description here
|
public void set showlabel java lang string new showlabel showlabel new showlabel set showlabel java lang string
|
setter method for showlabel
|
public void set size java lang string new size size new size set size java lang string
|
setter method for size
|
protected test result create test result return new test result create test result
|
creates the test result to be used for the test run
|
public dir context get context return ctx
|
most often used for testing to peak into things
|
public void add failure test test assertion failed error t log info a test failure has occurred log info t
|
added since junit 3
|
public void print errors test result result if result error count 0 if result error count 1 log info there was result error count error else log info there were result error count errors int i 1 for enumeration e result errors e has more elements i test failure failure test failure e next element log info i failure failed test log info failure thrown exception print errors test result
|
prints the errors to the log
|
public void print failures test result result if result failure count 0 if result failure count 1 log info there was result failure count failure else log info there were result failure count failures int i 1 for enumeration e result failures e has more elements i test failure failure test failure e next element log info i failure failed test throwable t failure thrown exception if t get message null log info truncate t get message else log info failure thrown exception print failures test result
|
prints failures to the log
|
public void print header test result result if result was successful log info ok log info result run count tests else log info failures log info test results log info run result run count failures result failure count errors result error count print header test result
|
prints the header of the report
|
static public void run class test class run new test suite test class run class
|
runs a suite extracted from a test case subclass
|
static public void run test suite test controller a test runner new test controller a test runner do run suite false run test
|
runs a single test and collects its results
|
public string elapsed time as string long run time return number format get instance format double run time 1000 elasped time as string long
|
returns the formatted string of the elapsed time
|
public string get title return expresso component manager
|
returns the title of this controller
|
private boolean ok number double x int one number new double x int value if one number 65 one number 90 return true if one number 48 one number 57 return true if one number 97 one number 122 return true return false ok number double
|
check if the given number is in the range of letters and
|
public string get title return upload get title
|
return the title of this controller
|
public void set state string state throws jsp exception if state equals ignore case show this state show else if state equals ignore case hide this state hide else throw new jsp exception state must be hide or show
|
sets the display
|
public void set tag string tag throws jsp exception if tag equals ignore case span this tag span else if tag equals ignore case div this tag div else if tag equals ignore case font this tag font else throw new jsp exception tag must be span div or font
|
sets the tag
|
public int do start tag throws jsp exception string on click str js layer on click string util not null get onclick on click string util replace string on click id id on click string util replace string on click action action on click string util replace string on click type node super set onclick on click return super do start tag
|
generate the required input tag
|
public void set action string action throws jsp exception if action equals ignore case show this action show js else if action equals ignore case hide this action hide js else throw new jsp exception action must be show or hide
|
sets the action
|
public void set node string node throws jsp exception if node equals ignore case expand this node expand else if node equals ignore case collapse this node collapse else throw new jsp exception node must be collapse or expand
|
sets the node
|
public boolean add layer to hide string id layer if cascaded layer control null cascaded layer control new vector return cascaded layer control add id layer
|
gets the value
|
public string get title return download controller
|
returns title of this controller
|
public int do start tag throws jsp exception string my name this class do start tag return eval body include
|
p creates the new variable for a controller element and introduces
|
public boolean add js file string type tag string js file if js files contains key type tag return false else js files put type tag js file return true
|
add script js file
|
public string get data context return this db name
|
gets the db context can return null
|
public string get paren int which if which paren count return search substring get paren start which get paren end which return null
|
gets the contents of a parenthesized subexpression after a successful match
|
private void error notify string msg string my name this class error notify try event my event new event get job queue entry get data context syserror my name unable to send notifications msg job get job number user get user false catch exception e log error e error notify string
|
triggers the syserror event and sends the message specified by parameter
|
public string get title return send notices get title
|
retrieve the title of this job
|
public vector get error list return error list get error list
|
the set of exceptions that have occurred during processing
|
private string indent int i string buffer tab string new string buffer for int j 0 j i j tab string append return tab string to string indent int
|
insert the methods description here
|
public string get title return database object xml import export get title
|
return the title of this transaction
|
public string get context path http servlet request req string uri req get request uri int last pos uri last index of if last pos 0 return uri substring 0 last pos else return uri get context path http servlet request
|
retrieve the context path
|
public void invalidate http servlet request req http session session req get session true session invalidate invalidate http servlet request
|
invalidates the current users session
|
public string get id http servlet request req http session session req get session true return session get id invalidate http servlet request
|
gets the session id
|
public string get context path http servlet request req return req get context path get context path http servlet request
|
get a sessionss current context path
|
public static synchronized void destroy if the instance null return else clear static variables the instance null
|
p fill in for potential resource removal should be called by config init
|
public object get attribute string attrib name if attributes null return attributes get attrib name else return null get attribute string
|
return an attribute
|
public void set program reprogram program this program program
|
sets the current regular expression program used by this matcher object
|
protected pattern matcher get pattern matcher return pattern matcher pattern matcher get
|
retrieve a thread local instance of the perl5 pattern matcher
|
public int get offset record return offset record get offset record
|
gets the number of records that be skipped
|
public string get custom from clause return custom from clause
|
gets the custom from clause
|
public locale get locale return my locale
|
get the current locale for this dbobject
|
public void set increment integer i increment i set increment integer
|
size of the increment step defaults to 1 usually in most dbs
|
public void set min value integer i minvalue i set min value integer
|
minumum value for the sequence when created
|
public void set start integer i start i set start integer
|
where the sequence starts
|
public void set locale locale new locale my locale new locale
|
sets the locale to be used with this dbobject
|
protected string make limitation stub dbconnection the connection string limit the connection get limitation syntax int offset this get offset record int maxrec this 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 void set value string new value this value string util not null new value get value
|
sets the real value of the valid value
|
public string get key return get value get key
|
gets the real value of the valid value as a cache key
|
public int hash code return this value hash code
|
hashcode since we store by key
|
public void set description string new description this description string util not null new description get description
|
sets the real description of the valid value
|
public string to string string buffer buf new string buffer buf append value comparator buf append reverse ascending descending buf append sort return buf to string
|
human readable string
|
public string to string string buffer buf new string buffer buf append description comparator buf append reverse ascending descending buf append sort return buf to string
|
human readable string
|
public int get read count return read count
|
retrieve the overall read count for dbobjects
|
public int get cache hits return cache hits
|
retrieve the number of cache hits
|
public int get cache misses return cache misses
|
retrieve the number of cache misses
|
public string get data context return db name
|
retrieve the data context of the stat entry
|
public string get dbobj name return dbobj name
|
retrieve the classname of the dbobject for this
|
public int compare to object o int result 0 cache stat entry entry cache stat entry o want lower hitrates first float myhitrate new float float this get cache hits float get read count float hitrate new float float entry get cache hits float entry get read count result myhitrate compare to hitrate if result 0 secondary of reads higher is first result new integer entry get read count compare to new integer get read count return result
|
compares this object with the specified object for order
|
public void add found keys string field name if found keys null found keys new array list found keys add field name
|
this is used internally by jdbc exceutors and jdbc query when dealing
|
public void add category string string1 string string2 return
|
no longer does anything
|
public enumeration get controllers vector the controllers new vector 4 string one controller name null controller one controller null for iterator ee get def get controllers ee has next one controller name string ee next try one controller config manager get controller factory get controller one controller name the controllers add element one controller catch exception e log error unable to instantiate controller one controller name e for each controller listed return the controllers elements get controllers
|
return an enumeration of the controller objects that are members of this
|
protected void add field error string field name string error message if field errors null field errors new hash map 5 field errors put field name new dbobject field error field name error message
|
use this in your derived check field class to add error messages to
|
public string get default component code return this default component code
|
returns the default component code for this schema
|
public string get default description return this default description
|
returns the default description for this schema
|
public string get field error message string field name if field errors null return null dbobject field error fe dbobject field error field errors get field name if fe null return null return fe get error message
|
retrieve the error message associated with this field
|
public enumeration get jobs vector the jobs new vector string one job name null for iterator ee get def get jobs ee has next one job name string ee next try class clazz class locator load class one job name job one job job clazz new instance the jobs add element one job catch exception e log error unable to instantiate job one job name belonging to schema get class get name e for each job listed return the jobs elements get jobs
|
return an enumeration of the jobs that are members of this schema
|
public string get message bundle path return this message bundle path
|
return the path relative to the classpath of the message bundle file for
|
public boolean has error string field name try data field df get data field field name if df get attribute attribute error null return true catch dbexception ex log error invalid field name field name ex return false if field errors null return false dbobject field error fe dbobject field error field errors get field name if fe null return false return true
|
use this to check if a field is in error
|
public enumeration get servlets vector the servlets new vector string one servlet name null std servlet one servlet null for iterator ee get def get servlets ee has next one servlet name string ee next try class clazz class locator load class one servlet name one servlet std servlet clazz new instance the servlets add element one servlet catch exception e log error unable to instantiate servlet one servlet name e for each servlet listed return the servlets elements get servlets
|
return an enumeration of the servlets that are members of this schema
|
protected string get setup default string param name string default value try config context my context config manager get context get dbname config setup default one value null for enumeration sv my context get setup defaults elements sv has more elements one value config setup default sv next element if one value get name equals param name return one value get value catch com jcorporate expresso core misc configuration exception ce log error ce return default value get setup default string string
|
return the value if this property is defined in the properties file for
|
public boolean has errors if field errors null field errors is empty return false return true
|
use this to check if any fields are in error
|
public controller get start controller return null get start controller
|
return a single transaction as the starting point for this application
|
public string get setup value string key return string setup value get key
|
retrieve one of the setup values for the schema
|
protected void clear error string field name if field errors null return field errors remove field name
|
used to clear field error flags
|
public void set setup value string key string value setup value put key value
|
sets the setup values for the given key
|
public enumeration get tests vector v new vector for iterator i get def get tests i has next v add i next return v elements get tests
|
return the list of junit tests in this application
|
private schema definition get def return schema definition schema definitions get this get class get name
|
utility function to get the schema definitions
|
public hashtable get dbobj map return get def get dbobj map
|
retrieves the dbobject map for table creation
|
protected string get string string string code object args string language null string country null try config context my context config manager get context get dbname language my context get language country my context get country catch com jcorporate expresso core misc configuration exception ce language en country us return messages get string by path get message bundle path language country string code args get string string
|
get the i18 nized string for this schema
|
public string get version if this get meta data null return this get meta data get version number else return no version defined
|
p method to return the current version number of an application schema
|
public void set case sensitive query boolean is case sensitive query case sensitive query is case sensitive query
|
this tells the build where clause to either respect case true or
|
public url get metadata location return schema class get resource schema xml
|
base metadata location
|
public string get custom where clause return custom where clause
|
gets the custom where clause
|
public void add sort key string field string boolean ascending if sort keys null sort keys new array list we do this call because get field metadata throws illegal argument exception if the field name does not exist thus guarding against potential sql injection attacks get field meta data field string if ascending sort keys add field string asc else sort keys add field string desc
|
add a field to be sorted in a search
|
public boolean get append custom where clause return append custom where clause
|
gets the settings of append custom where clause
|
public void reconfigure configuration new config throws configuration exception synchronized schema class this setup value null this default component code null this default description null this message bundle path null configure new config
|
reconfigure lifecycle event
|
public void set select distinct boolean flag select distinct flag
|
specify that the distinct keyword for unique rows must be specified right
|
public void clear sort keys sort keys null
|
clear the sort keys
|
public controller get login controller throws controller exception string class name config manager get class handler com jcorporate expresso services controller login controller class handler name if class name null class name length 0 class name com jcorporate expresso services controller login controller default class name return config manager get controller factory get controller class name
|
retrieve the login controller for your schema
|
public void set fields to retrieve string short name string field names throws dbexception dbobject one obj dbobject my dbobjects get short name if one obj null string my name this class set fields to retrieve string string throw new dbexception my name no such object as short name one obj set fields to retrieve field names
|
specify a select list of fields to retrieve from a particular dbobject component
|
public controller get registration controller throws controller exception string class name config manager get class handler registration if class name null class name length 0 class name com jcorporate expresso services controller simple registration class get name return config manager get controller factory get controller class name instantiate string
|
retrieve the registration controller
|
public void set fields to retrieve to none string short name throws dbexception dbobject one obj dbobject my dbobjects get short name if one obj null string my name this class set fields to retrieve to none string throw new dbexception my name no such object as short name one obj retrieve fields null one obj any fields to retrieve multi true
|
specify to retrieve no fields from a particular dbobject component
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.