Class PersistentObjectAccess

  • All Implemented Interfaces:
    ObjectAccessIF

    public class PersistentObjectAccess
    extends Object
    implements ObjectAccessIF
    INTERNAL: Object access for objects implementing the PersistentIF interface.
    • Constructor Detail

      • PersistentObjectAccess

        public PersistentObjectAccess​(TransactionIF txn)
    • Method Detail

      • getObject

        public Object getObject​(IdentityIF identity)
        Description copied from interface: ObjectAccessIF
        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.
        Specified by:
        getObject in interface ObjectAccessIF
      • getType

        public Class<?> getType​(Object object)
        Description copied from interface: ObjectAccessIF
        INTERNAL: Returns the type of the specified object handle. Note that this method returns the same value as getIdentity(object).getType().
        Specified by:
        getType in interface ObjectAccessIF
      • isDirty

        public boolean isDirty​(Object object)
        Description copied from interface: ObjectAccessIF
        INTERNAL: Returns true if the specified object is dirty.
        Specified by:
        isDirty in interface ObjectAccessIF
      • isDirty

        public boolean isDirty​(Object object,
                               int field)
        Description copied from interface: ObjectAccessIF
        INTERNAL: Returns true if the specified object field is dirty.
        Specified by:
        isDirty in interface ObjectAccessIF
      • nextDirty

        public int nextDirty​(Object object,
                             int start)
        Description copied from interface: ObjectAccessIF
        INTERNAL: Returns the index of the next dirty field from and including the start index. Method returns -1 if there are no dirty fields.
        Specified by:
        nextDirty in interface ObjectAccessIF
      • nextDirty

        public int nextDirty​(Object object,
                             int start,
                             int end)
        Description copied from interface: ObjectAccessIF
        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.
        Specified by:
        nextDirty in interface ObjectAccessIF
      • setDirtyFlushed

        public void setDirtyFlushed​(Object object,
                                    int field)
        Description copied from interface: ObjectAccessIF
        INTERNAL: Marks the dirty fields as being flushed (stored in the database).
        Specified by:
        setDirtyFlushed in interface ObjectAccessIF