db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: jakarta-ojb/src/java/org/apache/ojb/broker/server PersistenceBrokerBean.java PersistenceBrokerClient.java RequestProcessor.java
Date Thu, 09 Jan 2003 17:04:09 GMT
arminw      2003/01/09 09:04:09

  Modified:    src/java/org/apache/ojb/broker/server
                        PersistenceBrokerBean.java
                        PersistenceBrokerClient.java RequestProcessor.java
  Log:
  make classes compilable, a refactoring of
  the server classes is necessary
  
  Revision  Changes    Path
  1.7       +10 -1     jakarta-ojb/src/java/org/apache/ojb/broker/server/PersistenceBrokerBean.java
  
  Index: PersistenceBrokerBean.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ojb/src/java/org/apache/ojb/broker/server/PersistenceBrokerBean.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- PersistenceBrokerBean.java	28 Dec 2002 12:55:00 -0000	1.6
  +++ PersistenceBrokerBean.java	9 Jan 2003 17:04:08 -0000	1.7
  @@ -384,7 +384,16 @@
       public Class getExtentClass(Class clazz)
               throws PersistenceBrokerException
       {
  -        return getBroker().getExtentClass(clazz);
  +        return getBroker().getTopLevelClass(clazz);
  +    }
  +
  +    /**
  +     * @ejb:interface-method
  +     * @see org.apache.ojb.broker.PersistenceBroker#getTopLevelClass(Class)
  +     */
  +    public Class getTopLevelClass(Class clazz) throws PersistenceBrokerException
  +    {
  +        return getBroker().getTopLevelClass(clazz);
       }
   
       /**
  
  
  
  1.19      +7 -1      jakarta-ojb/src/java/org/apache/ojb/broker/server/PersistenceBrokerClient.java
  
  Index: PersistenceBrokerClient.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ojb/src/java/org/apache/ojb/broker/server/PersistenceBrokerClient.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- PersistenceBrokerClient.java	24 Dec 2002 13:19:18 -0000	1.18
  +++ PersistenceBrokerClient.java	9 Jan 2003 17:04:08 -0000	1.19
  @@ -872,6 +872,12 @@
               throw new PersistenceBrokerException(((Throwable) result).getMessage());
       }
   
  +    public Class getTopLevelClass(Class clazz) throws PersistenceBrokerException
  +    {
  +        /*@todo implementation of this method */
  +        return getExtentClass(clazz);
  +    }
  +
       /**
        *
        * removes the objects obj from the brokers internal cache and
  
  
  
  1.13      +1 -1      jakarta-ojb/src/java/org/apache/ojb/broker/server/RequestProcessor.java
  
  Index: RequestProcessor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ojb/src/java/org/apache/ojb/broker/server/RequestProcessor.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- RequestProcessor.java	24 Dec 2002 13:19:18 -0000	1.12
  +++ RequestProcessor.java	9 Jan 2003 17:04:08 -0000	1.13
  @@ -428,7 +428,7 @@
   
                   case GET_EXTENT_CLASS:
                       {
  -                        result = broker.getExtentClass((Class) arg1);
  +                        result = broker.getTopLevelClass((Class) arg1);
                           break;
                       }
   
  
  
  

Mime
View raw message