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/util/sequence HighLowSequence.java
Date Wed, 07 Jan 2004 11:41:21 GMT
thma        2004/01/07 03:41:21

  Modified:    src/java/org/apache/ojb/broker/metadata IndexDescriptor.java
                        DescriptorBase.java ArgumentDescriptor.java
                        ConnectionRepository.java ClassDescriptor.java
                        UpdateProcedureDescriptor.java
                        ConnectionPoolDescriptor.java
                        AttributeDescriptorBase.java
                        JdbcConnectionDescriptor.java
                        DeleteProcedureDescriptor.java FieldHelper.java
                        DescriptorRepository.java SequenceDescriptor.java
                        InsertProcedureDescriptor.java FieldDescriptor.java
                        ObjectCacheDescriptor.java JdbcType.java
                        ProcedureDescriptor.java
               src/java/org/apache/ojb/odmg TransactionAware.java
                        NamedRootsEntry.java ObjectEnvelope.java
               src/java/org/apache/ojb/odmg/collections DListEntry_2.java
                        DMapEntry.java DMapImpl.java DListEntry.java
                        DSetImpl.java DListImpl.java
               src/java/org/apache/ojb/broker ManageableCollection.java
                        PBKey.java Identity.java VirtualProxy.java
               src/java/org/apache/ojb/broker/accesslayer/conversions
                        FieldConversion.java
               src/java/org/apache/ojb/broker/util GUID.java
                        ObjectModification.java
               src/java/org/apache/ojb/broker/accesslayer RowReader.java
                        IndirectionHandler.java PkEnumeration.java
                        PkIterator.java
               src/java/org/apache/ojb/tools/mapping/reversedb2/dbmetatreemodel
                        DBMetaCatalogNode.java DBMetaTableNode.java
                        DBMetaSchemaNode.java DBMetaColumnNode.java
                        DBMetaRootNode.java DatabaseMetaDataTreeModel.java
               src/java/org/apache/ojb/broker/query SelectionCriteria.java
                        AbstractQueryImpl.java Query.java Criteria.java
               src/java/org/apache/ojb/tools/mapping/reversedb2/propertyEditors
                        EditableTreeNodeWithProperties.java
               src/java/org/apache/ojb/broker/util/pooling PoolInfo.java
                        PoolConfiguration.java
               src/java/org/apache/ojb/broker/metadata/fieldaccess
                        PersistentFieldPrivilegedImpl.java
                        PersistentField.java
               src/java/org/apache/ojb/odmg/locking LockEntry.java
               src/java/org/apache/ojb/odmg/states ModificationState.java
               src/java/org/apache/ojb/soda QueryImpl.java
               src/java/org/apache/ojb/broker/util/logging Logger.java
               src/java/org/apache/ojb/broker/util/sequence
                        HighLowSequence.java
  Log:
  Add static serialVersionUID to Serializable classes.
  
  Revision  Changes    Path
  1.8       +2 -2      db-ojb/src/java/org/apache/ojb/broker/metadata/IndexDescriptor.java
  
  Index: IndexDescriptor.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/IndexDescriptor.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- IndexDescriptor.java	2 May 2003 18:19:49 -0000	1.7
  +++ IndexDescriptor.java	7 Jan 2004 11:41:18 -0000	1.8
  @@ -66,7 +66,7 @@
    */
   public class IndexDescriptor implements XmlCapable, Serializable
   {
  -    private String name;
  +	static final long serialVersionUID = -1722513568634970108L;    private String name;
       private boolean unique;
       private Vector indexColumns = new Vector();
   
  
  
  
  1.5       +1 -1      db-ojb/src/java/org/apache/ojb/broker/metadata/DescriptorBase.java
  
  Index: DescriptorBase.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/DescriptorBase.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- DescriptorBase.java	11 Jul 2003 07:42:04 -0000	1.4
  +++ DescriptorBase.java	7 Jan 2004 11:41:18 -0000	1.5
  @@ -65,7 +65,7 @@
    */
   class DescriptorBase implements AttributeContainer, Serializable
   {
  -    /** holds user defined attributes */
  +	static final long serialVersionUID = 713914612744155925L;    /** holds user defined attributes */
       private Map attributeMap = null;
   
       /**
  
  
  
  1.3       +1 -1      db-ojb/src/java/org/apache/ojb/broker/metadata/ArgumentDescriptor.java
  
  Index: ArgumentDescriptor.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/ArgumentDescriptor.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ArgumentDescriptor.java	9 Dec 2003 17:19:58 -0000	1.2
  +++ ArgumentDescriptor.java	7 Jan 2004 11:41:18 -0000	1.3
  @@ -72,7 +72,7 @@
    */
   public final class ArgumentDescriptor extends DescriptorBase implements XmlCapable, Serializable
   {
  -
  +	static final long serialVersionUID = 5205304260023247711L;
       private static final int SOURCE_NULL = 0;
       private static final int SOURCE_FIELD = 1;
       private static final int SOURCE_VALUE = 2;
  
  
  
  1.10      +2 -2      db-ojb/src/java/org/apache/ojb/broker/metadata/ConnectionRepository.java
  
  Index: ConnectionRepository.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/ConnectionRepository.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- ConnectionRepository.java	12 May 2003 09:18:06 -0000	1.9
  +++ ConnectionRepository.java	7 Jan 2004 11:41:18 -0000	1.10
  @@ -21,7 +21,7 @@
    */
   public class ConnectionRepository implements Serializable, XmlCapable
   {
  -    private static Logger log = LoggerFactory.getLogger(ConnectionRepository.class);
  +	static final long serialVersionUID = -5581126412817848887L;    private static Logger log = LoggerFactory.getLogger(ConnectionRepository.class);
   
       private HashMap jcdMap;
       private Hashtable jcdAliasToPBKeyMap;
  
  
  
  1.77      +2 -2      db-ojb/src/java/org/apache/ojb/broker/metadata/ClassDescriptor.java
  
  Index: ClassDescriptor.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/ClassDescriptor.java,v
  retrieving revision 1.76
  retrieving revision 1.77
  diff -u -r1.76 -r1.77
  --- ClassDescriptor.java	19 Dec 2003 16:34:32 -0000	1.76
  +++ ClassDescriptor.java	7 Jan 2004 11:41:18 -0000	1.77
  @@ -109,7 +109,7 @@
       extends DescriptorBase
       implements Serializable, XmlCapable, IsolationLevels
   {
  -    public static final String OJB_CONCRETE_CLASS = "ojbConcreteClass";
  +	static final long serialVersionUID = -5212253607374173965L;    public static final String OJB_CONCRETE_CLASS = "ojbConcreteClass";
       private static final Class[] NO_PARAMS = {};
   
       //---------------------------------------------------------------
  
  
  
  1.2       +1 -0      db-ojb/src/java/org/apache/ojb/broker/metadata/UpdateProcedureDescriptor.java
  
  Index: UpdateProcedureDescriptor.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/UpdateProcedureDescriptor.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- UpdateProcedureDescriptor.java	9 Sep 2003 19:02:30 -0000	1.1
  +++ UpdateProcedureDescriptor.java	7 Jan 2004 11:41:18 -0000	1.2
  @@ -74,6 +74,7 @@
       extends ProcedureDescriptor
       implements Serializable, XmlCapable
   {
  +	static final long serialVersionUID = 1319547080310130251L;
   
       //---------------------------------------------------------------
       /**
  
  
  
  1.10      +2 -2      db-ojb/src/java/org/apache/ojb/broker/metadata/ConnectionPoolDescriptor.java
  
  Index: ConnectionPoolDescriptor.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/ConnectionPoolDescriptor.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- ConnectionPoolDescriptor.java	31 Jan 2003 17:03:32 -0000	1.9
  +++ ConnectionPoolDescriptor.java	7 Jan 2004 11:41:18 -0000	1.10
  @@ -73,7 +73,7 @@
    */
   public class ConnectionPoolDescriptor extends PoolConfiguration implements Serializable, XmlCapable
   {
  -    private Class connectionFactory;
  +	static final long serialVersionUID = -3071461685659671879L;    private Class connectionFactory;
   
       public ConnectionPoolDescriptor()
       {
  
  
  
  1.13      +2 -2      db-ojb/src/java/org/apache/ojb/broker/metadata/AttributeDescriptorBase.java
  
  Index: AttributeDescriptorBase.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/AttributeDescriptorBase.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- AttributeDescriptorBase.java	9 Dec 2003 17:19:58 -0000	1.12
  +++ AttributeDescriptorBase.java	7 Jan 2004 11:41:18 -0000	1.13
  @@ -68,7 +68,7 @@
    */
   public class AttributeDescriptorBase extends DescriptorBase implements Serializable
   {
  -    protected PersistentField m_PersistentField = null;
  +	static final long serialVersionUID = -818671542770428043L;    protected PersistentField m_PersistentField = null;
       protected ClassDescriptor m_ClassDescriptor = null;
   
       /**
  
  
  
  1.27      +2 -2      db-ojb/src/java/org/apache/ojb/broker/metadata/JdbcConnectionDescriptor.java
  
  Index: JdbcConnectionDescriptor.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/JdbcConnectionDescriptor.java,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- JdbcConnectionDescriptor.java	17 Sep 2003 22:41:07 -0000	1.26
  +++ JdbcConnectionDescriptor.java	7 Jan 2004 11:41:18 -0000	1.27
  @@ -76,7 +76,7 @@
    */
   public class JdbcConnectionDescriptor extends DescriptorBase implements Serializable, XmlCapable
   {
  -    private Logger logger = LoggerFactory.getLogger(JdbcConnectionDescriptor.class);
  +	static final long serialVersionUID = -600900924512028960L;    private Logger logger = LoggerFactory.getLogger(JdbcConnectionDescriptor.class);
   
       private String m_jcdAlias;
       private String m_Dbms;
  
  
  
  1.2       +1 -1      db-ojb/src/java/org/apache/ojb/broker/metadata/DeleteProcedureDescriptor.java
  
  Index: DeleteProcedureDescriptor.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/DeleteProcedureDescriptor.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DeleteProcedureDescriptor.java	9 Sep 2003 19:02:30 -0000	1.1
  +++ DeleteProcedureDescriptor.java	7 Jan 2004 11:41:18 -0000	1.2
  @@ -74,7 +74,7 @@
       extends ProcedureDescriptor
       implements Serializable, XmlCapable
   {
  -
  +	static final long serialVersionUID = -1265854095889157172L;
       //---------------------------------------------------------------
       /**
        * The value that indicates if the argument list for this procedure
  
  
  
  1.2       +2 -2      db-ojb/src/java/org/apache/ojb/broker/metadata/FieldHelper.java
  
  Index: FieldHelper.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/FieldHelper.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FieldHelper.java	16 Dec 2002 18:19:08 -0000	1.1
  +++ FieldHelper.java	7 Jan 2004 11:41:18 -0000	1.2
  @@ -62,7 +62,7 @@
    */
   public class FieldHelper implements java.io.Serializable
   {
  -    public String name;
  +	static final long serialVersionUID = -297186561855340166L;    public String name;
       public boolean isAscending;
   
       public FieldHelper(String fieldName, boolean orderAscending)
  
  
  
  1.44      +2 -2      db-ojb/src/java/org/apache/ojb/broker/metadata/DescriptorRepository.java
  
  Index: DescriptorRepository.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/DescriptorRepository.java,v
  retrieving revision 1.43
  retrieving revision 1.44
  diff -u -r1.43 -r1.44
  --- DescriptorRepository.java	3 Jan 2004 12:54:40 -0000	1.43
  +++ DescriptorRepository.java	7 Jan 2004 11:41:18 -0000	1.44
  @@ -86,7 +86,7 @@
   public final class DescriptorRepository extends DescriptorBase
           implements Serializable, XmlCapable, IsolationLevels
   {
  -    /**
  +	static final long serialVersionUID = -1556339982311359524L;    /**
        * The version identifier of the Repository.
        * Used to validate repository.xml against the dtd.
        */
  
  
  
  1.7       +2 -2      db-ojb/src/java/org/apache/ojb/broker/metadata/SequenceDescriptor.java
  
  Index: SequenceDescriptor.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/SequenceDescriptor.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- SequenceDescriptor.java	17 Oct 2003 14:53:46 -0000	1.6
  +++ SequenceDescriptor.java	7 Jan 2004 11:41:18 -0000	1.7
  @@ -22,7 +22,7 @@
    */
   public class SequenceDescriptor implements Serializable, XmlCapable, AttributeContainer
   {
  -    private JdbcConnectionDescriptor jcd;
  +	static final long serialVersionUID = -5161713731380949398L;    private JdbcConnectionDescriptor jcd;
       private Class sequenceManagerClass;
       private Properties configurationProperties;
   
  
  
  
  1.2       +1 -1      db-ojb/src/java/org/apache/ojb/broker/metadata/InsertProcedureDescriptor.java
  
  Index: InsertProcedureDescriptor.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/InsertProcedureDescriptor.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- InsertProcedureDescriptor.java	9 Sep 2003 19:02:30 -0000	1.1
  +++ InsertProcedureDescriptor.java	7 Jan 2004 11:41:18 -0000	1.2
  @@ -74,7 +74,7 @@
       extends ProcedureDescriptor
       implements Serializable, XmlCapable
   {
  -
  +	static final long serialVersionUID = -3808311052971075269L;
       //---------------------------------------------------------------
       /**
        * The value that indicates if the argument list for this procedure
  
  
  
  1.32      +2 -2      db-ojb/src/java/org/apache/ojb/broker/metadata/FieldDescriptor.java
  
  Index: FieldDescriptor.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/FieldDescriptor.java,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- FieldDescriptor.java	9 Dec 2003 17:19:58 -0000	1.31
  +++ FieldDescriptor.java	7 Jan 2004 11:41:18 -0000	1.32
  @@ -79,7 +79,7 @@
    */
   public class FieldDescriptor extends AttributeDescriptorBase implements XmlCapable, Serializable
   {
  -    public static final String ACCESS_ANONYMOUS = RepositoryElements.TAG_ACCESS_ANONYMOUS;
  +	static final long serialVersionUID = 7865777758296851949L;    public static final String ACCESS_ANONYMOUS = RepositoryElements.TAG_ACCESS_ANONYMOUS;
       public static final String ACCESS_READONLY = RepositoryElements.TAG_ACCESS_READONLY;
       public static final String ACCESS_READWRITE = RepositoryElements.TAG_ACCESS_READWRITE;
   
  
  
  
  1.2       +2 -2      db-ojb/src/java/org/apache/ojb/broker/metadata/ObjectCacheDescriptor.java
  
  Index: ObjectCacheDescriptor.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/ObjectCacheDescriptor.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ObjectCacheDescriptor.java	17 Sep 2003 22:41:07 -0000	1.1
  +++ ObjectCacheDescriptor.java	7 Jan 2004 11:41:18 -0000	1.2
  @@ -22,7 +22,7 @@
    */
   public class ObjectCacheDescriptor implements Serializable, XmlCapable, AttributeContainer
   {
  -    private Class objectCache;
  +	static final long serialVersionUID = 2583853027407750053L;    private Class objectCache;
       private Properties configurationProperties;
   
       public ObjectCacheDescriptor()
  
  
  
  1.3       +2 -2      db-ojb/src/java/org/apache/ojb/broker/metadata/JdbcType.java
  
  Index: JdbcType.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/JdbcType.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- JdbcType.java	9 Dec 2003 19:24:02 -0000	1.2
  +++ JdbcType.java	7 Jan 2004 11:41:18 -0000	1.3
  @@ -19,7 +19,7 @@
    */
   public interface JdbcType extends Serializable
   {
  -    /**
  +	static final long serialVersionUID = -4280495525316102302L;    /**
        * Intern used flag.
        */
       public static final int MIN_INT = Integer.MIN_VALUE;
  
  
  
  1.4       +2 -2      db-ojb/src/java/org/apache/ojb/broker/metadata/ProcedureDescriptor.java
  
  Index: ProcedureDescriptor.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/ProcedureDescriptor.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ProcedureDescriptor.java	2 Nov 2003 15:09:02 -0000	1.3
  +++ ProcedureDescriptor.java	7 Jan 2004 11:41:18 -0000	1.4
  @@ -72,7 +72,7 @@
    */
   public abstract class ProcedureDescriptor extends DescriptorBase implements Serializable
   {
  -
  +	static final long serialVersionUID = -8228331122289787173L;
       //---------------------------------------------------------------
       /**
        * The the name of the procedure/function to invoke.
  
  
  
  1.4       +1 -1      db-ojb/src/java/org/apache/ojb/odmg/TransactionAware.java
  
  Index: TransactionAware.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/odmg/TransactionAware.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TransactionAware.java	31 Oct 2003 11:08:27 -0000	1.3
  +++ TransactionAware.java	7 Jan 2004 11:41:19 -0000	1.4
  @@ -1 +1 @@
  -package org.apache.ojb.odmg;


/* ====================================================================
 * The Apache Software License, Version 1.1
 *
 * Copyright (c) 2001 The Apache Software Foundation.  All rights
 * reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in
 *    the documentation and/or other materials provided with the
 *    distribution.
 *
 * 3. The end-user documentation included with the redistribution,
 *    if any, must include the following acknowledgment:
 *       "This product includes software developed by the
 *        Apache Software Foundation (http://www.apache.org/)."
 *    Alternately, this acknowledgment may appear in the software itself,
 *    if and wherever such third-party acknowledgments normally appear.
 *
 * 4. The names "Apache" and "Apache Software Foundation" and
 *    "Apache ObjectRelationalBridge" must not be used to endorse or promote products
 *    derived from this software without prior written permission. For
 *    written permission, please contact apache@apache.org.
 *
 * 5. Products derived from this software may not be called "Apache",
 *    "Apache ObjectRelationalBridge", nor may "Apache" appear in their name, without
 *    prior written permission of the Apache Software Foundation.
 *
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 * ====================================================================
 *
 * This software consists of voluntary contributions made by many
 * individuals on behalf of the Apache Software Foundation.  For more
 * information on the Apache Software Foundation, please see
 * <http://www.apache.org/>.
 */
import java.io.Serializable;

/**
 *
 * TransactionAware is an interface that can be implemented
 * to provide hooks into the Transaction interface provided
 * by ObJectRelationalBridge.
 * Only objects which have a write lock acquired on them can
 * participate in a transaction.
 * To kill a transaction, implement beforeCommit() and throw
 * a TransactionAbortedException.  This will force the entire
 * transaction to rollback.
 *
 * To rebuild an object after a rollback use the afterAbort()
 * call.  This is a good place to populate transient or other
 * variables.
 *
 * beforeAbort and afterCommit are there for informational
 * purposes.
 *
 * Here are some common ways you can expect this interface
 * to be called:
 *
 * Sucessful commit:
 * beforeCommit()
 * afterCommit()
 *
 * Transaction Failure (1):
 * beforeCommit()
 * beforeAbort()
 * afterAbort()
 *
 * Transaction Failure (2):
 * beforeAbort()
 * afterAbort()
 *
 * Commits and Aborts aren't directly provided to TransactionAware classes.
 * The idea is that Transactions are difficult to handle, and most of it
 * will be handled by ObjectSnapshot.  However, you use TransactionAware
 * to do one of two things, kill a transaction from happening, and clean
 * up after a rollback.
 *
 * @version $Id$
 */
public interface TransactionAware extends Serializable
{
    /**
     *
     * beforeCommit will give an object a chance to kill a
     * transaction before it is committed.
     * To kill a transaction, throw a new TransactionAbortedException.
     *
     */
    public void beforeCommit() throws org.odmg.TransactionAbortedException;

    /**
     *
     * afterCommit is called only after a successful commit has taken
     * place.
     *
     */
    public void afterCommit();

    /**
     *
     * beforeAbort is called before a transaction is aborted.
     *
     */
    public void beforeAbort();

    /**
     *
     * afterAbort will be called after a transaction has been aborted.
     * The values of fields which get persisted will have changed to
     * what they were at the begining of the transaction.  This method
     * should be overridden to reset any transient or non-persistent
     * fields.
     *
     */
    public void afterAbort();
}

  \ No newline at end of file
  +package org.apache.ojb.odmg;


/* ====================================================================
 * The Apache Software License, Version 1.1
 *
 * Copyright (c) 2001 The Apache Software Foundation.  All rights
 * reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in
 *    the documentation and/or other materials provided with the
 *    distribution.
 *
 * 3. The end-user documentation included with the redistribution,
 *    if any, must include the following acknowledgment:
 *       "This product includes software developed by the
 *        Apache Software Foundation (http://www.apache.org/)."
 *    Alternately, this acknowledgment may appear in the software itself,
 *    if and wherever such third-party acknowledgments normally appear.
 *
 * 4. The names "Apache" and "Apache Software Foundation" and
 *    "Apache ObjectRelationalBridge" must not be used to endorse or promote products
 *    derived from this software without prior written permission. For
 *    written permission, please contact apache@apache.org.
 *
 * 5. Products derived from this software may not be called "Apache",
 *    "Apache ObjectRelationalBridge", nor may "Apache" appear in their name, without
 *    prior written permission of the Apache Software Foundation.
 *
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 * ====================================================================
 *
 * This software consists of voluntary contributions made by many
 * individuals on behalf of the Apache Software Foundation.  For more
 * information on the Apache Software Foundation, please see
 * <http://www.apache.org/>.
 */
import java.io.Serializable;

/**
 *
 * TransactionAware is an interface that can be implemented
 * to provide hooks into the Transaction interface provided
 * by ObJectRelationalBridge.
 * Only objects which have a write lock acquired on them can
 * participate in a transaction.
 * To kill a transaction, implement beforeCommit() and throw
 * a TransactionAbortedException.  This will force the entire
 * transaction to rollback.
 *
 * To rebuild an object after a rollback use the afterAbort()
 * call.  This is a good place to populate transient or other
 * variables.
 *
 * beforeAbort and afterCommit are there for informational
 * purposes.
 *
 * Here are some common ways you can expect this interface
 * to be called:
 *
 * Sucessful commit:
 * beforeCommit()
 * afterCommit()
 *
 * Transaction Failure (1):
 * beforeCommit()
 * beforeAbort()
 * afterAbort()
 *
 * Transaction Failure (2):
 * beforeAbort()
 * afterAbort()
 *
 * Commits and Aborts aren't directly provided to TransactionAware classes.
 * The idea is that Transactions are difficult to handle, and most of it
 * will be handled by ObjectSnapshot.  However, you use TransactionAware
 * to do one of two things, kill a transaction from happening, and clean
 * up after a rollback.
 *
 * @version $Id$
 */
public interface TransactionAware extends Serializable
{
	static final long serialVersionUID = 3690863289834166023L;    /**
     *
     * beforeCommit will give an object a chance to kill a
     * transaction before it is committed.
     * To kill a transaction, throw a new TransactionAbortedException.
     *
     */
    public void beforeCommit() throws org.odmg.TransactionAbortedException;

    /**
     *
     * afterCommit is called only after a successful commit has taken
     * place.
     *
     */
    public void afterCommit();

    /**
     *
     * beforeAbort is called before a transaction is aborted.
     *
     */
    public void beforeAbort();

    /**
     *
     * afterAbort will be called after a transaction has been aborted.
     * The values of fields which get persisted will have changed to
     * what they were at the begining of the transaction.  This method
     * should be overridden to reset any transient or non-persistent
     * fields.
     *
     */
    public void afterAbort();
}

  \ No newline at end of file
  
  
  
  1.5       +1 -1      db-ojb/src/java/org/apache/ojb/odmg/NamedRootsEntry.java
  
  Index: NamedRootsEntry.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/odmg/NamedRootsEntry.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- NamedRootsEntry.java	8 Apr 2003 20:19:29 -0000	1.4
  +++ NamedRootsEntry.java	7 Jan 2004 11:41:19 -0000	1.5
  @@ -63,7 +63,7 @@
    */
   public class NamedRootsEntry implements java.io.Serializable
   {
  -
  +	static final long serialVersionUID = 6179717896336300342L;
       /**
        * the name under which an object is registered in the NamedRoots Map
        */
  
  
  
  1.26      +1 -1      db-ojb/src/java/org/apache/ojb/odmg/ObjectEnvelope.java
  
  Index: ObjectEnvelope.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/odmg/ObjectEnvelope.java,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- ObjectEnvelope.java	12 Dec 2003 21:59:45 -0000	1.25
  +++ ObjectEnvelope.java	7 Jan 2004 11:41:19 -0000	1.26
  @@ -95,7 +95,7 @@
    */
   public class ObjectEnvelope implements ObjectModification, Serializable
   {
  -    /**
  +	static final long serialVersionUID = -829177767933340522L;    /**
        * The objects modification state, e.g. Old and Clean
        */
       private ModificationState modificationState = null;
  
  
  
  1.4       +2 -2      db-ojb/src/java/org/apache/ojb/odmg/collections/DListEntry_2.java
  
  Index: DListEntry_2.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/odmg/collections/DListEntry_2.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DListEntry_2.java	4 Jan 2004 01:59:34 -0000	1.3
  +++ DListEntry_2.java	7 Jan 2004 11:41:19 -0000	1.4
  @@ -75,7 +75,7 @@
    */
   public class DListEntry_2 implements Serializable
   {
  -    /*
  +	static final long serialVersionUID = 5251476492626009907L;    /*
        * declare transient, because ManageableCollection entries need to be {@link java.io.Serializable}.
        */
       private transient Logger log;
  
  
  
  1.15      +2 -2      db-ojb/src/java/org/apache/ojb/odmg/collections/DMapEntry.java
  
  Index: DMapEntry.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/odmg/collections/DMapEntry.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- DMapEntry.java	12 Dec 2003 18:36:17 -0000	1.14
  +++ DMapEntry.java	7 Jan 2004 11:41:19 -0000	1.15
  @@ -78,7 +78,7 @@
   
   public class DMapEntry implements java.util.Map.Entry, Serializable
   {
  -    private Logger log = LoggerFactory.getLogger(DMapEntry.class);
  +	static final long serialVersionUID = 4382757889982004339L;    private Logger log = LoggerFactory.getLogger(DMapEntry.class);
       private int id;
       private int dmapId;
       private Identity keyOID;
  
  
  
  1.18      +2 -2      db-ojb/src/java/org/apache/ojb/odmg/collections/DMapImpl.java
  
  Index: DMapImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/odmg/collections/DMapImpl.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- DMapImpl.java	12 Dec 2003 18:36:17 -0000	1.17
  +++ DMapImpl.java	7 Jan 2004 11:41:19 -0000	1.18
  @@ -78,7 +78,7 @@
   
   public class DMapImpl extends AbstractMap implements DMap, Serializable
   {
  -    // private Logger log = LoggerFactory.getLogger(DMapImpl.class);
  +	static final long serialVersionUID = 7048246616243056480L;    // private Logger log = LoggerFactory.getLogger(DMapImpl.class);
       private int id = -1;
       private ManageableHashSet entries;
       private int size = 0;
  
  
  
  1.22      +1 -1      db-ojb/src/java/org/apache/ojb/odmg/collections/DListEntry.java
  
  Index: DListEntry.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/odmg/collections/DListEntry.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- DListEntry.java	12 Dec 2003 18:36:17 -0000	1.21
  +++ DListEntry.java	7 Jan 2004 11:41:19 -0000	1.22
  @@ -75,7 +75,7 @@
    */
   public class DListEntry implements Serializable
   {
  -    protected int id = 0;
  +	static final long serialVersionUID = -3280555665769116060L;    protected int id = 0;
       protected int dlistId = 0;
       protected DListImpl m_dList;
       protected int position;
  
  
  
  1.18      +1 -1      db-ojb/src/java/org/apache/ojb/odmg/collections/DSetImpl.java
  
  Index: DSetImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/odmg/collections/DSetImpl.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- DSetImpl.java	28 Nov 2003 14:39:59 -0000	1.17
  +++ DSetImpl.java	7 Jan 2004 11:41:19 -0000	1.18
  @@ -85,7 +85,7 @@
    */
   public class DSetImpl extends java.util.AbstractSet implements org.odmg.DSet, Serializable
   {
  -    private Logger log = LoggerFactory.getLogger(DSetImpl.class);
  +	static final long serialVersionUID = -4459673364598652639L;    private Logger log = LoggerFactory.getLogger(DSetImpl.class);
       private int id = -1;
       private Vector elements;
       private int size;
  
  
  
  1.24      +1 -1      db-ojb/src/java/org/apache/ojb/odmg/collections/DListImpl.java
  
  Index: DListImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/odmg/collections/DListImpl.java,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- DListImpl.java	12 Dec 2003 18:36:17 -0000	1.23
  +++ DListImpl.java	7 Jan 2004 11:41:19 -0000	1.24
  @@ -93,7 +93,7 @@
   public class DListImpl extends java.util.AbstractList implements DList, DArray,
           ManageableCollection, java.io.Serializable
   {
  -    private Logger log = LoggerFactory.getLogger(DListImpl.class);
  +	static final long serialVersionUID = -835415723401679339L;    private Logger log = LoggerFactory.getLogger(DListImpl.class);
       /**
        * decide whether we can defer ID generation based on the type of persistentField we are using
        * performance hit to generate these ID's is to much if you never use them.
  
  
  
  1.5       +2 -2      db-ojb/src/java/org/apache/ojb/broker/ManageableCollection.java
  
  Index: ManageableCollection.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/ManageableCollection.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ManageableCollection.java	9 Apr 2003 08:57:48 -0000	1.4
  +++ ManageableCollection.java	7 Jan 2004 11:41:20 -0000	1.5
  @@ -68,7 +68,7 @@
    */
   public interface ManageableCollection extends java.io.Serializable
   {
  -
  +	static final long serialVersionUID = -4324379872849598226L;
       /**
        * add a single Object to the Collection. This method is used during reading Collection elements
        * from the database. Thus it is is save to cast anObject to the underlying element type of the
  
  
  
  1.7       +2 -2      db-ojb/src/java/org/apache/ojb/broker/PBKey.java
  
  Index: PBKey.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/PBKey.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- PBKey.java	9 May 2003 10:17:24 -0000	1.6
  +++ PBKey.java	7 Jan 2004 11:41:20 -0000	1.7
  @@ -13,7 +13,7 @@
    */
   public class PBKey implements Cloneable, Serializable
   {
  -    private final String jcdAlias;
  +	static final long serialVersionUID = -8858811398162391578L;    private final String jcdAlias;
       private final String user;
       private final String password;
       private int hashCode;
  
  
  
  1.30      +2 -2      db-ojb/src/java/org/apache/ojb/broker/Identity.java
  
  Index: Identity.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/Identity.java,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- Identity.java	19 Dec 2003 17:51:04 -0000	1.29
  +++ Identity.java	7 Jan 2004 11:41:20 -0000	1.30
  @@ -87,7 +87,7 @@
    */
   public class Identity implements Serializable
   {
  -    /**
  +	static final long serialVersionUID = 3182285550574178710L;    /**
        * the top-level Class of the identified object<br>
        * ie: an Interface
        */
  
  
  
  1.10      +2 -2      db-ojb/src/java/org/apache/ojb/broker/VirtualProxy.java
  
  Index: VirtualProxy.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/VirtualProxy.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- VirtualProxy.java	9 Dec 2003 17:19:57 -0000	1.9
  +++ VirtualProxy.java	7 Jan 2004 11:41:20 -0000	1.10
  @@ -76,7 +76,7 @@
    */
   public abstract class VirtualProxy implements java.io.Serializable
   {
  -    /**
  +	static final long serialVersionUID = -3999451313262635171L;    /**
        * reference to the IndirectionHandler that encapsulates the delegation mechanism
        */
       private IndirectionHandler indirectionHandler = null;
  
  
  
  1.4       +2 -2      db-ojb/src/java/org/apache/ojb/broker/accesslayer/conversions/FieldConversion.java
  
  Index: FieldConversion.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/accesslayer/conversions/FieldConversion.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- FieldConversion.java	21 Sep 2002 15:39:53 -0000	1.3
  +++ FieldConversion.java	7 Jan 2004 11:41:20 -0000	1.4
  @@ -73,7 +73,7 @@
    */
   public interface FieldConversion extends Serializable
   {
  -    /** convert a Java object to its SQL pendant, used for insert & update*/
  +	static final long serialVersionUID = 2692919097691347845L;    /** convert a Java object to its SQL pendant, used for insert & update*/
       public abstract Object javaToSql(Object source) throws ConversionException;
   
       /** convert a SQL value to a Java Object, used for SELECT*/
  
  
  
  1.5       +2 -2      db-ojb/src/java/org/apache/ojb/broker/util/GUID.java
  
  Index: GUID.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/GUID.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- GUID.java	1 Aug 2002 18:10:46 -0000	1.4
  +++ GUID.java	7 Jan 2004 11:41:20 -0000	1.5
  @@ -70,7 +70,7 @@
    */
   public class GUID implements Serializable
   {
  -    /**
  +	static final long serialVersionUID = -6163239155380515945L;    /**
        * holds the hostname of the local machine.
        */
       private static String localIPAddress;
  
  
  
  1.4       +5 -5      db-ojb/src/java/org/apache/ojb/broker/util/ObjectModification.java
  
  Index: ObjectModification.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/ObjectModification.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ObjectModification.java	12 Jul 2003 16:17:23 -0000	1.3
  +++ ObjectModification.java	7 Jan 2004 11:41:20 -0000	1.4
  @@ -1,4 +1,4 @@
  -package org.apache.ojb.broker.util;
  +package org.apache.ojb.broker.util;
   
   /* ====================================================================
    * The Apache Software License, Version 1.1
  @@ -66,14 +66,14 @@
    */
   public interface ObjectModification extends java.io.Serializable
   {
  -    /**
  +	static final long serialVersionUID = -3208237880606252967L;    /**
        * returns true if the underlying Object needs an INSERT statement.
        * else Returns false.
        */
  -    public boolean needsInsert();
  +    public boolean needsInsert();
       /**
        * returns true if the underlying Object needs an UPDATE statement.
        * else Returns false.
        */
       public boolean needsUpdate();
  -}
  +}
  
  
  
  1.7       +2 -2      db-ojb/src/java/org/apache/ojb/broker/accesslayer/RowReader.java
  
  Index: RowReader.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/accesslayer/RowReader.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- RowReader.java	2 May 2003 12:24:32 -0000	1.6
  +++ RowReader.java	7 Jan 2004 11:41:20 -0000	1.7
  @@ -64,7 +64,7 @@
    */
   public interface RowReader extends Serializable
   {
  -    /**
  +	static final long serialVersionUID = -1283322922537162249L;    /**
        * materialize a single object from the values of the Map row.
        * the implementor of this class must not care for materializing
        * references or collection attributes, this is done later!
  
  
  
  1.23      +2 -2      db-ojb/src/java/org/apache/ojb/broker/accesslayer/IndirectionHandler.java
  
  Index: IndirectionHandler.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/accesslayer/IndirectionHandler.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- IndirectionHandler.java	15 Dec 2003 21:14:21 -0000	1.22
  +++ IndirectionHandler.java	7 Jan 2004 11:41:20 -0000	1.23
  @@ -83,7 +83,7 @@
    */
   public class IndirectionHandler implements InvocationHandler, Serializable
   {
  -    private static Logger log = LoggerFactory.getLogger(IndirectionHandler.class);
  +	static final long serialVersionUID = -1993879565033755826L;    private static Logger log = LoggerFactory.getLogger(IndirectionHandler.class);
       /**
        * reference to the used PersistenceBroker
        */
  
  
  
  1.15      +2 -2      db-ojb/src/java/org/apache/ojb/broker/accesslayer/PkEnumeration.java
  
  Index: PkEnumeration.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/accesslayer/PkEnumeration.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- PkEnumeration.java	9 Dec 2003 17:19:59 -0000	1.14
  +++ PkEnumeration.java	7 Jan 2004 11:41:20 -0000	1.15
  @@ -79,7 +79,7 @@
    */
   public class PkEnumeration implements Enumeration, Serializable
   {
  -
  +	static final long serialVersionUID = -834955711995869884L;
       protected boolean hasCalledCheck = false;
       protected boolean hasNext = false;
   
  
  
  
  1.5       +2 -2      db-ojb/src/java/org/apache/ojb/broker/accesslayer/PkIterator.java
  
  Index: PkIterator.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/accesslayer/PkIterator.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- PkIterator.java	19 Jan 2003 12:23:34 -0000	1.4
  +++ PkIterator.java	7 Jan 2004 11:41:20 -0000	1.5
  @@ -63,7 +63,7 @@
    */
   public class PkIterator implements Iterator, Serializable
   {
  -
  +	static final long serialVersionUID = 1906110293623601724L;
       private Enumeration internalEnum;
   
       public PkIterator(Enumeration enum)
  
  
  
  1.4       +2 -2      db-ojb/src/java/org/apache/ojb/tools/mapping/reversedb2/dbmetatreemodel/DBMetaCatalogNode.java
  
  Index: DBMetaCatalogNode.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/tools/mapping/reversedb2/dbmetatreemodel/DBMetaCatalogNode.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DBMetaCatalogNode.java	8 Nov 2002 13:47:38 -0000	1.3
  +++ DBMetaCatalogNode.java	7 Jan 2004 11:41:20 -0000	1.4
  @@ -66,7 +66,7 @@
   public class DBMetaCatalogNode extends ReverseDbTreeNode
       implements java.io.Serializable
   {
  -    /** Attribute key for the accessing the catalog name */
  +	static final long serialVersionUID = -2455228985120104948L;    /** Attribute key for the accessing the catalog name */
       public static final String ATT_CATALOG_NAME = "Catalog Name";
   
     
  
  
  
  1.4       +2 -2      db-ojb/src/java/org/apache/ojb/tools/mapping/reversedb2/dbmetatreemodel/DBMetaTableNode.java
  
  Index: DBMetaTableNode.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/tools/mapping/reversedb2/dbmetatreemodel/DBMetaTableNode.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DBMetaTableNode.java	8 Nov 2002 13:47:38 -0000	1.3
  +++ DBMetaTableNode.java	7 Jan 2004 11:41:20 -0000	1.4
  @@ -64,7 +64,7 @@
   public class DBMetaTableNode extends ReverseDbTreeNode
       implements java.io.Serializable
   {
  - 
  +	static final long serialVersionUID = 7091783312165332145L; 
       /** Key for accessing the table name in the attributes Map */    
       public static final String ATT_TABLE_NAME = "Table Name";
       
  
  
  
  1.4       +2 -2      db-ojb/src/java/org/apache/ojb/tools/mapping/reversedb2/dbmetatreemodel/DBMetaSchemaNode.java
  
  Index: DBMetaSchemaNode.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/tools/mapping/reversedb2/dbmetatreemodel/DBMetaSchemaNode.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DBMetaSchemaNode.java	8 Nov 2002 13:47:38 -0000	1.3
  +++ DBMetaSchemaNode.java	7 Jan 2004 11:41:20 -0000	1.4
  @@ -66,7 +66,7 @@
   public class DBMetaSchemaNode extends ReverseDbTreeNode
       implements java.io.Serializable
   {
  -    /** Key for accessing the schema name in the attributes Map */
  +	static final long serialVersionUID = 2430983502951445144L;    /** Key for accessing the schema name in the attributes Map */
       public static final String ATT_SCHEMA_NAME = "Schema Name";
       /** Creates a new instance of DBMetaSchemaNode 
        * @param pdbMeta DatabaseMetaData implementation where this node gets its data from.
  
  
  
  1.3       +2 -2      db-ojb/src/java/org/apache/ojb/tools/mapping/reversedb2/dbmetatreemodel/DBMetaColumnNode.java
  
  Index: DBMetaColumnNode.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/tools/mapping/reversedb2/dbmetatreemodel/DBMetaColumnNode.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DBMetaColumnNode.java	4 Sep 2002 16:06:23 -0000	1.2
  +++ DBMetaColumnNode.java	7 Jan 2004 11:41:20 -0000	1.3
  @@ -64,7 +64,7 @@
   public class DBMetaColumnNode extends ReverseDbTreeNode
       implements java.io.Serializable
   {
  -
  +	static final long serialVersionUID = -7694494988930854647L;
       /** Key for accessing the column name in the attributes Map */       
       public static final String ATT_COLUMN_NAME = "Column Name";   
   	
  
  
  
  1.4       +2 -2      db-ojb/src/java/org/apache/ojb/tools/mapping/reversedb2/dbmetatreemodel/DBMetaRootNode.java
  
  Index: DBMetaRootNode.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/tools/mapping/reversedb2/dbmetatreemodel/DBMetaRootNode.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DBMetaRootNode.java	8 Nov 2002 13:29:29 -0000	1.3
  +++ DBMetaRootNode.java	7 Jan 2004 11:41:20 -0000	1.4
  @@ -69,7 +69,7 @@
   public class DBMetaRootNode extends ReverseDbTreeNode
       implements java.io.Serializable
   {
  -    /** Creates a new instance of DBMetaRootNode 
  +	static final long serialVersionUID = 5002948511759554049L;    /** Creates a new instance of DBMetaRootNode 
        *  @param pdbMeta DatabaseMetaData implementation where this node gets its data from.
        *  @param pdbMetaTreeModel The TreeModel this node is associated to.
        */
  
  
  
  1.3       +2 -2      db-ojb/src/java/org/apache/ojb/tools/mapping/reversedb2/dbmetatreemodel/DatabaseMetaDataTreeModel.java
  
  Index: DatabaseMetaDataTreeModel.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/tools/mapping/reversedb2/dbmetatreemodel/DatabaseMetaDataTreeModel.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DatabaseMetaDataTreeModel.java	4 Sep 2002 16:04:54 -0000	1.2
  +++ DatabaseMetaDataTreeModel.java	7 Jan 2004 11:41:20 -0000	1.3
  @@ -71,7 +71,7 @@
   public class DatabaseMetaDataTreeModel extends javax.swing.tree.DefaultTreeModel
       implements java.io.Serializable
   {
  -    transient private java.sql.DatabaseMetaData dbMetadata;
  +	static final long serialVersionUID = -8045409456918534509L;    transient private java.sql.DatabaseMetaData dbMetadata;
       /** Creates a new instance of DatabaseMetaDataTreeModel. The
        * model represents the metadata specified by pdbMetadata
        * @param pdbMetadata the metadata this model represents.
  
  
  
  1.13      +2 -2      db-ojb/src/java/org/apache/ojb/broker/query/SelectionCriteria.java
  
  Index: SelectionCriteria.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/query/SelectionCriteria.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- SelectionCriteria.java	13 Sep 2003 14:33:57 -0000	1.12
  +++ SelectionCriteria.java	7 Jan 2004 11:41:20 -0000	1.13
  @@ -69,7 +69,7 @@
    */
   public abstract class SelectionCriteria implements java.io.Serializable
   {
  -    protected static final String EQUAL = " = ";
  +	static final long serialVersionUID = -5194901539702756536L;    protected static final String EQUAL = " = ";
       protected static final String NOT_EQUAL = " <> ";
       protected static final String GREATER = " > ";
       protected static final String NOT_GREATER = " <= ";
  
  
  
  1.12      +2 -2      db-ojb/src/java/org/apache/ojb/broker/query/AbstractQueryImpl.java
  
  Index: AbstractQueryImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/query/AbstractQueryImpl.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- AbstractQueryImpl.java	26 Nov 2003 17:33:09 -0000	1.11
  +++ AbstractQueryImpl.java	7 Jan 2004 11:41:20 -0000	1.12
  @@ -65,7 +65,7 @@
    */
   public abstract class AbstractQueryImpl implements Query, Serializable
   {
  -    private int m_startAtIndex = Query.NO_START_AT_INDEX;
  +	static final long serialVersionUID = -6265085604410295816L;    private int m_startAtIndex = Query.NO_START_AT_INDEX;
       private int m_endAtIndex = Query.NO_END_AT_INDEX;
       private int m_fullSize = 0;
       protected Class m_searchClass;
  
  
  
  1.15      +2 -2      db-ojb/src/java/org/apache/ojb/broker/query/Query.java
  
  Index: Query.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/query/Query.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- Query.java	8 Dec 2003 17:56:12 -0000	1.14
  +++ Query.java	7 Jan 2004 11:41:20 -0000	1.15
  @@ -83,7 +83,7 @@
    */
   public interface Query extends java.io.Serializable
   {
  -    public static final int NO_START_AT_INDEX = 0;
  +	static final long serialVersionUID = 7616997212439931319L;    public static final int NO_START_AT_INDEX = 0;
       public static final int NO_END_AT_INDEX = 0;
       public static final boolean SCROLLABLE = true;
       public static final boolean NOT_SCROLLABLE = false;
  
  
  
  1.36      +2 -2      db-ojb/src/java/org/apache/ojb/broker/query/Criteria.java
  
  Index: Criteria.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/query/Criteria.java,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- Criteria.java	10 Dec 2003 21:27:44 -0000	1.35
  +++ Criteria.java	7 Jan 2004 11:41:20 -0000	1.36
  @@ -84,7 +84,7 @@
    */
   public class Criteria implements java.io.Serializable
   {
  -	public final static int OR = 0;
  +	static final long serialVersionUID = 7384550404778187808L;	public final static int OR = 0;
   	public final static int AND = 1;
   	public final static int NONE = 9;
       
  
  
  
  1.2       +2 -2      db-ojb/src/java/org/apache/ojb/tools/mapping/reversedb2/propertyEditors/EditableTreeNodeWithProperties.java
  
  Index: EditableTreeNodeWithProperties.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/tools/mapping/reversedb2/propertyEditors/EditableTreeNodeWithProperties.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- EditableTreeNodeWithProperties.java	4 Sep 2002 16:18:10 -0000	1.1
  +++ EditableTreeNodeWithProperties.java	7 Jan 2004 11:41:21 -0000	1.2
  @@ -81,7 +81,7 @@
       org.apache.ojb.tools.mapping.reversedb2.propertyEditors.PropertyEditorTarget,
       java.io.Serializable
   {
  -
  +	static final long serialVersionUID = -8720549176372985715L;
       private java.util.HashMap hmAttributes = new java.util.HashMap();
       
       protected java.beans.PropertyChangeSupport propertyChangeDelegate = new
  
  
  
  1.4       +2 -2      db-ojb/src/java/org/apache/ojb/broker/util/pooling/PoolInfo.java
  
  Index: PoolInfo.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/pooling/PoolInfo.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- PoolInfo.java	26 Apr 2003 23:18:24 -0000	1.3
  +++ PoolInfo.java	7 Jan 2004 11:41:21 -0000	1.4
  @@ -76,7 +76,7 @@
    */
   public class PoolInfo implements Serializable //, Configurable
   {
  -    private int maxActive = DEFAULT_MAX_ACTIVE;
  +	static final long serialVersionUID = 3932509165776646636L;    private int maxActive = DEFAULT_MAX_ACTIVE;
       private int maxIdle = DEFAULT_MAX_IDLE;
       private long maxWait = DEFAULT_MAX_WAIT;
       private byte whenExhaustedAction = DEFAULT_WHEN_EXHAUSTED_ACTION;
  
  
  
  1.6       +2 -2      db-ojb/src/java/org/apache/ojb/broker/util/pooling/PoolConfiguration.java
  
  Index: PoolConfiguration.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/pooling/PoolConfiguration.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- PoolConfiguration.java	16 Dec 2003 21:34:48 -0000	1.5
  +++ PoolConfiguration.java	7 Jan 2004 11:41:21 -0000	1.6
  @@ -76,7 +76,7 @@
    */
   public class PoolConfiguration extends Properties implements Serializable //, Configurable
   {
  -    public static final String EMPTY = "";
  +	static final long serialVersionUID = -3850488378321541047L;    public static final String EMPTY = "";
       //*****************************************************
       // constants
       //*****************************************************
  
  
  
  1.7       +3 -3      db-ojb/src/java/org/apache/ojb/broker/metadata/fieldaccess/PersistentFieldPrivilegedImpl.java
  
  Index: PersistentFieldPrivilegedImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/fieldaccess/PersistentFieldPrivilegedImpl.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- PersistentFieldPrivilegedImpl.java	20 Aug 2003 19:40:52 -0000	1.6
  +++ PersistentFieldPrivilegedImpl.java	7 Jan 2004 11:41:21 -0000	1.7
  @@ -167,7 +167,7 @@
       //************************************************************
       private class SetAccessibleAction implements PrivilegedAction, Serializable
       {
  -        public Object run()
  +		static final long serialVersionUID = 8152025069698028050L;        public Object run()
           {
               getField().setAccessible(true);
               return null;
  @@ -176,7 +176,7 @@
   
       private class UnsetAccessibleAction implements PrivilegedAction, Serializable
       {
  -        public Object run()
  +		static final long serialVersionUID = -2284913657454430305L;        public Object run()
           {
               getField().setAccessible(false);
               return null;
  
  
  
  1.5       +2 -2      db-ojb/src/java/org/apache/ojb/broker/metadata/fieldaccess/PersistentField.java
  
  Index: PersistentField.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/fieldaccess/PersistentField.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- PersistentField.java	9 Dec 2003 17:19:58 -0000	1.4
  +++ PersistentField.java	7 Jan 2004 11:41:21 -0000	1.5
  @@ -64,7 +64,7 @@
    */
   public interface PersistentField extends Serializable
   {
  -	public Class getDeclaringClass();
  +	static final long serialVersionUID = 2264055340260883472L;	public Class getDeclaringClass();
   	public String getName();
   	public Class getType();
   
  
  
  
  1.4       +1 -1      db-ojb/src/java/org/apache/ojb/odmg/locking/LockEntry.java
  
  Index: LockEntry.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/odmg/locking/LockEntry.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- LockEntry.java	2 May 2003 09:05:50 -0000	1.3
  +++ LockEntry.java	7 Jan 2004 11:41:21 -0000	1.4
  @@ -66,7 +66,7 @@
    */
   public class LockEntry implements Serializable
   {
  -    /**
  +	static final long serialVersionUID = 8060850552557793930L;    /**
        * marks a Read Lock.
        */
       public static int LOCK_READ = 0;
  
  
  
  1.9       +1 -1      db-ojb/src/java/org/apache/ojb/odmg/states/ModificationState.java
  
  Index: ModificationState.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/odmg/states/ModificationState.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- ModificationState.java	13 Nov 2003 14:52:40 -0000	1.8
  +++ ModificationState.java	7 Jan 2004 11:41:21 -0000	1.9
  @@ -66,7 +66,7 @@
    */
   public abstract class ModificationState extends Object implements Serializable
   {
  -
  +	static final long serialVersionUID = 4182870857709997816L;
       public ModificationState()
       {
       }
  
  
  
  1.5       +2 -2      db-ojb/src/java/org/apache/ojb/soda/QueryImpl.java
  
  Index: QueryImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/soda/QueryImpl.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- QueryImpl.java	19 Feb 2003 22:10:13 -0000	1.4
  +++ QueryImpl.java	7 Jan 2004 11:41:21 -0000	1.5
  @@ -68,7 +68,7 @@
    */
   public class QueryImpl implements Query, Serializable
   {
  -
  +	static final long serialVersionUID = 7117766237756132776L;
   	private org.apache.ojb.broker.query.Query ojbQuery = null;
   	private int limitCount = -1;
       private PersistenceBroker broker;
  
  
  
  1.6       +1 -1      db-ojb/src/java/org/apache/ojb/broker/util/logging/Logger.java
  
  Index: Logger.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/logging/Logger.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- Logger.java	26 Oct 2003 17:19:57 -0000	1.5
  +++ Logger.java	7 Jan 2004 11:41:21 -0000	1.6
  @@ -1 +1 @@
  -package org.apache.ojb.broker.util.logging;

/* ====================================================================
 * The Apache Software License, Version 1.1
 *
 * Copyright (c) 2001 The Apache Software Foundation.  All rights
 * reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in
 *    the documentation and/or other materials provided with the
 *    distribution.
 *
 * 3. The end-user documentation included with the redistribution,
 *    if any, must include the following acknowledgment:
 *       "This product includes software developed by the
 *        Apache Software Foundation (http://www.apache.org/)."
 *    Alternately, this acknowledgment may appear in the software itself,
 *    if and wherever such third-party acknowledgments normally appear.
 *
 * 4. The names "Apache" and "Apache Software Foundation" and
 *    "Apache ObjectRelationalBridge" must not be used to endorse or promote products
 *    derived from this software without prior written permission. For
 *    written permission, please contact apache@apache.org.
 *
 * 5. Products derived from this software may not be called "Apache",
 *    "Apache ObjectRelationalBridge", nor may "Apache" appear in their name, without
 *    prior written permission of the Apache Software Foundation.
 *
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 * ====================================================================
 *
 * This software consists of voluntary contributions made by many
 * individuals on behalf of the Apache Software Foundation.  For more
 * information on the Apache Software Foundation, please see
 * <http://www.apache.org/>.
 */

import org.apache.ojb.broker.util.configuration.Configurable;

import java.io.Serializable;


/**
 * this interface defines the behaviour of a logging mechanism.
 * This API corresponds closely to the LOG4J Category Api.
 * By using this interface OJB remains free from Logger-Implementation
 * specific code.
 */
public interface Logger extends Serializable, Configurable
{
    /*
     * OJB loglevel constants. they corespond directly to LOG4J LogLevels.
     */
    public final static int DEBUG = 1;
    public final static int INFO = 2;
    public final static int WARN = 3;
    public final static int ERROR = 4;
    public final static int FATAL = 5;


    /**
     * generate a message for loglevel DEBUG
     * @param pObject the message Object
     */
    public void debug(Object pObject);

    /**
     * generate a message for loglevel INFO
     * @param pObject the message Object
     */
    public void info(Object pObject);

    /**
     * generate a message for loglevel WARN
     * @param pObject the message Object
     */
    public void warn(Object pObject);

    /**
     * generate a message for loglevel ERROR
     * @param pObject the message Object
     */
    public void error(Object pObject);

    /**
     * generate a message for loglevel FATAL
     * @param pObject the message Object
     */
    public void fatal(Object pObject);

    public void debug(Object message, Throwable obj);
    public void info(Object message, Throwable obj);
    public void warn(Object message, Throwable obj);
    public void error(Object message, Throwable obj);
    public void fatal(Object message, Throwable obj);

    public boolean isEnabledFor(int priority);
    public boolean isDebugEnabled();

    /**
     * returns the name of the logger isntance
     */
    public String getName();

    /**
     * Exception safe log method.
     * This method can be used to prevent any exception thrown by obj.toString() implementations.
     * Log level used : DEBUG
     */
    public void safeDebug(String message, Object obj);

    /**
     * Exception safe log method.
     * This method can be used to prevent any exception thrown by obj.toString() implementations.
     * Log level used : DEBUG
     */
    public void safeDebug(String message, Object obj, Throwable t);

    /**
     * Exception safe log method.
     * This method can be used to prevent any exception thrown by obj.toString() implementations.
     * Log level used : INFO
     */
    public void safeInfo(String message, Object obj);

    /**
     * Exception safe log method.
     * This method can be used to prevent any exception thrown by obj.toString() implementations.
     * Log level used : INFO
     */
    public void safeInfo(String message, Object obj, Throwable t);

    /**
     * Exception safe log method.
     * This method can be used to prevent any exception thrown by obj.toString() implementations.
     * Log level used : WARN
     */
    public void safeWarn(String message, Object obj);

    /**
     * Exception safe log method.
     * This method can be used to prevent any exception thrown by obj.toString() implementations.
     * Log level used : WARN
     */
    public void safeWarn(String message, Object obj, Throwable t);

    /**
     * Exception safe log method.
     * This method can be used to prevent any exception thrown by obj.toString() implementations.
     * Log level used : ERROR
     */
    public void safeError(String message, Object obj);

    /**
     * Exception safe log method.
     * This method can be used to prevent any exception thrown by obj.toString() implementations.
     * Log level used : ERROR
     */
    public void safeError(String message, Object obj, Throwable t);

    /**
     * Exception safe log method.
     * This method can be used to prevent any exception thrown by obj.toString() implementations.
     * Log level used : FATAL
     */
    public void safeFatal(String message, Object obj);

    /**
     * Exception safe log method.
     * This method can be used to prevent any exception thrown by obj.toString() implementations.
     * Log level used : FATAL
     */
    public void safeFatal(String message, Object obj, Throwable t);
}
  \ No newline at end of file
  +package org.apache.ojb.broker.util.logging;

/* ====================================================================
 * The Apache Software License, Version 1.1
 *
 * Copyright (c) 2001 The Apache Software Foundation.  All rights
 * reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in
 *    the documentation and/or other materials provided with the
 *    distribution.
 *
 * 3. The end-user documentation included with the redistribution,
 *    if any, must include the following acknowledgment:
 *       "This product includes software developed by the
 *        Apache Software Foundation (http://www.apache.org/)."
 *    Alternately, this acknowledgment may appear in the software itself,
 *    if and wherever such third-party acknowledgments normally appear.
 *
 * 4. The names "Apache" and "Apache Software Foundation" and
 *    "Apache ObjectRelationalBridge" must not be used to endorse or promote products
 *    derived from this software without prior written permission. For
 *    written permission, please contact apache@apache.org.
 *
 * 5. Products derived from this software may not be called "Apache",
 *    "Apache ObjectRelationalBridge", nor may "Apache" appear in their name, without
 *    prior written permission of the Apache Software Foundation.
 *
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 * ====================================================================
 *
 * This software consists of voluntary contributions made by many
 * individuals on behalf of the Apache Software Foundation.  For more
 * information on the Apache Software Foundation, please see
 * <http://www.apache.org/>.
 */

import org.apache.ojb.broker.util.configuration.Configurable;

import java.io.Serializable;


/**
 * this interface defines the behaviour of a logging mechanism.
 * This API corresponds closely to the LOG4J Category Api.
 * By using this interface OJB remains free from Logger-Implementation
 * specific code.
 */
public interface Logger extends Serializable, Configurable
{
	static final long serialVersionUID = 1177329037874407180L;    /*
     * OJB loglevel constants. they corespond directly to LOG4J LogLevels.
     */
    public final static int DEBUG = 1;
    public final static int INFO = 2;
    public final static int WARN = 3;
    public final static int ERROR = 4;
    public final static int FATAL = 5;


    /**
     * generate a message for loglevel DEBUG
     * @param pObject the message Object
     */
    public void debug(Object pObject);

    /**
     * generate a message for loglevel INFO
     * @param pObject the message Object
     */
    public void info(Object pObject);

    /**
     * generate a message for loglevel WARN
     * @param pObject the message Object
     */
    public void warn(Object pObject);

    /**
     * generate a message for loglevel ERROR
     * @param pObject the message Object
     */
    public void error(Object pObject);

    /**
     * generate a message for loglevel FATAL
     * @param pObject the message Object
     */
    public void fatal(Object pObject);

    public void debug(Object message, Throwable obj);
    public void info(Object message, Throwable obj);
    public void warn(Object message, Throwable obj);
    public void error(Object message, Throwable obj);
    public void fatal(Object message, Throwable obj);

    public boolean isEnabledFor(int priority);
    public boolean isDebugEnabled();

    /**
     * returns the name of the logger isntance
     */
    public String getName();

    /**
     * Exception safe log method.
     * This method can be used to prevent any exception thrown by obj.toString() implementations.
     * Log level used : DEBUG
     */
    public void safeDebug(String message, Object obj);

    /**
     * Exception safe log method.
     * This method can be used to prevent any exception thrown by obj.toString() implementations.
     * Log level used : DEBUG
     */
    public void safeDebug(String message, Object obj, Throwable t);

    /**
     * Exception safe log method.
     * This method can be used to prevent any exception thrown by obj.toString() implementations.
     * Log level used : INFO
     */
    public void safeInfo(String message, Object obj);

    /**
     * Exception safe log method.
     * This method can be used to prevent any exception thrown by obj.toString() implementations.
     * Log level used : INFO
     */
    public void safeInfo(String message, Object obj, Throwable t);

    /**
     * Exception safe log method.
     * This method can be used to prevent any exception thrown by obj.toString() implementations.
     * Log level used : WARN
     */
    public void safeWarn(String message, Object obj);

    /**
     * Exception safe log method.
     * This method can be used to prevent any exception thrown by obj.toString() implementations.
     * Log level used : WARN
     */
    public void safeWarn(String message, Object obj, Throwable t);

    /**
     * Exception safe log method.
     * This method can be used to prevent any exception thrown by obj.toString() implementations.
     * Log level used : ERROR
     */
    public void safeError(String message, Object obj);

    /**
     * Exception safe log method.
     * This method can be used to prevent any exception thrown by obj.toString() implementations.
     * Log level used : ERROR
     */
    public void safeError(String message, Object obj, Throwable t);

    /**
     * Exception safe log method.
     * This method can be used to prevent any exception thrown by obj.toString() implementations.
     * Log level used : FATAL
     */
    public void safeFatal(String message, Object obj);

    /**
     * Exception safe log method.
     * This method can be used to prevent any exception thrown by obj.toString() implementations.
     * Log level used : FATAL
     */
    public void safeFatal(String message, Object obj, Throwable t);
}
  \ No newline at end of file
  
  
  
  1.8       +2 -2      db-ojb/src/java/org/apache/ojb/broker/util/sequence/HighLowSequence.java
  
  Index: HighLowSequence.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/sequence/HighLowSequence.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- HighLowSequence.java	6 Nov 2003 01:38:16 -0000	1.7
  +++ HighLowSequence.java	7 Jan 2004 11:41:21 -0000	1.8
  @@ -68,7 +68,7 @@
    */
   public class HighLowSequence implements Serializable
   {
  -    private String tableName;
  +	static final long serialVersionUID = -2174468157880921393L;    private String tableName;
       private String fieldName;
       private long maxKey;
       private int grabSize;
  
  
  

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