|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Connection
A connection (session) to specific data provider. The Connection
interface define common functionality to be supported by specific data
provider.
| Method Summary | |
|---|---|
void |
close()
Releases all resources hold by this instance. |
void |
commit()
Commits all operations part of the current transaction. |
DataSource |
getDataSource()
Gets the DataSource this session is using. |
IsolationLevel |
getTransactionIsolationLevel()
Gets the isolation level of the current transaction. |
boolean |
isAutoCommit()
Checks if the the current session is in auto-commit mode. |
boolean |
isOpen()
Checks if this session is opened. |
boolean |
isReadOnly()
Checks if the current session to data provider is read-only. |
void |
rollback()
Rollbacks all operations part of the current transaction. |
void |
setAutoCommit(boolean mode)
Sets the commit mode of the current transaction. |
void |
setTransactionIsolationLevel(IsolationLevel isolationLevel)
Sets the isolation level of the current transaction. |
| Methods inherited from interface com.ontotext.ordi.Wrapper |
|---|
isWrapperFor, unwrap |
| Methods inherited from interface com.ontotext.ordi.WarningAware |
|---|
clearWarnings, getWarning |
| Method Detail |
|---|
boolean isAutoCommit()
void setAutoCommit(boolean mode)
throws ORDIException
mode - true for auto-commit, otherwise false
ORDIException
void rollback()
throws ORDIException
ORDIException
void commit()
throws ORDIException
ORDIExceptionIsolationLevel getTransactionIsolationLevel()
void setTransactionIsolationLevel(IsolationLevel isolationLevel)
throws ORDIException
isolationLevel - to be used
ORDIExceptionboolean isReadOnly()
boolean isOpen()
void close()
throws ORDIException
ORDIExceptionDataSource getDataSource()
DataSource this session is using.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||