Interface ObjectAccessIF

All Known Implementing Classes:
PersistentObjectAccess

public interface ObjectAccessIF
INTERNAL: A object access implementation for manipulation of identifiable objects.
  • Method Summary

    Modifier and Type
    Method
    Description
    INTERNAL: Returns the identity of the specified object handle.
    INTERNAL: Returns a handle for the specified value.
    getType(Object object)
    INTERNAL: Returns the type of the specified object handle.
    getValue(Object object, FieldInfoIF finfo)
    INTERNAL: Returns the object field value.
    boolean
    isDirty(Object object)
    INTERNAL: Returns true if the specified object is dirty.
    boolean
    isDirty(Object object, int field)
    INTERNAL: Returns true if the specified object field is dirty.
    int
    nextDirty(Object object, int start)
    INTERNAL: Returns the index of the next dirty field from and including the start index.
    int
    nextDirty(Object object, int start, int end)
    INTERNAL: Returns the index of the next dirty field from and including start, up until end, but not including end.
    void
    setDirtyFlushed(Object object, int field)
    INTERNAL: Marks the dirty fields as being flushed (stored in the database).
  • Method Details

    • getObject

      Object getObject(IdentityIF identity)
      INTERNAL: Returns a handle for the specified value. Use this method when you do not know the the object value is. The handle can be used in the other methods to access information about the object. NOTE: an exception is thrown when the identity is unknown.
    • getIdentity

      IdentityIF getIdentity(Object object)
      INTERNAL: Returns the identity of the specified object handle.
    • getType

      Class<?> getType(Object object)
      INTERNAL: Returns the type of the specified object handle. Note that this method returns the same value as getIdentity(object).getType().
    • getValue

      Object getValue(Object object, FieldInfoIF finfo)
      INTERNAL: Returns the object field value.
    • isDirty

      boolean isDirty(Object object)
      INTERNAL: Returns true if the specified object is dirty.
    • isDirty

      boolean isDirty(Object object, int field)
      INTERNAL: Returns true if the specified object field is dirty.
    • nextDirty

      int nextDirty(Object object, int start)
      INTERNAL: Returns the index of the next dirty field from and including the start index. Method returns -1 if there are no dirty fields.
    • nextDirty

      int nextDirty(Object object, int start, int end)
      INTERNAL: Returns the index of the next dirty field from and including start, up until end, but not including end. Method returns -1 if there are no more dirty fields.
    • setDirtyFlushed

      void setDirtyFlushed(Object object, int field)
      INTERNAL: Marks the dirty fields as being flushed (stored in the database).