input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public void update blob int column index blob value throws sqlexception not supported | updates the designated column with a java |
public void update blob string column name blob value throws sqlexception update blob find column column name value | updates the designated column with a java |
public void update boolean int column index boolean value throws sqlexception not supported | updates the designated column with a boolean value |
public void update boolean string column name boolean value throws sqlexception update boolean find column column name value | updates the designated column with a boolean value |
public void update byte int column index byte value throws sqlexception not supported | updates the designated column with a byte value |
public void update byte string column name byte value throws sqlexception update byte find column column name value | updates the designated column with a byte value |
public void update bytes int column index byte values throws sqlexception not supported | updates the designated column with a byte array value |
public void update bytes string column name byte values throws sqlexception update bytes find column column name values | updates the designated column with a byte array value |
public void update clob int column index clob value throws sqlexception not supported | updates the designated column with a java |
public void update clob string column name clob value throws sqlexception update clob find column column name value | updates the designated column with a java |
public void update date int column index date value throws sqlexception not supported | updates the designated column with a java |
public void update date string column name date value throws sqlexception update date find column column name value | updates the designated column with a java |
public void update double int column index double value throws sqlexception not supported | updates the designated column with a double value |
public void update double string column name double value throws sqlexception update double find column column name value | updates the designated column with a double value |
public void update float int column index float value throws sqlexception not supported | updates the designated column with a float value |
public void update float string column name float value throws sqlexception update float find column column name value | updates the designated column with a float value |
public void update int int column index int value throws sqlexception not supported | updates the designated column with an int value |
public void update int string column name int value throws sqlexception update int find column column name value | updates the designated column with an int value |
public void update long int column index long value throws sqlexception not supported | updates the designated column with a long value |
public void update long string column name long value throws sqlexception update long find column column name value | updates the designated column with a long value |
public void update null int column index throws sqlexception not supported | gives a nullable column a null value |
public void update object int column index object obj throws sqlexception not supported | updates the designated column with an object value |
public void update object string column name object obj throws sqlexception update object find column column name obj | updates the designated column with an object value |
public void update ref int column index ref ref throws sqlexception not supported | updates the designated column with a java |
public void update ref string column name ref ref throws sqlexception update ref find column column name ref | updates the designated column with a java |
public void update short int column index short value throws sqlexception not supported | updates the designated column with a short value |
public void update short string column name short value throws sqlexception update short find column column name value | updates the designated column with a short value |
public void update string int column index string value throws sqlexception not supported | updates the designated column with a string value |
public void update string string column name string value throws sqlexception update string find column column name value | updates the designated column with a string value |
public void update time int column index time value throws sqlexception not supported | updates the designated column with a java |
public void update time string column name time value throws sqlexception update time find column column name value | updates the designated column with a java |
public void update timestamp int column index timestamp value throws sqlexception not supported | updates the designated column with a java |
public boolean was null throws sqlexception return null read | reports whether the last column read had a value of sql null |
public void clear parameters throws sqlexception parameters null | clears the current parameter values immediately |
public parameter meta data get parameter meta data throws sqlexception todo need to implement this later return null | retrieves the number types and properties of this prepared statement objects parameters |
public void set array int parameter index array array throws sqlexception not supported | sets the designated parameter to the given array object |
public void set big decimal int parameter index big decimal value throws sqlexception check parameters parameters parameter index 1 new parameter types decimal value | sets the designated parameter to the given java |
public void set blob int parameter index blob value throws sqlexception not supported | sets the designated parameter to the given blob object |
public void set boolean int parameter index boolean value throws sqlexception check parameters parameters parameter index 1 new parameter types boolean value | sets the designated parameter to the given java boolean value |
public void set byte int parameter index byte value throws sqlexception check parameters parameters parameter index 1 new parameter types tinyint value | sets the designated parameter to the given java byte value |
public void set bytes int parameter index byte value throws sqlexception not supported | sets the designated parameter to the given java array of bytes |
public void set clob int parameter index clob value throws sqlexception not supported | sets the designated parameter to the given clob object |
public void set date int parameter index date value throws sqlexception check parameters parameters parameter index 1 new parameter types date value | sets the designated parameter to the given java |
public void set date int parameter index date value calendar cal throws sqlexception check parameters parameters parameter index 1 new parameter types date value | sets the designated parameter to the given java |
public void set double int parameter index double value throws sqlexception check parameters parameters parameter index 1 new parameter types double value | sets the designated parameter to the given java double value |
public void set float int parameter index float value throws sqlexception check parameters parameters parameter index 1 new parameter types float value | sets the designated parameter to the given java float value |
public void set int int parameter index int value throws sqlexception check parameters parameters parameter index 1 new parameter types integer value | sets the designated parameter to the given java int value |
public void set long int parameter index long value throws sqlexception check parameters parameters parameter index 1 new parameter types bigint value | sets the designated parameter to the given java long value |
public void set null int parameter index int sql type throws sqlexception check parameters parameters parameter index 1 new parameter sql type | sets the designated parameter to sql null |
public void set null int parameter index int sql type string sql type name throws sqlexception set null parameter index sql type | sets the designated parameter to sql null |
public void set object int parameter index object value throws sqlexception check parameters parameters parameter index 1 new parameter types java object value | sets the value of the designated parameter using the given object |
public void set object int parameter index object value int target sql type throws sqlexception check parameters parameters parameter index 1 new parameter target sql type value | sets the value of the designated parameter with the given object |
public void set ref int parameter index ref value throws sqlexception not supported | sets the designated parameter to the given ref structured type value |
public void set short int parameter index short value throws sqlexception check parameters parameters parameter index 1 new parameter types smallint value | sets the designated parameter to the given java short value |
public void set string int parameter index string value throws sqlexception check parameters parameters parameter index 1 new parameter types varchar value | sets the designated parameter to the given java string value |
public void set time int parameter index time value throws sqlexception check parameters parameters parameter index 1 new parameter types time value | sets the designated parameter to the given java |
public void set time int parameter index time value calendar cal throws sqlexception set time parameter index value | sets the designated parameter to the given java |
public void set timestamp int parameter index timestamp value throws sqlexception check parameters parameters parameter index 1 new parameter types timestamp value | sets the designated parameter to the given java |
public void set url int parameter index url value throws sqlexception check parameters parameters parameter index 1 new parameter types datalink value | sets the designated parameter to the given java |
public void close throws sqlexception iterator connection event listener it event listners iterator while it has next it next connection closed new connection event this try jdbc stream close closed true catch ioexception ioe logger error ioe get message throw new sqlexception ioe get message | releases this connection objects database and jdbc resources immediately instead of waiting |
public statement create statement throws sqlexception return create statement java sql result set type forward only java sql result set concur read only | creates a statement object for sending sql statements to the database |
public boolean get auto commit throws sqlexception return auto commit | retrieves the current auto commit mode for this connection object |
public string get catalog throws sqlexception return catalog | retrieves this connection objects current catalog name |
public int get holdability throws sqlexception return java sql result set hold cursors over commit | retrieves the current holdability of result set objects created using this connection object |
public int get transaction isolation throws sqlexception return transaction isolation level | retrieves this connection objects current transaction isolation level |
public boolean is read only throws sqlexception todo make use of this flag return read only | retrieves whether this connection object is in read only mode |
public string native sql string sql throws sqlexception underneath real jdbc driver will handle this return sql | converts the given sql statement into the systems native sql grammar |
public callable statement prepare call string sql throws sqlexception todo not yet supported not supported return null | creates a callable statement object for calling database stored procedures |
public prepared statement prepare statement string sql throws sqlexception return prepare statement sql java sql result set type forward only java sql result set concur read only | creates a prepared statement object for sending parameterized sql statements to the database |
public void release savepoint savepoint savepoint throws sqlexception todo not yet implemented | removes the given savepoint object from the current transaction |
public void rollback savepoint savepoint throws sqlexception todo not yet implemented rollback | undoes all changes made after the given savepoint object was set |
public void set auto commit boolean auto commit throws sqlexception string sql auto commit set autocommit 1 set autocommit 0 try jdbc stream write sql get bytes catch ioexception ioe logger error ioe get message throw new sqlexception ioe get localized message this auto commit auto commit | sets this connections auto commit mode to the given state |
public void cast vote commit object coordinator throws channel exception vote message vote new vote commit grp interface get local address grp interface send vote coordinator | fixme should not multicast here directly send it to the coordinator |
public void cast vote abort object coordinator throws channel exception vote message vote new vote abort grp interface get local address grp interface send vote coordinator | fixme should not multicast here directly send it to the coordinator |
public void cast mahatittha message message throws channel exception channel send null address get local address message | multicast a message to the whole group |
public void cast mahatittha message message sub group sub group throws channel exception iterator it sub group get members iterator while it has next address address address it next channel send address address get local address message | cast a message to the sub group |
public mahatittha message receive throws channel not connected exception channel closed exception timeout exception mahatittha message message null object obj null do obj channel receive timeout while obj instanceof message message mahatittha message message obj get object return message | fixme need better exception handling |
public void set using tls boolean using tls this using tls using tls | set this to use tls encrypted connection |
public boolean is using tls return using tls | verifies if is using tls in connections |
public void set using ssl boolean using ssl this using ssl using ssl | set this to use ssl encrypted connection |
public boolean is using ssl return using ssl | verifies if is using ssl in connections |
public void set smtp port int smtp port this smtp port smtp port | configures the smtp port default 25 |
public int get smtp port return smtp port | get the smtp port |
public string get from address return from address | get the sender address |
public void set from name string from name this from name from name | defines the sender of all subsequent messages |
public string get from name return from name | get the sender |
public string get bounce address return bounce address | get the bounce address |
public void set bounce address string bounce address this bounce address bounce address | defines the bounce address of all subsequent messages |
private void configure email email throws email exception email set debug is debug email set tls is using tls email set ssl is using ssl email set host name get host name if is using ssl email set ssl smtp port integer to string get smtp port else email set smtp port get smtp port if get user name null get password null email set authentication get user name get password email set from get from address get from name email set bounce address bounce address | configures the e mail with the already defined settings |
public void set frame position char object attacker xpivot position attacker get xposition attacker get width 2 frame width 2 ypivot position attacker get yposition frame height 5 | set the x y positions of the frame |
public boolean ready to paint if threaded char objects active count 0 return true else return false | check if we have active threads objects to paint |
private void exit form java awt event window event evt check key bindings system exit 0 | exit the application |
public integer get key value string key str key str trim integer key val integer value of key str return key val | returns an integer that represents the key passed in from key str |
public void start painter new thread this painter start | start the painter thread |
public void run int delay 50 long time system current time millis while thread current thread painter repaint try time delay thread sleep math max 0 time system current time millis catch interrupted exception e break | fixme some method of keeping a constant framerate needs to be implemented |
public void add paintable object char object object paintable objects add object | add a char object to be painted |
public void add paintable frame object vector frame obj i 5 because each frame has 4 int values following it for int i 0 i frame obj size i 5 vector frame new vector frame add element frame obj element at i frame add element frame obj element at i 1 x frame add element frame obj element at i 2 y frame add element frame obj element at i 3 width frame add element frame obj element at i 4 height paintable objects add frame | add a frame to be painted |
public void run modifying key bindings true if key pressed 1 key pressed 1 jlabel curr label label with focus curr label set text press a key while key pressed 1 try listener sleep 1 curr label request focus catch interrupted exception e curr label set text key event get key text key pressed set key curr label key pressed 1 modifying key bindings false | starts the listener thread |
public void change player position int x int y if within bounds xpos x ypos y p char set position xpos x ypos y xpos p char get xposition ypos p char get yposition | this method changes the position of the character |
public boolean within bounds int x int y left side if x game bounding box x return false right side else if x gui util pc icon get icon width game bounding box width 10 return false top else if y game bounding box y 20 return false bottom else if y game bounding box height 5 return false else return true | check to make sure the player is within the game window while moving |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.