|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.ojb.odmg.RuntimeObject
public final class RuntimeObject
Helper object encapsulates common used object properties/states, help to reduce needless metadata calls.
Field Summary | |
---|---|
private ClassDescriptor |
cld
|
private IndirectionHandler |
handler
|
private Identity |
identity
|
private Boolean |
isNew
|
private Object |
obj
|
private TransactionImpl |
tx
|
Constructor Summary | |
---|---|
RuntimeObject(Object obj,
Identity oid,
ClassDescriptor cld,
boolean isNew,
boolean isProxy)
|
|
RuntimeObject(Object obj,
Identity identity,
TransactionImpl tx,
boolean isNew)
|
|
RuntimeObject(Object obj,
TransactionImpl tx)
|
|
RuntimeObject(Object obj,
TransactionImpl tx,
boolean isNew)
|
Method Summary | |
---|---|
(package private) void |
doIsNewObjectCheck(TransactionImpl tx)
|
ClassDescriptor |
getCld()
Returns the associated object ClassDescriptor . |
IndirectionHandler |
getHandler()
|
Identity |
getIdentity()
Returns the associated object Identity . |
Object |
getObj()
Return the associated persistent object. |
Object |
getObjMaterialized()
Returns the materialized object (if proxy is materialized or a "normal" persistent object) or null if associated with unmaterialized proxy object. |
private void |
initCld(TransactionImpl tx)
|
boolean |
isNew()
Returns true if the represented object is
not yet persisted. |
boolean |
isProxy()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final Object obj
private Identity identity
private final TransactionImpl tx
private Boolean isNew
private ClassDescriptor cld
private IndirectionHandler handler
Constructor Detail |
---|
public RuntimeObject(Object obj, TransactionImpl tx)
public RuntimeObject(Object obj, TransactionImpl tx, boolean isNew)
public RuntimeObject(Object obj, Identity identity, TransactionImpl tx, boolean isNew)
public RuntimeObject(Object obj, Identity oid, ClassDescriptor cld, boolean isNew, boolean isProxy)
Method Detail |
---|
private void initCld(TransactionImpl tx)
void doIsNewObjectCheck(TransactionImpl tx)
public Object getObj()
public Object getObjMaterialized()
public Identity getIdentity()
Identity
.
public ClassDescriptor getCld()
ClassDescriptor
.
public boolean isNew()
true
if the represented object is
not yet persisted.
public boolean isProxy()
public IndirectionHandler getHandler()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |