org.apache.ojb.odmg
Class RuntimeObject

java.lang.Object
  extended by org.apache.ojb.odmg.RuntimeObject

public final class RuntimeObject
extends java.lang.Object

Helper object encapsulates common used object properties/states, help to reduce needless metadata calls.

Version:
$Id: RuntimeObject.java 365232 2005-12-21 22:36:07Z tomdz $
Author:
Armin Waibel

Constructor Summary
RuntimeObject(java.lang.Object obj, Identity oid, ClassDescriptor cld, boolean isNew, boolean isProxy)
           
RuntimeObject(java.lang.Object obj, Identity identity, TransactionImpl tx, boolean isNew)
           
RuntimeObject(java.lang.Object obj, TransactionImpl tx)
           
RuntimeObject(java.lang.Object obj, TransactionImpl tx, boolean isNew)
           
 
Method Summary
 ClassDescriptor getCld()
          Returns the associated object ClassDescriptor.
 IndirectionHandler getHandler()
           
 Identity getIdentity()
          Returns the associated object Identity.
 java.lang.Object getObj()
          Return the associated persistent object.
 java.lang.Object getObjMaterialized()
          Returns the materialized object (if proxy is materialized or a "normal" persistent object) or null if associated with unmaterialized proxy object.
 boolean isNew()
          Returns true if the represented object is not yet persisted.
 boolean isProxy()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RuntimeObject

public RuntimeObject(java.lang.Object obj,
                     TransactionImpl tx)

RuntimeObject

public RuntimeObject(java.lang.Object obj,
                     TransactionImpl tx,
                     boolean isNew)

RuntimeObject

public RuntimeObject(java.lang.Object obj,
                     Identity identity,
                     TransactionImpl tx,
                     boolean isNew)

RuntimeObject

public RuntimeObject(java.lang.Object obj,
                     Identity oid,
                     ClassDescriptor cld,
                     boolean isNew,
                     boolean isProxy)
Method Detail

getObj

public java.lang.Object getObj()
Return the associated persistent object.


getObjMaterialized

public java.lang.Object getObjMaterialized()
Returns the materialized object (if proxy is materialized or a "normal" persistent object) or null if associated with unmaterialized proxy object.


getIdentity

public Identity getIdentity()
Returns the associated object Identity.


getCld

public ClassDescriptor getCld()
Returns the associated object ClassDescriptor.


isNew

public boolean isNew()
Returns true if the represented object is not yet persisted.


isProxy

public boolean isProxy()

getHandler

public IndirectionHandler getHandler()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


(C) 2002 - 2006 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30