|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the object used for executing a static SQL statement and obtaining the results produced by it.
Only one ResultSet per Statement can be opened at any point in
time. Therefore, if the reading of one ResultSet is interleaved
with the reading of another, each must have been generated by
different Statements. All statement execute
methods implicitly
close a statment's current ResultSet if an open one exists.
Connection.createStatement()
,
ResultSet
Field Summary |
---|
Fields inherited from interface java.sql.Statement |
---|
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO |
Method Summary | |
---|---|
java.lang.Object |
get(java.sql.Ref ref)
Get the object by it's OID |
java.sql.Ref |
getLastRef()
Get of reference of the last selected, updated or inserted object. |
java.sql.Ref |
insert(java.lang.Object obj)
Insert the object into the table. |
void |
remove(java.sql.Ref ref)
Remove the object with the specifed OID |
void |
update(java.sql.Ref ref,
java.lang.Object obj)
Update the object in the table. |
Methods inherited from interface java.sql.Statement |
---|
addBatch, cancel, clearBatch, clearWarnings, close, execute, execute, execute, execute, executeBatch, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setQueryTimeout |
Method Detail |
---|
java.lang.Object get(java.sql.Ref ref) throws java.sql.SQLException
ref
- reference to the object
java.sql.SQLException
java.sql.Ref getLastRef()
java.sql.Ref insert(java.lang.Object obj) throws java.sql.SQLException
obj
- object to be inserted
java.sql.SQLException
void remove(java.sql.Ref ref) throws java.sql.SQLException
ref
- reference to the removed object
java.sql.SQLException
void update(java.sql.Ref ref, java.lang.Object obj) throws java.sql.SQLException
ref
- reference to the updated objectobj
- object with new values
java.sql.SQLException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |