|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface SessionInterface
A local or remote session. A session represents a database connection.
| Method Summary | |
|---|---|
void |
cancel()
Cancel the current or next command (called when closing a connection). |
void |
close()
Roll back pending transactions and close the session. |
DataHandler |
getDataHandler()
Get the data handler object. |
int |
getPowerOffCount()
Get the number of disk operations before power failure is simulated. |
Trace |
getTrace()
Get the trace object |
boolean |
isClosed()
Check if close was called. |
boolean |
isReconnectNeeded(boolean write)
Check if the database changed and therefore reconnecting is required. |
CommandInterface |
prepareCommand(java.lang.String sql,
int fetchSize)
Parse a command and prepare it for execution. |
SessionInterface |
reconnect(boolean write)
Close the connection and open a new connection. |
void |
setPowerOffCount(int i)
Set the number of disk operations before power failure is simulated. |
| Method Detail |
|---|
CommandInterface prepareCommand(java.lang.String sql,
int fetchSize)
throws java.sql.SQLException
sql - the SQL statementfetchSize - the number of rows to fetch in one step
java.sql.SQLException
void close()
throws java.sql.SQLException
java.sql.SQLExceptionTrace getTrace()
boolean isClosed()
int getPowerOffCount()
void setPowerOffCount(int i)
throws java.sql.SQLException
i - the number of operations
java.sql.SQLExceptionDataHandler getDataHandler()
void cancel()
boolean isReconnectNeeded(boolean write)
write - if the next operation may be writing
SessionInterface reconnect(boolean write)
throws java.sql.SQLException
write - if the next operation may be writing
java.sql.SQLException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||