public interface Session extends Closeable
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the current session.
|
void |
commit()
Commits all the operations done since the last begin transaction.
|
Database |
database()
Provides access to Database object, which is the entry point for all the operations related to
data.
|
Deployment |
deployment()
Provides access to Deployment object which is the entry point for all the operations related to
servers, machines and regions.
|
int |
getSessionId()
Returns unique identifier for this session.
|
boolean |
inTransaction()
Indicates whether the session has a transaction started or not.
|
boolean |
isClosed()
Gets the state of the closed flag.
|
void |
rollback()
Rollbacks all the operations done since the last begin transaction.
|
int getSessionId()
void close()
close
in interface AutoCloseable
close
in interface Closeable
Database database()
Deployment deployment()
void commit()
IllegalStateException
- if the method is called outside a transaction.void rollback()
IllegalStateException
- if the method is called outside a transaction.boolean inTransaction()
boolean isClosed()
Copyright © 2020. All rights reserved.