org.tentackle.db.rmi
Class DbRemoteDelegateImpl

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by org.tentackle.db.rmi.DbRemoteDelegateImpl
All Implemented Interfaces:
Serializable, Remote, DbRemoteDelegate

public class DbRemoteDelegateImpl
extends UnicastRemoteObject
implements DbRemoteDelegate

Remote delegate implementation for Db.

Author:
harald
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
DbRemoteDelegateImpl(RemoteDbSessionImpl session)
           
 
Method Summary
 long begin(String txName)
           
 boolean commit(boolean oldCommit)
           
 int getConnectionId()
           
 Db getDb()
           
 List<ModificationLog> getDeferredModificationLogList()
           
 int getGroupId()
           
 long getLogModificationTxId()
           
 RemoteDbSessionImpl getSession()
           
 boolean isAlive()
           
 boolean rollback(boolean oldCommit)
           
 void setAlive(boolean alive)
           
 void setCountModificationAllowed(boolean flag)
           
 void setGroupId(int number)
           
 void setLogModificationAllowed(boolean flag)
           
 void setLogModificationDeferred(boolean flag)
           
 void setLogModificationTxEnabled(boolean flag)
           
 void setLogModificationTxId(long txId)
           
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DbRemoteDelegateImpl

public DbRemoteDelegateImpl(RemoteDbSessionImpl session)
                     throws RemoteException
Throws:
RemoteException
Method Detail

getSession

public RemoteDbSessionImpl getSession()

getDb

public Db getDb()

getConnectionId

public int getConnectionId()
                    throws RemoteException
Specified by:
getConnectionId in interface DbRemoteDelegate
Throws:
RemoteException

setGroupId

public void setGroupId(int number)
                throws RemoteException
Specified by:
setGroupId in interface DbRemoteDelegate
Throws:
RemoteException

getGroupId

public int getGroupId()
               throws RemoteException
Specified by:
getGroupId in interface DbRemoteDelegate
Throws:
RemoteException

isAlive

public boolean isAlive()
                throws RemoteException
Specified by:
isAlive in interface DbRemoteDelegate
Throws:
RemoteException

setAlive

public void setAlive(boolean alive)
              throws RemoteException
Specified by:
setAlive in interface DbRemoteDelegate
Throws:
RemoteException

commit

public boolean commit(boolean oldCommit)
               throws RemoteException
Specified by:
commit in interface DbRemoteDelegate
Throws:
RemoteException

rollback

public boolean rollback(boolean oldCommit)
                 throws RemoteException
Specified by:
rollback in interface DbRemoteDelegate
Throws:
RemoteException

begin

public long begin(String txName)
           throws RemoteException
Specified by:
begin in interface DbRemoteDelegate
Throws:
RemoteException

setCountModificationAllowed

public void setCountModificationAllowed(boolean flag)
                                 throws RemoteException
Specified by:
setCountModificationAllowed in interface DbRemoteDelegate
Throws:
RemoteException

setLogModificationAllowed

public void setLogModificationAllowed(boolean flag)
                               throws RemoteException
Specified by:
setLogModificationAllowed in interface DbRemoteDelegate
Throws:
RemoteException

setLogModificationTxEnabled

public void setLogModificationTxEnabled(boolean flag)
                                 throws RemoteException
Specified by:
setLogModificationTxEnabled in interface DbRemoteDelegate
Throws:
RemoteException

setLogModificationTxId

public void setLogModificationTxId(long txId)
                            throws RemoteException
Specified by:
setLogModificationTxId in interface DbRemoteDelegate
Throws:
RemoteException

getLogModificationTxId

public long getLogModificationTxId()
                            throws RemoteException
Specified by:
getLogModificationTxId in interface DbRemoteDelegate
Throws:
RemoteException

setLogModificationDeferred

public void setLogModificationDeferred(boolean flag)
                                throws RemoteException
Specified by:
setLogModificationDeferred in interface DbRemoteDelegate
Throws:
RemoteException

getDeferredModificationLogList

public List<ModificationLog> getDeferredModificationLogList()
                                                     throws RemoteException
Specified by:
getDeferredModificationLogList in interface DbRemoteDelegate
Throws:
RemoteException


Copyright © 2001-2008 Harald Krake, Bergstr. 48, 78098 Triberg, Germany, harald@krake.de