org.tentackle.db.rmi
Class RemoteDbCursorImpl

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.RemoteDbCursorImpl
All Implemented Interfaces:
Serializable, Remote, RemoteDbCursor

public class RemoteDbCursorImpl
extends UnicastRemoteObject
implements RemoteDbCursor

Remote delegate implementation for DbCursor.

Author:
harald
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
RemoteDbCursorImpl(RemoteDelegateImpl parentDelegate, DbCursor<? extends DbObject> cursor)
           
 
Method Summary
 int afterLast()
           
 void beforeFirst()
           
 void close()
           
 boolean deleteObject()
           
 boolean deleteObjectAt(int row)
           
 List<? extends DbObject> fetch()
           
 int first()
           
 DbCursor<DbObject> getCursor()
          Gets the local cursor.
 String getDbClassName()
           
 int getFetchDirection()
           
 int getFetchSize()
           
 String getName()
           
 DbObject getObject()
           
 DbObject getObjectAt(int row)
           
 int getRow()
           
 int getRowCount()
           
 boolean isAfterLast()
           
 boolean isBeforeFirst()
           
 int last()
           
 boolean next()
           
 boolean previous()
           
 void setFetchDirection(int direction)
           
 void setFetchSize(int rows)
           
 boolean setRow(int row)
           
 List<? extends DbObject> toList()
           
 boolean updateObject(DbObject object)
           
 boolean updateObjectAt(DbObject object, int row)
           
 boolean updateObjectOnly(DbObject object)
           
 
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

RemoteDbCursorImpl

public RemoteDbCursorImpl(RemoteDelegateImpl parentDelegate,
                          DbCursor<? extends DbObject> cursor)
                   throws RemoteException
Throws:
RemoteException
Method Detail

getCursor

public DbCursor<DbObject> getCursor()
Gets the local cursor.

Returns:
the local cursor

getName

public String getName()
               throws RemoteException
Specified by:
getName in interface RemoteDbCursor
Throws:
RemoteException

afterLast

public int afterLast()
              throws RemoteException
Specified by:
afterLast in interface RemoteDbCursor
Throws:
RemoteException

beforeFirst

public void beforeFirst()
                 throws RemoteException
Specified by:
beforeFirst in interface RemoteDbCursor
Throws:
RemoteException

close

public void close()
           throws RemoteException
Specified by:
close in interface RemoteDbCursor
Throws:
RemoteException

deleteObject

public boolean deleteObject()
                     throws RemoteException
Specified by:
deleteObject in interface RemoteDbCursor
Throws:
RemoteException

deleteObjectAt

public boolean deleteObjectAt(int row)
                       throws RemoteException
Specified by:
deleteObjectAt in interface RemoteDbCursor
Throws:
RemoteException

first

public int first()
          throws RemoteException
Specified by:
first in interface RemoteDbCursor
Throws:
RemoteException

getDbClassName

public String getDbClassName()
                      throws RemoteException
Specified by:
getDbClassName in interface RemoteDbCursor
Throws:
RemoteException

getObject

public DbObject getObject()
                   throws RemoteException
Specified by:
getObject in interface RemoteDbCursor
Throws:
RemoteException

getObjectAt

public DbObject getObjectAt(int row)
                     throws RemoteException
Specified by:
getObjectAt in interface RemoteDbCursor
Throws:
RemoteException

getRow

public int getRow()
           throws RemoteException
Specified by:
getRow in interface RemoteDbCursor
Throws:
RemoteException

getRowCount

public int getRowCount()
                throws RemoteException
Specified by:
getRowCount in interface RemoteDbCursor
Throws:
RemoteException

isAfterLast

public boolean isAfterLast()
                    throws RemoteException
Specified by:
isAfterLast in interface RemoteDbCursor
Throws:
RemoteException

isBeforeFirst

public boolean isBeforeFirst()
                      throws RemoteException
Specified by:
isBeforeFirst in interface RemoteDbCursor
Throws:
RemoteException

last

public int last()
         throws RemoteException
Specified by:
last in interface RemoteDbCursor
Throws:
RemoteException

next

public boolean next()
             throws RemoteException
Specified by:
next in interface RemoteDbCursor
Throws:
RemoteException

previous

public boolean previous()
                 throws RemoteException
Specified by:
previous in interface RemoteDbCursor
Throws:
RemoteException

setRow

public boolean setRow(int row)
               throws RemoteException
Specified by:
setRow in interface RemoteDbCursor
Throws:
RemoteException

toList

public List<? extends DbObject> toList()
                                throws RemoteException
Specified by:
toList in interface RemoteDbCursor
Throws:
RemoteException

updateObjectOnly

public boolean updateObjectOnly(DbObject object)
                         throws RemoteException
Specified by:
updateObjectOnly in interface RemoteDbCursor
Throws:
RemoteException

updateObject

public boolean updateObject(DbObject object)
                     throws RemoteException
Specified by:
updateObject in interface RemoteDbCursor
Throws:
RemoteException

updateObjectAt

public boolean updateObjectAt(DbObject object,
                              int row)
                       throws RemoteException
Specified by:
updateObjectAt in interface RemoteDbCursor
Throws:
RemoteException

setFetchSize

public void setFetchSize(int rows)
                  throws RemoteException
Specified by:
setFetchSize in interface RemoteDbCursor
Throws:
RemoteException

getFetchSize

public int getFetchSize()
                 throws RemoteException
Specified by:
getFetchSize in interface RemoteDbCursor
Throws:
RemoteException

setFetchDirection

public void setFetchDirection(int direction)
                       throws RemoteException
Specified by:
setFetchDirection in interface RemoteDbCursor
Throws:
RemoteException

getFetchDirection

public int getFetchDirection()
                      throws RemoteException
Specified by:
getFetchDirection in interface RemoteDbCursor
Throws:
RemoteException

fetch

public List<? extends DbObject> fetch()
                               throws RemoteException
Specified by:
fetch in interface RemoteDbCursor
Throws:
RemoteException


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