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/broker PersistenceBrokerInternal.java
Date Thu, 07 Jul 2005 17:16:22 GMT
arminw      2005/07/07 10:16:22

  Modified:    src/java/org/apache/ojb/broker/accesslayer Tag:
                        OJB_1_0_RELEASE RsIterator.java
               src/java/org/apache/ojb/broker/core Tag: OJB_1_0_RELEASE
                        DelegatingPersistenceBroker.java
                        PersistenceBrokerImpl.java
               src/java/org/apache/ojb/broker Tag: OJB_1_0_RELEASE
                        PersistenceBrokerInternal.java
  Log:
  declare new methods in PersistenceBrokerInternal interface
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.63.2.11 +3 -2      db-ojb/src/java/org/apache/ojb/broker/accesslayer/RsIterator.java
  
  Index: RsIterator.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/accesslayer/RsIterator.java,v
  retrieving revision 1.63.2.10
  retrieving revision 1.63.2.11
  diff -u -r1.63.2.10 -r1.63.2.11
  --- RsIterator.java	7 Jul 2005 17:03:03 -0000	1.63.2.10
  +++ RsIterator.java	7 Jul 2005 17:16:21 -0000	1.63.2.11
  @@ -32,6 +32,7 @@
   import org.apache.ojb.broker.PBStateListener;
   import org.apache.ojb.broker.PersistenceBrokerException;
   import org.apache.ojb.broker.PersistenceBrokerSQLException;
  +import org.apache.ojb.broker.PersistenceBrokerInternal;
   import org.apache.ojb.broker.cache.ObjectCacheInternal;
   import org.apache.ojb.broker.cache.MaterializationCache;
   import org.apache.ojb.broker.core.PersistenceBrokerImpl;
  @@ -873,7 +874,7 @@
           m_broker = broker;
       }
   
  -    protected PersistenceBrokerImpl getBroker()
  +    protected PersistenceBrokerInternal getBroker()
       {
           return m_broker;
       }
  
  
  
  No                   revision
  No                   revision
  1.11.2.5  +17 -1     db-ojb/src/java/org/apache/ojb/broker/core/DelegatingPersistenceBroker.java
  
  Index: DelegatingPersistenceBroker.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/core/DelegatingPersistenceBroker.java,v
  retrieving revision 1.11.2.4
  retrieving revision 1.11.2.5
  diff -u -r1.11.2.4 -r1.11.2.5
  --- DelegatingPersistenceBroker.java	4 Jun 2005 14:28:23 -0000	1.11.2.4
  +++ DelegatingPersistenceBroker.java	7 Jul 2005 17:16:21 -0000	1.11.2.5
  @@ -34,6 +34,7 @@
   import org.apache.ojb.broker.accesslayer.ConnectionManagerIF;
   import org.apache.ojb.broker.accesslayer.JdbcAccess;
   import org.apache.ojb.broker.accesslayer.StatementManagerIF;
  +import org.apache.ojb.broker.accesslayer.RelationshipPrefetcherFactory;
   import org.apache.ojb.broker.accesslayer.sql.SqlGenerator;
   import org.apache.ojb.broker.cache.ObjectCache;
   import org.apache.ojb.broker.metadata.ClassDescriptor;
  @@ -136,6 +137,21 @@
           m_broker.setManaged(managed);
       }
   
  +    public QueryReferenceBroker getReferenceBroker()
  +    {
  +        return m_broker.getReferenceBroker();
  +    }
  +
  +    public void checkRefreshRelationships(Object obj, Identity oid, ClassDescriptor cld)
  +    {
  +        m_broker.checkRefreshRelationships(obj, oid, cld);
  +    }
  +
  +    public RelationshipPrefetcherFactory getRelationshipPrefetcherFactory()
  +    {
  +        return m_broker.getRelationshipPrefetcherFactory();
  +    }
  +
       public void store(Object obj, Identity oid, ClassDescriptor cld, boolean insert, boolean
ignoreReferences)
       {
           m_broker.store(obj, oid, cld, insert, ignoreReferences);
  
  
  
  1.83.2.25 +2 -2      db-ojb/src/java/org/apache/ojb/broker/core/PersistenceBrokerImpl.java
  
  Index: PersistenceBrokerImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/core/PersistenceBrokerImpl.java,v
  retrieving revision 1.83.2.24
  retrieving revision 1.83.2.25
  diff -u -r1.83.2.24 -r1.83.2.25
  --- PersistenceBrokerImpl.java	7 Jul 2005 17:03:04 -0000	1.83.2.24
  +++ PersistenceBrokerImpl.java	7 Jul 2005 17:16:21 -0000	1.83.2.25
  @@ -1394,7 +1394,7 @@
   
       /**
        * Check if the references of the specified object have enabled
  -     * the <em>refresh</em> sttribute.
  +     * the <em>refresh</em> attribute and refresh the reference if set <em>true</em>.
        *
        * @throws PersistenceBrokerException if there is a error refreshing collections or
references
        * @param obj The object to check.
  
  
  
  No                   revision
  No                   revision
  1.1.2.3   +25 -1     db-ojb/src/java/org/apache/ojb/broker/PersistenceBrokerInternal.java
  
  Index: PersistenceBrokerInternal.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/PersistenceBrokerInternal.java,v
  retrieving revision 1.1.2.2
  retrieving revision 1.1.2.3
  diff -u -r1.1.2.2 -r1.1.2.3
  --- PersistenceBrokerInternal.java	4 Jun 2005 14:28:23 -0000	1.1.2.2
  +++ PersistenceBrokerInternal.java	7 Jul 2005 17:16:22 -0000	1.1.2.3
  @@ -1,6 +1,8 @@
   package org.apache.ojb.broker;
   
   import org.apache.ojb.broker.metadata.ClassDescriptor;
  +import org.apache.ojb.broker.accesslayer.RelationshipPrefetcherFactory;
  +import org.apache.ojb.broker.core.QueryReferenceBroker;
   
   /* Copyright 2002-2004 The Apache Software Foundation
    *
  @@ -68,4 +70,26 @@
        * @throws PersistenceBrokerException
        */
       public void delete(Object obj, boolean ignoreReferences) throws PersistenceBrokerException;
  +
  +    /**
  +     * Answer the ReferenceBroker.
  +     * @return QueryReferenceBroker
  +     */
  +    public QueryReferenceBroker getReferenceBroker();
  +    
  +    /**
  +     * Check if the references of the specified object have enabled
  +     * the <em>refresh</em> attribute and refresh the reference if set <em>true</em>.
  +     *
  +     * @throws PersistenceBrokerException if there is a error refreshing collections or
references
  +     * @param obj The object to check.
  +     * @param oid The {@link Identity} of the object.
  +     * @param cld The {@link org.apache.ojb.broker.metadata.ClassDescriptor} of the object.
  +     */
  +    public void checkRefreshRelationships(Object obj, Identity oid, ClassDescriptor cld);
  +
  +    /**
  +     * Return the relationship prefetcher factory.
  +     */
  +    public RelationshipPrefetcherFactory getRelationshipPrefetcherFactory();
   }
  
  
  

---------------------------------------------------------------------
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