com.ontotext.ordi.tripleset.impl
Class TConnectionImpl

java.lang.Object
  extended by com.ontotext.ordi.tripleset.WarningAwareImpl
      extended by com.ontotext.ordi.tripleset.ConnectionImpl
          extended by com.ontotext.ordi.tripleset.impl.TConnectionImpl
All Implemented Interfaces:
Connection, TConnection, WarningAware, Wrapper
Direct Known Subclasses:
TQueryConnectionImpl

public abstract class TConnectionImpl
extends ConnectionImpl
implements TConnection


Field Summary
protected  CallMultiplexor listeners
           
 
Fields inherited from class com.ontotext.ordi.tripleset.ConnectionImpl
isAutoCommit, isolationLevel, source
 
Fields inherited from class com.ontotext.ordi.tripleset.WarningAwareImpl
warning
 
Constructor Summary
TConnectionImpl(TSource source)
           
 
Method Summary
 void addListener(Listener listener)
          Adds a new connection listener.
 void close()
          Releases all resources hold by this instance.
 void commit()
          Commits all operations part of the current transaction.
 List<Listener> listListeners()
          Lists all associated connection listeners.
 void removeListener(Listener listener)
          Removes previously associated connection listener.
 void rollback()
          Rollbacks all operations part of the current transaction.
 
Methods inherited from class com.ontotext.ordi.tripleset.ConnectionImpl
getDataSource, getTransactionIsolationLevel, isAutoCommit, isWrapperFor, setAutoCommit, setTransactionIsolationLevel, unwrap
 
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.tripleset.TConnection
addStatement, addStatement, associateTripleset, deassociateTripleset, evaluate, evaluate, getValuesOfType, removeStatement, search
 
Methods inherited from interface com.ontotext.ordi.Connection
getDataSource, getTransactionIsolationLevel, isAutoCommit, isOpen, isReadOnly, setAutoCommit, setTransactionIsolationLevel
 
Methods inherited from interface com.ontotext.ordi.Wrapper
isWrapperFor, unwrap
 
Methods inherited from interface com.ontotext.ordi.WarningAware
clearWarnings, getWarning
 

Field Detail

listeners

protected final CallMultiplexor listeners
Constructor Detail

TConnectionImpl

public TConnectionImpl(TSource source)
Method Detail

addListener

public void addListener(Listener listener)
Description copied from interface: TConnection
Adds a new connection listener.

Specified by:
addListener in interface TConnection

removeListener

public void removeListener(Listener listener)
Description copied from interface: TConnection
Removes previously associated connection listener.

Specified by:
removeListener in interface TConnection

listListeners

public List<Listener> listListeners()
Description copied from interface: TConnection
Lists all associated connection listeners.

Specified by:
listListeners in interface TConnection
Returns:
list of listeners

close

public void close()
           throws ORDIException
Description copied from interface: Connection
Releases all resources hold by this instance.

Specified by:
close in interface Connection
Throws:
ORDIException

commit

public void commit()
            throws ORDIException
Description copied from interface: Connection
Commits all operations part of the current transaction.

Specified by:
commit in interface Connection
Throws:
ORDIException

rollback

public void rollback()
              throws ORDIException
Description copied from interface: Connection
Rollbacks all operations part of the current transaction.

Specified by:
rollback in interface Connection
Throws:
ORDIException


Copyright © 2008. All Rights Reserved.