input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public void set auth key string auth key string auth private key set auth key new auth key auth key auth private key | sets current authorization key pair |
public auth key state check auth auth key auth key throws api exception return check auth auth key get authkey | check authorization state |
public auth key state check auth string auth key throws api exception set api url string result api get auth key state auth key check error result string usercode api eval xml result authkeystate usercode string authorized api eval xml result authkeystate authorized auth key state state new auth key state state set authorized authorized state set code usercode return state | check authorization state |
public auth key create auth throws api exception return create auth authkey level manage | create a new authorization key with default code manage code access |
public boolean has xml element string response string element string begin element element string end element element int begin idx response index of begin element int end idx response index of end element return begin idx 0 begin idx end idx | fast xml element check |
public user get user string code throws api exception set api url string result null try result call component signed user get get api get private key true false true code code sharedkey get api get shared key catch api exception ex if error user notfound equals ex get error code return null throw ex return read object user class result new user converter | get public user info |
public string get version throws api exception if api get base url null api set base url get base url string result call component version string version api eval xml result version return version | retrieves current api version |
public work get work string code throws api exception set api url string result null try result call component work get code code catch api exception ex if error work notfound equals ex get error code return null throw ex return read object work class result new work converter | get public work info |
public work get work private string code throws api exception return get work private code get auth key | get private work info |
public work get work private string code auth key auth key throws api exception set api url check auth key auth key string result null try result call component signed work get private auth key true false true code code catch api exception ex if error work notfound equals ex get error code return null throw ex return read object work class result new work converter | get private work info |
public boolean work delete string code throws api exception set api url string result call component signed work delete get auth key true false false code code return check ready result | deletes a work |
public download info get work download string code boolean owner throws api exception set api url string result if owner check auth key auth key result call component signed work download private auth key true false false code code else result call component signed work download get api get private key true false false sharedkey get api get shared key code code return read object download info class result new download info converter | gets a works download info |
public void load standard codecs register codec presence com dicarta jabber xml presence codec register codec message com dicarta jabber xml message codec register codec url com dicarta jabber xml url message codec | need to figure out how to load this |
public void clear screen set current x get context get anchor x set current y get context get anchor y image next image get next image if next image null paint page next image else if no more pages really clear the screen super clear screen | the paging lyric listener |
public void login string db string user string password if db null database set selected item db if user null username set text user if password null this password set text password if db null user null password null if access manager set current user db user password data manager initialize db close | special login to bypass the window |
public void save t instance log debug saving instance get class get simple name instance try get session save instance log debug save successful catch exception re log error save failed re finally if get session null close session | insert new records into the table |
public void save or update t instance log debug saving instance get class get simple name instance try get current session save or update instance get current session flush log debug save successful catch runtime exception re log error save failed re throw re | save of update of type domain |
public void update t instance log debug updating instance get class get simple name instance try get current session update instance get current session flush log debug updated successful catch runtime exception re log error update failed re throw re | synchronize the db and instance domain |
public void merge t instance log debug merging instance get class get simple name instance try get current session merge instance get current session flush log debug merge successful catch runtime exception re log error merge failed re throw re | synchronize the db and instance domain |
public void delete t instance log debug deleting instance get class get simple name instance try get session delete instance log debug delete successful catch runtime exception re log error delete failed re throw re | remove the instance from the database |
public t find by id integer id class t domain class log debug finding domain class get simple name instance by id id t t null try object o get session get domain class get name id if o null t t o return t catch runtime exception re log error find by id failed re throw re finally close session | find the domain object by id |
public t execute unique query string query string log debug query query string try query query get current session create query query string object o query unique result if o null return t o else return null catch runtime exception re log error query is failed re throw re | execute the hibernate query which returns single instance of type t |
public void set batch id int batch id this batch id batch id | set batch id |
public int get child id return child id | get child id |
public void set child id int child id this child id child id | set child id |
public int get stream length throws ioexception if stream null build stream return stream length | return the length of the constructed stream |
public input stream get stream throws ioexception if stream null build stream return stream | return the constructed stream |
public int get validation funcitons master id return validation funcitons master id | get functions id |
public void close throws ioexception if raf null raf close if stream null stream close | close any open files |
public void set validation funcitons master id int validation funcitons master id this validation funcitons master id validation funcitons master id | set funtions id |
public void set field map map string field data field map this field map field map | set the field map keep record of field in a map |
public void set child map map integer child data child map this child map child map | set the child map child record for volume |
public void put in field map string key field data value field map put key value | put a field record in a map collection of fields |
public string get post validaton file path return post validaton file path | get post validation file path |
public void set post validaton file path string file path post validaton file path file path | get post validation file path |
public string get document number int volume id string document number try pstmt connection prepare statement sqlqueries sel doc num pvr pstmt set int 1 volume id pstmt set int 2 child id pstmt execute query rs pstmt get result set if rs next document number rs get string 1 catch exception e logger error exception while getting the document number for pvr e string writer sw new string writer e print stack trace new print writer sw logger error sw to string return document number null document number | get document number for a specific the volume |
public int get batch id return batch id | get batch id |
public string get function body return function body | get the function body for the method |
public void set function body string function body this function body function body | set the function body |
public void set function id int function id this function id function id | set function id |
public object get value int index return value index | return the object at the given index |
public string to string return value 0 to string | returns content of column 0 |
public string dump string buffer buffer new string buffer table row buffer append integer to string id for int i 0 i value length i buffer append buffer append value i buffer append return buffer to string | return content for debugging |
public string get parameter return parameter null parameter | get the parameter for the function |
public int get target count return target tables size | return the number of dependencies for this code managed table code |
public managed table get target table int index return managed table target tables get index | return the dependency instance stored at code index code |
public string get target id column int index return string target id column get index | return the name of the id column in the dependency |
public string to string return managed table table number table name | return a string representation of this class |
public string get sqlstate return sql state | retrieves the sqlstate for this code sqlfail exception code object |
private void print exceptions string custom message exception execption logger error custom message execption string writer swt new string writer execption print stack trace new print writer swt logger error swt to string | this methods prints the stack trace of generated exceptions |
public void close throws sqlexception stmt actual close if stmt before null for int i 0 i stmt before length i stmt before i close if stmt after null for int i 0 i stmt after length i stmt after i close | releases this code statement code objects database |
public int get volume id return volume id | return the volume determined for this marshall page instance |
public void set null int parameter index int sql type throws sqlexception stmt actual set null parameter index sql type if is in where clause parameter index stmt before null stmt before 0 set null parameter index param offset 1 sql type | sets the designated parameter to sql code null code |
private void write data string field name boolean is start message writer writer if is start try field name writer start element t field names writer write attribute a name field name catch ioexception ex common logger print exceptions this ioexception while writing in xml during requesting for project fields ex else field name try writer end element catch ioexception ex common logger print exceptions this ioexception while writing in xml during requesting for project fields ex | method to write output xml data |
private void fill record to volume data volume data new volume data volume id project data | get required data for volume for pvr |
public void set boolean int parameter index boolean x throws sqlexception stmt actual set boolean parameter index x if is in where clause parameter index stmt before null stmt before 0 set boolean parameter index param offset 1 x | sets the designated parameter to the given java code boolean code value |
private bate numbers create bates list bates list string field value string volume name int project id int field id int child id bate numbers bates null if bates list null string start bate string bates list get 0 string end bate string bates list get bates list size 1 bates new bate numbers bates set start bate start bate bates set end bate end bate bates set field value field value bates set volume name volume name bates set child id child id bates set field id field id bates set project id project id return bates | method to create bates number |
public void set byte int parameter index byte x throws sqlexception stmt actual set byte parameter index x if is in where clause parameter index stmt before null stmt before 0 set byte parameter index param offset 1 x | sets the designated parameter to the given java code byte code value |
public void set bytes int parameter index byte x throws sqlexception stmt actual set bytes parameter index x if is in where clause parameter index stmt before null stmt before 0 set bytes parameter index param offset 1 x | sets the designated parameter to the given java array of bytes |
public void set short int parameter index short x throws sqlexception stmt actual set short parameter index x if is in where clause parameter index stmt before null stmt before 0 set short parameter index param offset 1 x | sets the designated parameter to the given java code short code value |
private boolean is equal length string bates string last bate message writer writer string user session id throws ioexception int last batelength int bateslength last batelength last bate length bateslength bates length if bateslength last batelength status error in lfp file bates length not equal for bates command import data error message status return false return true | method to check the given batesnumber are in equal length |
public void set int int parameter index int x throws sqlexception stmt actual set int parameter index x if stmt before null is in where clause parameter index stmt before 0 set int parameter index param offset 1 x | sets the designated parameter to the given java code int code value |
public void set long int parameter index long x throws sqlexception stmt actual set long parameter index x if stmt before null is in where clause parameter index stmt before 0 set long parameter index param offset 1 x | sets the designated parameter to the given java code long code value |
public void set float int parameter index float x throws sqlexception stmt actual set float parameter index x if stmt before null is in where clause parameter index stmt before 0 set float parameter index param offset 1 x | sets the designated parameter to the given java code float code value |
public void set double int parameter index double x throws sqlexception stmt actual set double parameter index x if stmt before null is in where clause parameter index stmt before 0 set double parameter index param offset 1 x | sets the designated parameter to the given java code double code value |
public void set model peer list array list peers model peer list peers | store the managed model peers registered for this task |
public void set string int parameter index string x throws sqlexception stmt actual set string parameter index x if stmt before null is in where clause parameter index stmt before 0 set string parameter index param offset 1 x | sets the designated parameter to the given java code string code value |
public int get update age for update dbtask db task throws sqlexception update age 0 if update age 0 note the age for update before doing the changes this also serializes table updated connection con db task get connection statement st2 con create statement result set rs st2 execute query sqlqueries sel utask svrage result set rs st2 execute query select age from svrage with updlock where dummy key 0 rs next update age 1 rs get int 1 rs close note not managed st2 execute update update svrage set age update age where dummy key 0 return update age | return the age of managed table updates done by this task |
public prepared statement prepare statement dbtask db task string sql throws sqlexception return new managed prepared statement this db task sql | prepare a managed prepared statement |
public void clear parameters throws sqlexception stmt actual clear parameters if stmt before null for int i 0 i stmt before length i stmt before i clear parameters if stmt after null for int i 0 i stmt after length i stmt after i clear parameters | clears the current parameter values immediately |
public int execute update dbtask db task string sql throws sqlexception prepared statement ps prepare statement db task sql int count ps execute update ps close return count | execute given sql as a managed prepared statement |
public data input stream get data stream data input stream result null try result new data input stream new buffered input stream new gzipinput stream rawin new stream catch ioexception e logger error exception while getting data input stream for non xml input data e string writer sw new string writer e print stack trace new print writer sw logger error sw to string log quit e return result | obtain a data input stream for non xml input data |
public output stream get output stream output stream result null try result new buffered output stream new gzipoutput stream rawout new stream catch ioexception e logger error exception while getting data output stream for non xml input data e string writer sw new string writer e print stack trace new print writer sw logger error sw to string log quit e return result | obtain an output stream for non xml input data |
public void create temporary table string sql dbtask db task throws sqlexception log print create temporary table sql set bin log enabled false db task connection con db task get connection statement st con create statement st execute update sqlqueries drop temp tbl st execute update drop table temp temp table has been created true st execute update sql | create a temporary table |
public void set object int parameter index object x throws sqlexception stmt actual set object parameter index x if stmt before null is in where clause parameter index stmt before 0 set object parameter index param offset 1 x | p sets the value of the designated parameter using the given object |
public result set meta data get meta data throws sqlexception return stmt actual get meta data | retrieves a code result set meta data code object that contains |
public connection get connection throws sqlexception return con | retrieves the code connection code object |
private bate numbers create bates list doc list list field list int first int second int third bate numbers bates null bates new bate numbers int document doc list size bates set documents document int field count field list size bates set fields field count bates set words first bates set characters second bates set tags third return bates | method to create bates number |
public hash value get hash value string field name log print project mapper get hash value field name return hash value get field name | get the hash value representation of a projectfields field |
private string get file name with path user task user throws sqlexception int user id user get users id pstmt connection prepare statement sqlqueries sel user name generate file name simple date format format new simple date format yyyy mm dd hh mm string str date format format new date string file name pvr str date xls pstmt set int 1 user id pstmt execute query rs pstmt get result set if rs next file name pvr rs get string 1 str date xls return file name | get post validation report excelsheet file name with complete path |
private void get last inserted record user task user message writer writer throws sqlexception ioexception pstmt connection prepare statement sqlqueries sel post validation last record pstmt execute query rs pstmt get result set if rs next post validaton id rs get int 1 command sql query write xml from result user rs writer rs close pstmt close | get the current post validation record on which the process in being |
public hash value get hash value int seq string field name string key get seq log print project mapper get hash value seq field name return hash value get field name | get the hash value representation of a projectfields field |
private void write attribute string value throws ioexception start writing column writer start element t column if value null writer write attribute a is null yes else writer write content value column end writer end element | write the value to the column and if check the value |
public project mapper remove hash value hash value hv log print project mapper remove hash value hv sequence hv field name int index get field index hv field name if index 1 key remove index put hv field name null return this | replace this fields hash value with null in this hash map |
public string get checker value return checker value | get the checker value means what the value he checked |
public string get field name int i log print project mapper get field name i key get i return string key get i | get the projectfields |
public connection get connection try if null connection connection new fossa data source get connection existing code connection fossa data source get connection catch exception ex throw new server fail exception error getting a connection from datasource return connection | getting the database connection using datasource |
public statement get statement if null connection get connection if null statement try statement connection create statement catch sqlexception ex throw new server fail exception error getting a statement from connection return statement | method used to get the statement object from the connection object |
public result set get result set if null statement get statement if null result set try result set statement get result set catch sqlexception ex throw new server fail exception error getting a result set from statement return result set | method used to get the result set object from the statement object |
public int get size log print project mapper get size key size return key size | get the number of fields in this projectfields table for this project |
public boolean check mandatory string str default list model model string str array str split int size str array length for int i 0 i size i if model contains str array i trim return false return true | see if the given string is listed in the model |
public boolean check mandatory string str managed table model model string str array str split int row count model get row count int size str array length for int i 0 i size i for int j 0 j row count j if str equals string model get value at j 0 break if j row count return false return true | see if the given string is listed in the model |
public boolean min edit string min string value if min null min equals value null value equals if value compare to ignore case min 0 value is less than the min value return false return true | see if the given value is less than the given minimum value |
public boolean max edit string max string value if max null max equals value null value equals if value compare to ignore case max 0 value is greater than the max value return false return true | see if the given value is greater than the given maximum value |
protected string slash to backslash string str string buffer buf new string buffer str for int i 0 i buf length i if buf char at i buf set char at i return buf to string | convert slashes to backslashes |
private void write report xml list validation report report list validator get report list try write xml from list report list false if report list size 0 write report to excel sheet user report list catch exception ex ex print stack trace | write the xml and send to client as reponse |
public jcomponent get component int i return jcomponent component get i | get the component at the given index position |
private void show error dialog string error string string error directive toolkit get default toolkit beep log print beep project editor show error dialog object options ok int response joption pane show option dialog comp error string error directive field error joption pane ok option joption pane error message null options options 0 | show the error dialog |
private string do document formatting result set rs string error null list validation list get formatting list rs execute the formatting for the field if it is validatable if validation list null error format field by all function validation list if error occured while executing all the formatting function of all field then stop execution and return error message if error null return error return null | run the script file to format the each field of the document |
public void set images result set rs try images if rs next images rs get string 1 while rs next images rs get string 1 if images null images catch sqlexception ex common logger print exceptions this exception while setting the images ex | get the images from the code result set code and put into the |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.