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 Wed, 02 Apr 2003 20:22:32 GMT
thma        2003/04/02 12:22:32

  Modified:    src/java/org/apache/ojb/broker/metadata RepositoryTags.java
                        RepositoryXmlHandler.java RepositoryElements.java
  Log:
  fix access tag
  
  Revision  Changes    Path
  1.26      +1 -1      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.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- RepositoryTags.java	2 Apr 2003 07:40:50 -0000	1.25
  +++ RepositoryTags.java	2 Apr 2003 20:22:32 -0000	1.26
  @@ -133,7 +133,7 @@
           table.put("length", new Integer(LENGTH));
           table.put("precision", new Integer(PRECISION));
           table.put("scale", new Integer(SCALE));
  -        table.put(TAG_ACCESS_ANONYMOUS, new Integer(ACCESS));
  +        table.put(TAG_ACCESS, new Integer(ACCESS));
   
           table.put("reference-descriptor", new Integer(REFERENCE_DESCRIPTOR));
           table.put("class-ref", new Integer(REFERENCED_CLASS));
  
  
  
  1.38      +1 -26     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.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- RepositoryXmlHandler.java	2 Apr 2003 07:40:49 -0000	1.37
  +++ RepositoryXmlHandler.java	2 Apr 2003 20:22:32 -0000	1.38
  @@ -310,31 +310,6 @@
                           m_CurrentCLD.addExtentClassName(classname);
                           break;
                       }
  -                    /* case EXTENDS :
  -                         {
  -                             String classname = atts.getValue("class-ref");
  -                             if (isDebug) logger.debug("     " + tags.getTagById(EXTENDS)
+ ": " + classname);
  -                             m_CurrentCLD.setSuperClass(classname);
  -
  -                             // get key for super class
  -                             String fieldref = atts.getValue("field-id-ref");
  -                              try
  -                             {
  -                                 int fieldId;
  -                                 fieldId = Integer.parseInt(fieldref);
  -                                 if (isDebug) logger.debug("     " + tags.getTagById(EXTENDS)
+ ": " +fieldId);
  -                                 m_CurrentCLD.setSuperClassFieldRef(fieldId);
  -                             }
  -                             catch (NumberFormatException rex)
  -                             {
  -                                 throw new MetadataException(tags.getTagById(EXTENDS)
  -                                                             + " attribute must be an int.
Found: "
  -                                                             + fieldref,rex);
  -                             }
  -
  -
  -                             break;
  -                         }*/
   
                   case FIELD_DESCRIPTOR:
                       {
  
  
  
  1.24      +3 -0      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.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- RepositoryElements.java	2 Apr 2003 07:40:50 -0000	1.23
  +++ RepositoryElements.java	2 Apr 2003 20:22:32 -0000	1.24
  @@ -164,6 +164,9 @@
   
       // maintain a next id to keep track where we are
       static final int _NEXT = 98;
  +    
  +	// String constants
  +    public static final String TAG_ACCESS           = "access";
   
       public static final String TAG_ACCESS_ANONYMOUS = "anonymous";
       public static final String TAG_ACCESS_READONLY  = "readonly";
  
  
  

Mime
View raw message