Database session interface
Method Summary | |
void |
close()
Close the session connection |
void |
commit()
Do a commit on the session connection |
java.sql.Connection |
getConnection()
Returns the database connection of the session A dummy session returns null |
int |
getDatabaseId()
Returns the database id of the session 0 to N for a real session -1 for a dummy session |
long |
getId()
Returns the database session unique id |
boolean |
isDummy()
Returns true if the session is a "dummy session" (without real connection) |
void |
rollback()
Do a rollback on the session connection |
Method Detail |
public long getId()
public boolean isDummy()
public int getDatabaseId()
public java.sql.Connection getConnection()
public void commit() throws TelosysException
TelosysException
public void rollback() throws TelosysException
TelosysException
public void close() throws TelosysException
TelosysException