Package net.ontopia.persistence.proxy
Interface ObjectAccessIF
-
- All Known Implementing Classes:
PersistentObjectAccess
public interface ObjectAccessIFINTERNAL: A object access implementation for manipulation of identifiable objects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IdentityIFgetIdentity(Object object)INTERNAL: Returns the identity of the specified object handle.ObjectgetObject(IdentityIF identity)INTERNAL: Returns a handle for the specified value.Class<?>getType(Object object)INTERNAL: Returns the type of the specified object handle.ObjectgetValue(Object object, FieldInfoIF finfo)INTERNAL: Returns the object field value.booleanisDirty(Object object)INTERNAL: Returns true if the specified object is dirty.booleanisDirty(Object object, int field)INTERNAL: Returns true if the specified object field is dirty.intnextDirty(Object object, int start)INTERNAL: Returns the index of the next dirty field from and including the start index.intnextDirty(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.voidsetDirtyFlushed(Object object, int field)INTERNAL: Marks the dirty fields as being flushed (stored in the database).
-
-
-
Method Detail
-
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).
-
-