org.apache.ojb.odmg
Class RuntimeObject

java.lang.Object
  extended byorg.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,v 1.1.2.3 2005/04/03 01:50:52 arminw Exp $
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()
           
 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:

isProxy

public boolean isProxy()

getHandler

public IndirectionHandler getHandler()

toString

public java.lang.String toString()


(C) 2002 - 2004 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.3, 2005-04-2