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 TypeMethodDescriptionlong
deleteObject
(P obj) void
deletePlain
(long id, long serial) void
dummyUpdate
(P obj) getExpirationBacklog
(long minSerial, long maxSerial) getExpiredTableSerials
(long oldSerial, long maxSerial) insertObject
(P obj) void
insertPlain
(P obj) boolean
isReferenced
(long id) long
persistObject
(P obj) saveObject
(P obj) selectExpiredTableSerials
(long oldSerial) selectExpiredTableSerials
(long oldSerial, long maxSerial) long
long
selectObject
(long id) selectObjectForUpdate
(long id) selectObjectsWithExpiredTableSerials
(long oldSerial) long
selectSerial
(long id) void
updateAndSetSerial
(long id, long serial) updateObject
(P obj) void
updatePlain
(P obj) void
updateSerial
(long id, long serial) void
updateSerialAndTableSerial
(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
-