Module org.tentackle.database
Package org.tentackle.dbms.rmi
Interface AbstractDbObjectRemoteDelegate<P extends AbstractDbObject<P>>
- Type Parameters:
P- the db object class
- All Superinterfaces:
Remote,RemoteDelegate
- All Known Subinterfaces:
AbstractPersistentObjectRemoteDelegate<T,,P> ModificationLogRemoteDelegate,NumberPoolRemoteDelegate,NumberRangeRemoteDelegate,SecurityRemoteDelegate,StoredBundleKeyRemoteDelegate,StoredBundleRemoteDelegate
- All Known Implementing Classes:
AbstractDbObjectRemoteDelegateImpl,AbstractPersistentObjectRemoteDelegateImpl,ModificationLogRemoteDelegateImpl,NumberPoolRemoteDelegateImpl,NumberRangeRemoteDelegateImpl,SecurityRemoteDelegateImpl,StoredBundleKeyRemoteDelegateImpl,StoredBundleRemoteDelegateImpl
public interface AbstractDbObjectRemoteDelegate<P extends AbstractDbObject<P>>
extends RemoteDelegate
Delegate for the AbstractDbObject class.
Notice: in this class we cut off generics! The reason is AbstractDbObject.getRemoteDelegate() which can't be made generic without making AbstractDbObject generic. This would end up with such silly things like "new Customer<Customer>()", because java provides no runtime type information of generic type parameters.
Notice: in this class we cut off generics! The reason is AbstractDbObject.getRemoteDelegate() which can't be made generic without making AbstractDbObject 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
Modifier and TypeMethodDescriptionlongdeleteObject(P obj) voiddeletePlain(long id, long serial) voiddummyUpdate(P obj) getExpirationBacklog(long minSerial, long maxSerial) getExpiredTableSerials(long oldSerial, long maxSerial) insertObject(P obj) voidinsertPlain(P obj) booleanisReferenced(long id) longpersistObject(P obj) saveObject(P obj) selectExpiredTableSerials(long oldSerial) selectExpiredTableSerials(long oldSerial, long maxSerial) longlongselectObject(long id) selectObjectForUpdate(long id) selectObjectsWithExpiredTableSerials(long oldSerial) longselectSerial(long id) voidupdateAndSetSerial(long id, long serial) updateObject(P obj) voidupdatePlain(P obj) voidupdateSerial(long id, long serial) voidupdateSerialAndTableSerial(long id, long serial, long tableSerial)
-
Method Details
-
obtainReservedId
- Throws:
RemoteException
-
selectObject
- Throws:
RemoteException
-
selectObjectForUpdate
- Throws:
RemoteException
-
selectAllObjects
- Throws:
RemoteException
-
selectAllIdSerial
- Throws:
RemoteException
-
selectSerial
- Throws:
RemoteException
-
selectMaxId
- Throws:
RemoteException
-
selectMaxTableSerial
- Throws:
RemoteException
-
deletePlain
- Throws:
RemoteException
-
insertPlain
- Throws:
RemoteException
-
updatePlain
- Throws:
RemoteException
-
dummyUpdate
- Throws:
RemoteException
-
updateSerial
- Throws:
RemoteException
-
updateAndSetSerial
- Throws:
RemoteException
-
updateSerialAndTableSerial
- Throws:
RemoteException
-
selectExpiredTableSerials
- Throws:
RemoteException
-
selectExpiredTableSerials
List<IdSerialTuple> selectExpiredTableSerials(long oldSerial, long maxSerial) throws RemoteException - Throws:
RemoteException
-
getExpirationBacklog
- Throws:
RemoteException
-
getExpiredTableSerials
- Throws:
RemoteException
-
selectObjectsWithExpiredTableSerials
- Throws:
RemoteException
-
insertObject
- Throws:
RemoteException
-
updateObject
- Throws:
RemoteException
-
saveObject
- Throws:
RemoteException
-
persistObject
- Throws:
RemoteException
-
deleteObject
- Throws:
RemoteException
-
countModification
- Throws:
RemoteException
-
isReferenced
- Throws:
RemoteException
-