org.neodatis.odb.impl.core.server.connection
Class DefaultServerConnection

java.lang.Object
  extended by org.neodatis.odb.impl.core.server.connection.DefaultServerConnection
All Implemented Interfaces:
IConnection

public class DefaultServerConnection
extends java.lang.Object
implements IConnection


Field Summary
static java.lang.String LOG_ID
           
 
Constructor Summary
DefaultServerConnection(ConnectionManager connectionManager, java.lang.String connectionId, IStorageEngine storageEngine)
           
 
Method Summary
 void close()
           
 void commit()
           
 void endCurrentAction()
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getDescription()
           
 java.lang.String getId()
           
 IStorageEngine getStorageEngine()
           
 boolean lockClass(java.lang.String fullClassName)
           
 boolean lockObjectWithOid(OID oid)
           
protected  void releaseClassLocks()
           
protected  void releaseOidLocks()
           
 void rollback()
           
 void setCurrentAction(int action)
           
 void unlockClass(java.lang.String fullClassName)
           
 void unlockObjectWithOid(OID oid)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG_ID

public static final java.lang.String LOG_ID
See Also:
Constant Field Values
Constructor Detail

DefaultServerConnection

public DefaultServerConnection(ConnectionManager connectionManager,
                               java.lang.String connectionId,
                               IStorageEngine storageEngine)
Method Detail

getId

public java.lang.String getId()
Specified by:
getId in interface IConnection

getStorageEngine

public IStorageEngine getStorageEngine()
Specified by:
getStorageEngine in interface IConnection

close

public void close()
           throws java.lang.Exception
Specified by:
close in interface IConnection
Throws:
java.lang.Exception

commit

public void commit()
            throws java.lang.Exception
Specified by:
commit in interface IConnection
Throws:
java.lang.Exception

releaseOidLocks

protected void releaseOidLocks()
                        throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

releaseClassLocks

protected void releaseClassLocks()
                          throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

unlockObjectWithOid

public void unlockObjectWithOid(OID oid)
                         throws java.lang.Exception
Specified by:
unlockObjectWithOid in interface IConnection
Throws:
java.lang.Exception

unlockClass

public void unlockClass(java.lang.String fullClassName)
                 throws java.lang.Exception
Specified by:
unlockClass in interface IConnection
Throws:
java.lang.Exception

rollback

public void rollback()
              throws java.lang.Exception
Specified by:
rollback in interface IConnection
Throws:
java.lang.Exception

lockObjectWithOid

public boolean lockObjectWithOid(OID oid)
                          throws java.lang.InterruptedException
Specified by:
lockObjectWithOid in interface IConnection
Throws:
java.lang.InterruptedException

lockClass

public boolean lockClass(java.lang.String fullClassName)
                  throws java.lang.InterruptedException
Specified by:
lockClass in interface IConnection
Throws:
java.lang.InterruptedException

setCurrentAction

public void setCurrentAction(int action)
Specified by:
setCurrentAction in interface IConnection

endCurrentAction

public void endCurrentAction()
Specified by:
endCurrentAction in interface IConnection

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface IConnection

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object