public class PersistentObjectAccess extends Object implements ObjectAccessIF
Modifier and Type | Field and Description |
---|---|
protected TransactionIF |
txn |
Constructor and Description |
---|
PersistentObjectAccess(TransactionIF txn) |
Modifier and Type | Method and Description |
---|---|
IdentityIF |
getIdentity(Object object)
INTERNAL: Returns the identity of the specified object handle.
|
Object |
getObject(IdentityIF identity)
INTERNAL: Returns a handle for the specified value.
|
Class<?> |
getType(Object object)
INTERNAL: Returns the type of the specified object handle.
|
Object |
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).
|
protected TransactionIF txn
public PersistentObjectAccess(TransactionIF txn)
public Object getObject(IdentityIF identity)
ObjectAccessIF
getObject
in interface ObjectAccessIF
public IdentityIF getIdentity(Object object)
ObjectAccessIF
getIdentity
in interface ObjectAccessIF
public Class<?> getType(Object object)
ObjectAccessIF
getType
in interface ObjectAccessIF
public Object getValue(Object object, FieldInfoIF finfo)
ObjectAccessIF
getValue
in interface ObjectAccessIF
public boolean isDirty(Object object)
ObjectAccessIF
isDirty
in interface ObjectAccessIF
public boolean isDirty(Object object, int field)
ObjectAccessIF
isDirty
in interface ObjectAccessIF
public int nextDirty(Object object, int start)
ObjectAccessIF
nextDirty
in interface ObjectAccessIF
public int nextDirty(Object object, int start, int end)
ObjectAccessIF
nextDirty
in interface ObjectAccessIF
public void setDirtyFlushed(Object object, int field)
ObjectAccessIF
setDirtyFlushed
in interface ObjectAccessIF