| java.lang.Object com.quadcap.sql.Session
Session | public class Session (Code) | | Analagous (and mapped onto) a JDBC Statement , this class
maintains state and locks on behalf of a single session.
author: Stan Bailes |
buf8 | byte[] buf8(Code) | | A buffer private to this session for formatting rowIds
|
lastInsertId | long lastInsertId(Code) | | |
sessionIndex | int sessionIndex(Code) | | my position in qConn.sessions
|
updateCount | int updateCount(Code) | | |
viewCheck | boolean viewCheck(Code) | | |
Session | Session(Connection conn, int sessionIndex)(Code) | | Construct a new session for the specified database with the specified
authorization
Parameters: db - the database Parameters: auth - the authorization id |
addCursor | final void addCursor(Cursor c)(Code) | | Another cursor created for this session, which we need to keep
track of.
|
addPendingAction | final void addPendingAction(LogStep action)(Code) | | An action to be executed once the currently open cursors are
closed.
|
clearViewCheck | public void clearViewCheck()(Code) | | |
closeCursors | final void closeCursors(boolean abort) throws SQLException, IOException(Code) | | Close any open cursors, aborting or commiting the current transaction
|
closeResultSet | final void closeResultSet()(Code) | | When a statement is initiated on a connection, any previous
result set open on that connection is implicitly closed.
|
decrUpdateCount | final void decrUpdateCount()(Code) | | |
endStatement | final public void endStatement(boolean abort) throws IOException, SQLException(Code) | | Called to conclude the execution of this statement.
Parameters: abort - if true, we perform statement-levelrollback, otherwise we conclude the statement (possiblycommitting the results if autoCommit is true. |
finishContexts | final void finishContexts(Hashtable context, boolean abort) throws SQLException, IOException(Code) | | Each context object represents some state retained on behalf
of a constraint. The 'finish()' method of the context is used
to perform any constraint-specific processing at the end of
a statement/transaction.
|
getBuf8 | final public byte[] getBuf8(long l)(Code) | | |
getConnection | final public Connection getConnection()(Code) | | Accessor for my connection
|
getContext | final StatementContext getContext(Object obj, boolean deferrable)(Code) | | Return the requested statement context.
Parameters: obj - is the key which uniquely identifies the context Parameters: deferrable - is true if this context's execution canbe deferred until after the current statement. |
getDatabase | final public Database getDatabase()(Code) | | Accessor for my database
|
getLastInsertId | public long getLastInsertId()(Code) | | Return the session's "LAST INSERT ID"
|
getLog | final public Log getLog()(Code) | | Accessor for my logger
|
getRandom | final Random getRandom()(Code) | | Accessor for my 'Random' object
|
getResultSet | final ResultSet getResultSet()(Code) | | Return the result set associated with this session
|
getResultSet | final public ResultSet getResultSet(Statement stmt)(Code) | | Return the result set associated with this session, after
making sure that the the result set is bound to my Statement!
|
getSessionId | public int getSessionId()(Code) | | Return my session id
|
getStmtId | public int getStmtId()(Code) | | Return the current statement number
|
getTransaction | final public Transaction getTransaction()(Code) | | Accessor for my transaction (lazy)
|
getTransactionId | final public long getTransactionId()(Code) | | Accessor for my transaction id (lazy)
|
getUpdateCount | final public int getUpdateCount()(Code) | | Return the session update count
|
getViewCheck | public boolean getViewCheck()(Code) | | |
incrUpdateCount | final void incrUpdateCount()(Code) | | |
makeTempTree | final Btree makeTempTree() throws IOException(Code) | | Create a temporary btree with the default comparator
|
makeTransaction | final public long makeTransaction() throws SQLException(Code) | | Return the transaction id, starting a new transaction if
necessary
|
rollbackStatement | final void rollbackStatement() throws IOException, SQLException(Code) | | Statement-level abort. The current statement has failed, but the
transaction as a whole is still ongoing, so only the effects of
the current statement so far should be undone.
|
setLastInsertId | final void setLastInsertId(long insid)(Code) | | Set the session's "LAST INSERT ID"
|
setUpdateCount | final void setUpdateCount(int c)(Code) | | |
setViewCheck | public void setViewCheck()(Code) | | |
toString | public String toString()(Code) | | Return a string representation for debugging
|
|
|