|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ontotext.ordi.tripleset.WarningAwareImpl
com.ontotext.ordi.tripleset.ConnectionImpl
public abstract class ConnectionImpl
Field Summary | |
---|---|
protected boolean |
isAutoCommit
|
protected IsolationLevel |
isolationLevel
|
protected DataSource |
source
|
Fields inherited from class com.ontotext.ordi.tripleset.WarningAwareImpl |
---|
warning |
Constructor Summary | |
---|---|
ConnectionImpl(DataSource source)
|
|
ConnectionImpl(DataSource source,
IsolationLevel isolationLevel)
|
Method Summary | ||
---|---|---|
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 |
isWrapperFor(Class<?> iface)
Returns true if this either implements the interface argument or is directly or indirectly a wrapper for an object that does. |
|
void |
setAutoCommit(boolean mode)
Sets the commit mode of the current transaction. |
|
void |
setTransactionIsolationLevel(IsolationLevel isolationLevel)
Sets the isolation level of the current transaction. |
|
|
unwrap(Class<T> iface)
Returns an object that implements the given interface to allow access to non-standard methods, or standard methods not exposed by the proxy. |
Methods inherited from class com.ontotext.ordi.tripleset.WarningAwareImpl |
---|
clearWarnings, getWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ontotext.ordi.Connection |
---|
close, commit, isOpen, isReadOnly, rollback |
Methods inherited from interface com.ontotext.ordi.WarningAware |
---|
clearWarnings, getWarning |
Field Detail |
---|
protected final DataSource source
protected IsolationLevel isolationLevel
protected boolean isAutoCommit
Constructor Detail |
---|
public ConnectionImpl(DataSource source)
public ConnectionImpl(DataSource source, IsolationLevel isolationLevel)
Method Detail |
---|
public DataSource getDataSource()
Connection
DataSource
this session is using.
getDataSource
in interface Connection
public IsolationLevel getTransactionIsolationLevel()
Connection
getTransactionIsolationLevel
in interface Connection
public boolean isAutoCommit()
Connection
isAutoCommit
in interface Connection
public void setAutoCommit(boolean mode) throws ORDIException
Connection
setAutoCommit
in interface Connection
mode
- true for auto-commit, otherwise false
ORDIException
public void setTransactionIsolationLevel(IsolationLevel isolationLevel) throws ORDIException
Connection
setTransactionIsolationLevel
in interface Connection
isolationLevel
- to be used
ORDIException
public boolean isWrapperFor(Class<?> iface) throws ORDIException
Wrapper
isWrapperFor
in interface Wrapper
iface
- A Class defining an interface that the result must implement.
ORDIException
public <T> T unwrap(Class<T> iface) throws ORDIException
Wrapper
unwrap
in interface Wrapper
iface
- a Class defining an interface.
ORDIException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |