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/ant RepositoryVerifierHandler.java
Date Wed, 31 Aug 2005 17:39:29 GMT
arminw      2005/08/31 10:39:29

  Modified:    src/java/org/apache/ojb/broker/ant
                        RepositoryVerifierHandler.java
  Log:
  (re-)introduce typesafe isolation level handling, use commons-lang enums instead of int
values
  
  Revision  Changes    Path
  1.19      +13 -4     db-ojb/src/java/org/apache/ojb/broker/ant/RepositoryVerifierHandler.java
  
  Index: RepositoryVerifierHandler.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/ant/RepositoryVerifierHandler.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- RepositoryVerifierHandler.java	3 Jul 2005 20:32:34 -0000	1.18
  +++ RepositoryVerifierHandler.java	31 Aug 2005 17:39:29 -0000	1.19
  @@ -26,7 +26,16 @@
   import java.util.Collection;
   
   import org.apache.ojb.broker.PersistenceBrokerException;
  -import org.apache.ojb.broker.metadata.*;
  +import org.apache.ojb.broker.locking.IsolationLevels;
  +import org.apache.ojb.broker.metadata.RepositoryElements;
  +import org.apache.ojb.broker.metadata.FieldDescriptor;
  +import org.apache.ojb.broker.metadata.ClassDescriptor;
  +import org.apache.ojb.broker.metadata.JdbcConnectionDescriptor;
  +import org.apache.ojb.broker.metadata.DescriptorRepository;
  +import org.apache.ojb.broker.metadata.ObjectReferenceDescriptor;
  +import org.apache.ojb.broker.metadata.CollectionDescriptor;
  +import org.apache.ojb.broker.metadata.RepositoryTags;
  +import org.apache.ojb.broker.metadata.MetadataException;
   import org.apache.ojb.broker.util.logging.Logger;
   import org.apache.ojb.broker.util.logging.LoggerFactory;
   import org.xml.sax.Attributes;
  @@ -64,7 +73,7 @@
       private boolean m_currentTableExists = false;
   
       /** the default isolation level*/
  -    private IsolationLevels defIsoLevel = IsolationLevels.DEFAULT;
  +    private IsolationLevels defIsoLevel;
   
       private Collection m_VerifyExceptions = new ArrayList(69);
       private Collection m_VerifyWarnings = new ArrayList(69);
  @@ -95,7 +104,7 @@
        * @param literal the literal to lookup
        * @return the int value representing the XmlCapable
        *
  -     * @throws MetadataException if no literal was found in tags mapping
  +     * @throws org.apache.ojb.broker.metadata.MetadataException if no literal was found
in tags mapping
        */
       private int getLiteralId(String literal) throws PersistenceBrokerException
       {
  
  
  

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