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 Type
    Method
    Description
    createIdentity(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.
    void
    registerField(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.
    void
    INTERNAL: Called by storage accessors (QueryIFs or FieldAccessIF) when they locate the identity of an object in the database.
  • Method Details

    • createIdentity

      IdentityIF createIdentity(Class<?> type, long key)
      INTERNAL: Factory method for creating new identity objects. Key is guaranteed to have a width of 1 and key value which a Long.
    • createIdentity

      IdentityIF createIdentity(Class<?> type, Object key)
      INTERNAL: Factory method for creating new identity objects. Key is guaranteed to have a width of 1.
    • createIdentity

      IdentityIF createIdentity(Class<?> type, Object[] keys)
      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

      void registerIdentity(TicketIF ticket, IdentityIF identity)
      INTERNAL: Called by storage accessors (QueryIFs or FieldAccessIF) when they locate the identity of an object in the database.
    • registerField

      void registerField(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.