db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/odmg RuntimeObject.java
Date Sun, 03 Apr 2005 01:50:52 GMT
arminw      2005/04/02 17:50:52

  Modified:    src/java/org/apache/ojb/odmg Tag: OJB_1_0_RELEASE
                        RuntimeObject.java
  Log:
  add new constructor, make constructor public
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.1.2.3   +14 -5     db-ojb/src/java/org/apache/ojb/odmg/Attic/RuntimeObject.java
  
  Index: RuntimeObject.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/odmg/Attic/RuntimeObject.java,v
  retrieving revision 1.1.2.2
  retrieving revision 1.1.2.3
  diff -u -r1.1.2.2 -r1.1.2.3
  --- RuntimeObject.java	23 Mar 2005 12:32:15 -0000	1.1.2.2
  +++ RuntimeObject.java	3 Apr 2005 01:50:52 -0000	1.1.2.3
  @@ -29,7 +29,7 @@
    * @author <a href="mailto:arminw@apache.org">Armin Waibel</a>
    * @version $Id$
    */
  -final class RuntimeObject
  +public final class RuntimeObject
   {
       private final Object obj;
       private Identity identity;
  @@ -38,7 +38,7 @@
       private ClassDescriptor cld;
       private IndirectionHandler handler;
   
  -    RuntimeObject(final Object obj, final TransactionImpl tx)
  +    public RuntimeObject(final Object obj, final TransactionImpl tx)
       {
           this.tx = tx;
           this.obj = obj;
  @@ -46,7 +46,7 @@
           doIsNewObjectCheck(tx);
       }
   
  -    RuntimeObject(final Object obj, final TransactionImpl tx, final boolean isNew)
  +    public RuntimeObject(final Object obj, final TransactionImpl tx, final boolean isNew)
       {
           this.tx = tx;
           this.obj = obj;
  @@ -54,7 +54,16 @@
           init(tx);
       }
   
  -    RuntimeObject(final Object obj, final Identity oid, final ClassDescriptor cld, final
boolean isNew, final boolean isProxy)
  +    public RuntimeObject(final Object obj, final Identity identity, final TransactionImpl
tx, final boolean isNew)
  +    {
  +        this.tx = tx;
  +        this.obj = obj;
  +        this.identity = identity;
  +        this.isNew = isNew ? Boolean.TRUE : Boolean.FALSE;
  +        init(tx);
  +    }
  +
  +    public RuntimeObject(final Object obj, final Identity oid, final ClassDescriptor cld,
final boolean isNew, final boolean isProxy)
       {
           this.tx = null;
           this.obj = obj;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message