org.garret.consus
Interface ConsusStatement

All Superinterfaces:
java.sql.Statement
All Known Subinterfaces:
ConsusPreparedStatement

public interface ConsusStatement
extends java.sql.Statement

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.

See Also:
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

get

java.lang.Object get(java.sql.Ref ref)
                     throws java.sql.SQLException
Get the object by it's OID

Parameters:
ref - reference to the object
Returns:
reference to the fetched object
Throws:
java.sql.SQLException

getLastRef

java.sql.Ref getLastRef()
Get of reference of the last selected, updated or inserted object.

Returns:
reference to the last manipulated object

insert

java.sql.Ref insert(java.lang.Object obj)
                    throws java.sql.SQLException
Insert the object into the table. This method is equivalent to executeUpdate("insert in XXX ?"); setObject(1, obj);

Parameters:
obj - object to be inserted
Returns:
reference to the created object
Throws:
java.sql.SQLException

remove

void remove(java.sql.Ref ref)
            throws java.sql.SQLException
Remove the object with the specifed OID

Parameters:
ref - reference to the removed object
Throws:
java.sql.SQLException

update

void update(java.sql.Ref ref,
            java.lang.Object obj)
            throws java.sql.SQLException
Update the object in the table.

Parameters:
ref - reference to the updated object
obj - object with new values
Throws:
java.sql.SQLException