db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject cvs commit: jakarta-ojb/src/java/org/apache/ojb/broker/metadata RepositoryElements.java
Date Sat, 30 Nov 2002 17:29:45 GMT
thma        2002/11/30 09:29:45

  Modified:    src/java/org/apache/ojb/broker/metadata
                        RepositoryElements.java
  Log:
  add accept locks attribute to class-descriptor
  
  Revision  Changes    Path
  1.14      +145 -144  jakarta-ojb/src/java/org/apache/ojb/broker/metadata/RepositoryElements.java
  
  Index: RepositoryElements.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ojb/src/java/org/apache/ojb/broker/metadata/RepositoryElements.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- RepositoryElements.java	21 Nov 2002 22:54:25 -0000	1.13
  +++ RepositoryElements.java	30 Nov 2002 17:29:45 -0000	1.14
  @@ -1,144 +1,145 @@
  -package org.apache.ojb.broker.metadata;
  -
  -/* ====================================================================
  - * 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/>.
  - */
  -
  -/**
  - * This interface contains integer constants representing the
  - * elements of a DescriptorRepository.
  - * This constants are used in marshalling and unmarshalling a
  - * DescriptorRepository to identify all its constituent elements.
  - * @author		Thomas Mahler
  - */
  -public interface RepositoryElements
  -{
  -	public static final int MAPPING_REPOSITORY = 0;
  -    public static final int JDBC_CONNECTION_DESCRIPTOR = 1;
  -    public static final int DBMS_NAME = 2;
  -    public static final int SORT = 3;
  -    public static final int SCHEMA_NAME = 5;
  -    public static final int DRIVER_NAME = 6;
  -    public static final int URL_PROTOCOL = 7;
  -    public static final int URL_SUBPROTOCOL = 8;
  -    public static final int URL_DBALIAS = 9;
  -    public static final int USER_NAME = 10;
  -    public static final int USER_PASSWD = 11;
  -    public static final int EAGER_RELEASE = 74;
  -    public static final int CLASS_DESCRIPTOR = 12;
  -    public static final int CLASS_NAME = 13;
  -    public static final int CLASS_PROXY = 35;
  -    public static final int CLASS_EXTENT = 33;
  -    public static final int EXTENDS = 76;
  -    public static final int TABLE_NAME = 14;
  -    public static final int ORDERBY = 36;
  -    public static final int FIELD_CONVERSION = 30;
  -    public static final int ROW_READER = 32;
  -    public static final int FIELD_DESCRIPTOR = 15;
  -    public static final int FIELD_NAME = 16;
  -    public static final int COLUMN_NAME = 17;
  -    public static final int JDBC_TYPE = 18;
  -    public static final int PRIMARY_KEY = 19;
  -    public static final int AUTO_INCREMENT = 31;
  -    public static final int SEQUENCE_NAME = 77;
  -    public static final int REFERENCE_DESCRIPTOR = 20;
  -    public static final int REFERENCED_CLASS = 22;
  -    public static final int AUTO_RETRIEVE = 24;
  -    public static final int AUTO_UPDATE = 25;
  -    public static final int AUTO_DELETE = 26;
  -    public static final int COLLECTION_DESCRIPTOR = 27;
  -    public static final int ITEMS_CLASS = 29;
  -    public static final int INVERSE_FK = 38;
  -    public static final int COLLECTION_CLASS = 37;
  -    public static final int INDIRECTION_TABLE = 39;
  -    public static final int FK_POINTING_TO_ITEMS_CLASS = 40;
  -    public static final int FK_POINTING_TO_THIS_CLASS = 41;
  -    public static final int DATASOURCE_NAME = 44;
  -    public static final int JDBC_LEVEL = 45;
  -    public static final int LOCKING = 46;
  -    public static final int REFRESH_REFERENCE = 47;
  -    public static final int PROXY_REFERENCE = 48;
  -    public static final int ISOLATION_LEVEL = 34;
  -    public static final int FOREIGN_KEY = 49;
  -    public static final int NULLABLE = 50;
  -    public static final int INDEXED = 51;
  -    public static final int LENGTH = 52;
  -    public static final int PRECISION = 53;
  -    public static final int SCALE = 54;
  -    public static final int CON_MAX_ACTIVE = 55;
  -    public static final int CON_MAX_IDLE = 56;
  -    public static final int CON_MAX_WAIT = 57;
  -    public static final int CON_MIN_EVICTABLE_IDLE_TIME_MILLIS = 58;
  -    public static final int CON_NUM_TESTS_PER_EVICTION_RUN = 59;
  -    public static final int CON_TEST_ON_BORROW = 60;
  -    public static final int CON_TEST_ON_RETURN = 61;
  -    public static final int CON_TEST_WHILE_IDLE = 62;
  -    public static final int CON_TIME_BETWEEN_EVICTION_RUNS_MILLIS = 63;
  -    public static final int CON_WHEN_EXHAUSTED_ACTION = 64;
  -    public static final int CONNECTION_POOL = 65;
  -    public static final int CONNECTION_FACTORY = 66;
  -    public static final int REPOSITORY_VERSION = 67;
  -    public static final int CLASS_REF = 68;
  -    public static final int ID = 69;
  -    public static final int FIELD_ID_REF = 70;
  -    public static final int ATTRIBUTE = 71;
  -    public static final int ATTRIBUTE_NAME = 72;
  -    public static final int ATTRIBUTE_VALUE = 73;
  -	public static final int DOCUMENTATION = 75;
  -
  -
  -
  -    // maintain a last id to keep track where we are
  -    public static final int _LAST = 78;
  -
  -}
  \ No newline at end of file
  +package org.apache.ojb.broker.metadata;
  +
  +/* ====================================================================
  + * 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/>.
  + */
  +
  +/**
  + * This interface contains integer constants representing the
  + * elements of a DescriptorRepository.
  + * This constants are used in marshalling and unmarshalling a
  + * DescriptorRepository to identify all its constituent elements.
  + * @author		Thomas Mahler
  + */
  +public interface RepositoryElements
  +{
  +	public static final int MAPPING_REPOSITORY = 0;
  +    public static final int JDBC_CONNECTION_DESCRIPTOR = 1;
  +    public static final int DBMS_NAME = 2;
  +    public static final int SORT = 3;
  +    public static final int SCHEMA_NAME = 5;
  +    public static final int DRIVER_NAME = 6;
  +    public static final int URL_PROTOCOL = 7;
  +    public static final int URL_SUBPROTOCOL = 8;
  +    public static final int URL_DBALIAS = 9;
  +    public static final int USER_NAME = 10;
  +    public static final int USER_PASSWD = 11;
  +    public static final int EAGER_RELEASE = 74;
  +    public static final int CLASS_DESCRIPTOR = 12;
  +    public static final int CLASS_NAME = 13;
  +    public static final int CLASS_PROXY = 35;
  +    public static final int CLASS_EXTENT = 33;
  +    public static final int EXTENDS = 76;
  +    public static final int TABLE_NAME = 14;
  +    public static final int ORDERBY = 36;
  +    public static final int FIELD_CONVERSION = 30;
  +    public static final int ROW_READER = 32;
  +    public static final int FIELD_DESCRIPTOR = 15;
  +    public static final int FIELD_NAME = 16;
  +    public static final int COLUMN_NAME = 17;
  +    public static final int JDBC_TYPE = 18;
  +    public static final int PRIMARY_KEY = 19;
  +    public static final int AUTO_INCREMENT = 31;
  +    public static final int SEQUENCE_NAME = 77;
  +    public static final int REFERENCE_DESCRIPTOR = 20;
  +    public static final int REFERENCED_CLASS = 22;
  +    public static final int AUTO_RETRIEVE = 24;
  +    public static final int AUTO_UPDATE = 25;
  +    public static final int AUTO_DELETE = 26;
  +    public static final int COLLECTION_DESCRIPTOR = 27;
  +    public static final int ITEMS_CLASS = 29;
  +    public static final int INVERSE_FK = 38;
  +    public static final int COLLECTION_CLASS = 37;
  +    public static final int INDIRECTION_TABLE = 39;
  +    public static final int FK_POINTING_TO_ITEMS_CLASS = 40;
  +    public static final int FK_POINTING_TO_THIS_CLASS = 41;
  +    public static final int DATASOURCE_NAME = 44;
  +    public static final int JDBC_LEVEL = 45;
  +    public static final int LOCKING = 46;
  +    public static final int REFRESH_REFERENCE = 47;
  +    public static final int PROXY_REFERENCE = 48;
  +    public static final int ISOLATION_LEVEL = 34;
  +    public static final int FOREIGN_KEY = 49;
  +    public static final int NULLABLE = 50;
  +    public static final int INDEXED = 51;
  +    public static final int LENGTH = 52;
  +    public static final int PRECISION = 53;
  +    public static final int SCALE = 54;
  +    public static final int CON_MAX_ACTIVE = 55;
  +    public static final int CON_MAX_IDLE = 56;
  +    public static final int CON_MAX_WAIT = 57;
  +    public static final int CON_MIN_EVICTABLE_IDLE_TIME_MILLIS = 58;
  +    public static final int CON_NUM_TESTS_PER_EVICTION_RUN = 59;
  +    public static final int CON_TEST_ON_BORROW = 60;
  +    public static final int CON_TEST_ON_RETURN = 61;
  +    public static final int CON_TEST_WHILE_IDLE = 62;
  +    public static final int CON_TIME_BETWEEN_EVICTION_RUNS_MILLIS = 63;
  +    public static final int CON_WHEN_EXHAUSTED_ACTION = 64;
  +    public static final int CONNECTION_POOL = 65;
  +    public static final int CONNECTION_FACTORY = 66;
  +    public static final int REPOSITORY_VERSION = 67;
  +    public static final int CLASS_REF = 68;
  +    public static final int ID = 69;
  +    public static final int FIELD_ID_REF = 70;
  +    public static final int ATTRIBUTE = 71;
  +    public static final int ATTRIBUTE_NAME = 72;
  +    public static final int ATTRIBUTE_VALUE = 73;
  +    public static final int DOCUMENTATION = 75;
  +    public static final int ACCEPT_LOCKS = 78;
  +
  +
  +
  +    // maintain a last id to keep track where we are
  +    public static final int _LAST = 79;
  +
  +}
  
  
  

Mime
View raw message