org.tentackle.db.rmi
Class RemoteDbCursorImpl
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
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
RemoteDbCursorImpl
public RemoteDbCursorImpl(RemoteDelegateImpl parentDelegate,
DbCursor<? extends DbObject> cursor)
throws RemoteException
- Throws:
RemoteException
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