Package net.ontopia.persistence.proxy
Interface AccessRegistrarIF
- All Known Implementing Classes:
AbstractLocalCache,ROLocalCache,RWLocalCache,SharedCache
public interface AccessRegistrarIF
INTERNAL: Interface for receiving notification when data is being
read from database storage. This interface is usually implemented
by the various cache implementations, which maintains a copy of the
known database state.
-
Method Summary
Modifier and TypeMethodDescriptioncreateIdentity(Class<?> type, long key) INTERNAL: Factory method for creating new identity objects.createIdentity(Class<?> type, Object key) INTERNAL: Factory method for creating new identity objects.createIdentity(Class<?> type, Object[] keys) INTERNAL: Factory method for creating new identity objects.INTERNAL: Get ticket that should be used as first argument to register methods.voidregisterField(TicketIF ticket, IdentityIF identity, int field, Object value) INTERNAL: Called by storage accessors (FieldAccessIF) when they read the value of an object field from the database.voidregisterIdentity(TicketIF ticket, IdentityIF identity) INTERNAL: Called by storage accessors (QueryIFs or FieldAccessIF) when they locate the identity of an object in the database.
-
Method Details
-
createIdentity
INTERNAL: Factory method for creating new identity objects. Key is guaranteed to have a width of 1 and key value which a Long. -
createIdentity
INTERNAL: Factory method for creating new identity objects. Key is guaranteed to have a width of 1. -
createIdentity
INTERNAL: Factory method for creating new identity objects. Key can have any width. -
getTicket
TicketIF getTicket()INTERNAL: Get ticket that should be used as first argument to register methods. The ticket is used figure out if value should be registered or not. -
registerIdentity
INTERNAL: Called by storage accessors (QueryIFs or FieldAccessIF) when they locate the identity of an object in the database. -
registerField
INTERNAL: Called by storage accessors (FieldAccessIF) when they read the value of an object field from the database.
-