net.ontopia.persistence.proxy
Class PersistentObjectAccess

java.lang.Object
  extended by net.ontopia.persistence.proxy.PersistentObjectAccess
All Implemented Interfaces:
ObjectAccessIF

public class PersistentObjectAccess
extends java.lang.Object
implements ObjectAccessIF

INTERNAL: Object access for objects implementing the PersistentIF interface.


Field Summary
protected  TransactionIF txn
           
 
Constructor Summary
PersistentObjectAccess(TransactionIF txn)
           
 
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).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

txn

protected TransactionIF txn
Constructor Detail

PersistentObjectAccess

public PersistentObjectAccess(TransactionIF txn)
Method Detail

getObject

public java.lang.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

getIdentity

public IdentityIF getIdentity(java.lang.Object object)
Description copied from interface: ObjectAccessIF
INTERNAL: Returns the identity of the specified object handle.

Specified by:
getIdentity in interface ObjectAccessIF

getType

public java.lang.Object getType(java.lang.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

getValue

public java.lang.Object getValue(java.lang.Object object,
                                 FieldInfoIF finfo)
Description copied from interface: ObjectAccessIF
INTERNAL: Returns the object field value.

Specified by:
getValue in interface ObjectAccessIF

isDirty

public boolean isDirty(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.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


Copyright © 2000-2012 Ontopia.