org.tentackle.db.rmi
Interface DbObjectRemoteDelegate

All Superinterfaces:
Remote, RemoteDelegate
All Known Subinterfaces:
AppDbObjectRemoteDelegate, DbPreferencesKeyRemoteDelegate, DbPreferencesNodeRemoteDelegate, HistoryRemoteDelegate, ModificationLogRemoteDelegate, ObjectIdRemoteDelegate, SecurityRemoteDelegate
All Known Implementing Classes:
AppDbObjectRemoteDelegateImpl, DbObjectRemoteDelegateImpl, DbPreferencesKeyRemoteDelegateImpl, DbPreferencesNodeRemoteDelegateImpl, HistoryRemoteDelegateImpl, ModificationLogRemoteDelegateImpl, ObjectIdRemoteDelegateImpl, SecurityRemoteDelegateImpl

public interface DbObjectRemoteDelegate
extends RemoteDelegate

Delegate for the DbObject class.
Notice: in this class we cut off generics! The reason is DbObject.getRemoteDelegate() which can't be made generic without making DbObject generic. This would end up with such silly things like "new Customer<Customer>()", because java provides no runtime type information of generic type parameters.

Author:
harald

Method Summary
 DbObjectResult deleteObject(DbObject obj, boolean withLinkedObjects)
           
 boolean deletePlain(long id, long serial)
           
 boolean dummyUpdate(DbObject obj)
           
 long[] getExpirationBacklog(long minSerial, long maxSerial)
           
 long[] getExpiredTableSerials(long oldSerial, long maxSerial)
           
 DbObjectResult insertObject(DbObject obj, boolean withLinkedObjects)
           
 boolean insertPlain(DbObject obj)
           
 boolean isReferenced(long id)
           
 DbObjectResult save(DbObject obj)
           
 DbObject select(long id, boolean withLinkedObjects)
           
 List<? extends DbObject> selectAll(boolean withLinkedObjects)
           
 RemoteDbCursor selectAllCursor(boolean withLinkedObjects)
           
 long[] selectExpiredTableSerials(long oldSerial)
           
 long[] selectExpiredTableSerials(long oldSerial, long maxSerial)
           
 DbObject selectInValidContext(long id, boolean withLinkedObjects)
           
 DbObject selectLocked(long id, boolean withLinkedObjects)
           
 long selectModification()
           
 long selectSerial(long id)
           
 DbObjectResult updateObject(DbObject obj, boolean withLinkedObjects)
           
 boolean updatePlain(DbObject obj)
           
 boolean updateSerial(long id, long serial)
           
 boolean updateSerialAndTableSerial(long id, long serial, long tableSerial)
           
 boolean updateTableSerial(long id)
           
 

Method Detail

select

DbObject select(long id,
                boolean withLinkedObjects)
                throws RemoteException
Throws:
RemoteException

selectLocked

DbObject selectLocked(long id,
                      boolean withLinkedObjects)
                      throws RemoteException
Throws:
RemoteException

selectInValidContext

DbObject selectInValidContext(long id,
                              boolean withLinkedObjects)
                              throws RemoteException
Throws:
RemoteException

selectAll

List<? extends DbObject> selectAll(boolean withLinkedObjects)
                                   throws RemoteException
Throws:
RemoteException

selectSerial

long selectSerial(long id)
                  throws RemoteException
Throws:
RemoteException

deletePlain

boolean deletePlain(long id,
                    long serial)
                    throws RemoteException
Throws:
RemoteException

insertPlain

boolean insertPlain(DbObject obj)
                    throws RemoteException
Throws:
RemoteException

updatePlain

boolean updatePlain(DbObject obj)
                    throws RemoteException
Throws:
RemoteException

dummyUpdate

boolean dummyUpdate(DbObject obj)
                    throws RemoteException
Throws:
RemoteException

updateSerial

boolean updateSerial(long id,
                     long serial)
                     throws RemoteException
Throws:
RemoteException

updateTableSerial

boolean updateTableSerial(long id)
                          throws RemoteException
Throws:
RemoteException

updateSerialAndTableSerial

boolean updateSerialAndTableSerial(long id,
                                   long serial,
                                   long tableSerial)
                                   throws RemoteException
Throws:
RemoteException

selectExpiredTableSerials

long[] selectExpiredTableSerials(long oldSerial)
                                 throws RemoteException
Throws:
RemoteException

selectExpiredTableSerials

long[] selectExpiredTableSerials(long oldSerial,
                                 long maxSerial)
                                 throws RemoteException
Throws:
RemoteException

getExpirationBacklog

long[] getExpirationBacklog(long minSerial,
                            long maxSerial)
                            throws RemoteException
Throws:
RemoteException

getExpiredTableSerials

long[] getExpiredTableSerials(long oldSerial,
                              long maxSerial)
                              throws RemoteException
Throws:
RemoteException

insertObject

DbObjectResult insertObject(DbObject obj,
                            boolean withLinkedObjects)
                            throws RemoteException
Throws:
RemoteException

updateObject

DbObjectResult updateObject(DbObject obj,
                            boolean withLinkedObjects)
                            throws RemoteException
Throws:
RemoteException

save

DbObjectResult save(DbObject obj)
                    throws RemoteException
Throws:
RemoteException

deleteObject

DbObjectResult deleteObject(DbObject obj,
                            boolean withLinkedObjects)
                            throws RemoteException
Throws:
RemoteException

selectModification

long selectModification()
                        throws RemoteException
Throws:
RemoteException

selectAllCursor

RemoteDbCursor selectAllCursor(boolean withLinkedObjects)
                               throws RemoteException
Throws:
RemoteException

isReferenced

boolean isReferenced(long id)
                     throws RemoteException
Throws:
RemoteException


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