net.ontopia.persistence.proxy
Interface ObjectAccessIF

All Known Implementing Classes:
PersistentObjectAccess

public interface ObjectAccessIF

INTERNAL: A object access implementation for manipulation of identifiable objects.


Method Summary
 IdentityIF getIdentity(java.lang.Object object)
          INTERNAL: Returns the identity of the specified object handle.
 java.lang.Object getObject(IdentityIF identity)
          INTERNAL: Returns a handle for the specified value.
 java.lang.Object getType(java.lang.Object object)
          INTERNAL: Returns the type of the specified object handle.
 java.lang.Object getValue(java.lang.Object object, FieldInfoIF finfo)
          INTERNAL: Returns the object field value.
 boolean isDirty(java.lang.Object object)
          INTERNAL: Returns true if the specified object is dirty.
 boolean isDirty(java.lang.Object object, int field)
          INTERNAL: Returns true if the specified object field is dirty.
 int nextDirty(java.lang.Object object, int start)
          INTERNAL: Returns the index of the next dirty field from and including the start index.
 int nextDirty(java.lang.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(java.lang.Object object, int field)
          INTERNAL: Marks the dirty fields as being flushed (stored in the database).
 

Method Detail

getObject

java.lang.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(java.lang.Object object)
INTERNAL: Returns the identity of the specified object handle.


getType

java.lang.Object getType(java.lang.Object object)
INTERNAL: Returns the type of the specified object handle. Note that this method returns the same value as getIdentity(object).getType().


getValue

java.lang.Object getValue(java.lang.Object object,
                          FieldInfoIF finfo)
INTERNAL: Returns the object field value.


isDirty

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


isDirty

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


nextDirty

int nextDirty(java.lang.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(java.lang.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(java.lang.Object object,
                     int field)
INTERNAL: Marks the dirty fields as being flushed (stored in the database).



Copyright © 2000-2012 Ontopia.