|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hsqldb.Session
Implementation of a user session with the database. In 1.7.2 Session becomes the public interface to an HSQLDB database, accessed locally or remotely via SessionInterface. When as Session is closed, all references to internal engine objects are set to null. But the session id and scripting mode may still be used for scripting
Method Summary | |
void |
close()
Closes this Session. |
void |
commit()
Commits any uncommited transaction this Session may have open |
Result |
execute(Result cmd)
Executes the command encapsulated by the cmd argument. |
int |
getId()
Retrieves the session identifier for this Session. |
boolean |
isAutoCommit()
Getter for autoCommit attribute. |
boolean |
isClosed()
Retrieves whether this Session is closed. |
boolean |
isReadOnly()
Getter for readonly attribute. |
void |
rollback()
Rolls back any uncommited transaction this Session may have open. |
void |
setAutoCommit(boolean autocommit)
Setter for the autocommit attribute. |
void |
setReadOnly(boolean readonly)
Setter for readonly attribute. |
Result |
sqlExecuteDirectNoPreChecks(String sql)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public int getId()
getId
in interface SessionInterface
public void close()
close
in interface SessionInterface
public boolean isClosed()
isClosed
in interface SessionInterface
public void setAutoCommit(boolean autocommit)
setAutoCommit
in interface SessionInterface
autocommit
- the new value
HsqlException
public void commit()
commit
in interface SessionInterface
HsqlException
public void rollback()
rollback
in interface SessionInterface
HsqlException
public void setReadOnly(boolean readonly) throws HsqlException
setReadOnly
in interface SessionInterface
readonly
- the new value
HsqlException
public boolean isReadOnly()
isReadOnly
in interface SessionInterface
public boolean isAutoCommit()
isAutoCommit
in interface SessionInterface
public Result execute(Result cmd)
execute
in interface SessionInterface
cmd
- the command to execute
public Result sqlExecuteDirectNoPreChecks(String sql)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |