db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/metadata RepositoryTags.java RepositoryXmlHandler.java RepositoryElements.java
Date Sun, 16 Mar 2003 12:03:01 GMT
thma        2003/03/16 04:03:01

  Modified:    src/java/org/apache/ojb/broker/metadata RepositoryTags.java
                        RepositoryXmlHandler.java RepositoryElements.java
  Log:
  add support for materialization-method on class-descriptor
  
  Revision  Changes    Path
  1.23      +1 -0      db-ojb/src/java/org/apache/ojb/broker/metadata/RepositoryTags.java
  
  Index: RepositoryTags.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/RepositoryTags.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- RepositoryTags.java	26 Feb 2003 19:46:13 -0000	1.22
  +++ RepositoryTags.java	16 Mar 2003 12:03:01 -0000	1.23
  @@ -190,6 +190,7 @@
           table.put("className", new Integer(SEQUENCE_MANAGER_CLASS));
   
           table.put("query-customizer", new Integer(QUERY_CUSTOMIZER));
  +        table.put("initialization-method", new Integer(INITIALIZATION_METHOD));
   
           // add new tags here !
       }
  
  
  
  1.35      +9 -1      db-ojb/src/java/org/apache/ojb/broker/metadata/RepositoryXmlHandler.java
  
  Index: RepositoryXmlHandler.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/RepositoryXmlHandler.java,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- RepositoryXmlHandler.java	13 Mar 2003 19:47:12 -0000	1.34
  +++ RepositoryXmlHandler.java	16 Mar 2003 12:03:01 -0000	1.35
  @@ -289,6 +289,14 @@
                           boolean b = (new Boolean(acceptLocks)).booleanValue();
                           m_CurrentCLD.setAcceptLocks(b);
   
  +                        //set initializationMethod attribute
  +                        String initializationMethod = atts.getValue(tags.getTagById(INITIALIZATION_METHOD));
  +                        if (isDebug) logger.debug("     " + tags.getTagById(INITIALIZATION_METHOD)
+ ": " + initializationMethod);
  +                        if (initializationMethod != null)
  +                        {
  +                            m_CurrentCLD.setInitializationMethod(initializationMethod);
  +                        }
  +
                           break;
                       }
   
  
  
  
  1.21      +3 -2      db-ojb/src/java/org/apache/ojb/broker/metadata/RepositoryElements.java
  
  Index: RepositoryElements.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/RepositoryElements.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- RepositoryElements.java	26 Feb 2003 19:46:13 -0000	1.20
  +++ RepositoryElements.java	16 Mar 2003 12:03:01 -0000	1.21
  @@ -154,7 +154,8 @@
       public static final int DOCUMENTATION = 75;
       public static final int ACCEPT_LOCKS = 78;
       public static final int QUERY_CUSTOMIZER = 92;
  +    public static final int INITIALIZATION_METHOD = 93;
   
  -    // maintain a last id to keep track where we are
  -    public static final int _LAST = 93;
  +    // maintain a next id to keep track where we are
  +    static final int _NEXT = 94;
   }
  
  
  

Mime
View raw message