| ### Showing:
Annotations
Diagrams
Instances
Properties
Source
Used by

Element cay:db-key-generator

Namespace | http://cayenne.apache.org/schema/3.0/modelMap
Annotations |
    Used to install the Automatic Sequence/Key Generation facility for db-entity. This feature is intended for use with simple (non-compound) integral primary keys.
Diagram |
Properties |
content: | complex
Used by |
Element | cay:db-entity
Model | cay:db-generator-type , cay:db-generator-name{0,1} , cay:db-key-cache-size{0,1}
Children | cay:db-generator-name, cay:db-generator-type, cay:db-key-cache-size
Instance |
    <cay:db-key-generator>
      <cay:db-generator-type>{1,1}</cay:db-generator-type>
      <cay:db-generator-name>{0,1}</cay:db-generator-name>
      <cay:db-key-cache-size>{0,1}</cay:db-key-cache-size>
    </cay:db-key-generator>
Source |
    <xs:element name="db-key-generator">
      <xs:annotation>
        <xs:documentation>Used to install the Automatic Sequence/Key Generation facility for db-entity. This feature is intended for use with simple (non-compound) integral primary keys.</xs:documentation>
      </xs:annotation>
      <xs:complexType>
        <xs:sequence>
          <xs:element name="db-generator-type" type="xs:string">
            <xs:annotation>
              <xs:documentation>Specifies the Key Generation Method that will be employed 'ORACLE' - use Oracle's SEQUENCE 'NAMED_SEQUENCE_TABLE' - use USER designated SEQUENCE TABLE. User specifies the name of a DBMS Table with the schema (sequence INT) which will be used to hold sequence values (not supported yet)</xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:element minOccurs="0" name="db-generator-name" type="xs:string">
            <xs:annotation>
              <xs:documentation>For db-generator-type ORACLE this is the name of the ORACLE SEQUENCE to use. The SEQUENCE is assumed to already exist in the Database. If this is db-generator-type NAMED_SEQUENCE_TABLE Key Generation, this specifies the name of the SEQUENCE TABLE to use. The NAMED_SEQUENCE_TABLE is assumed to already exist in the database.</xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:element minOccurs="0" name="db-key-cache-size" type="xs:integer">
            <xs:annotation>
              <xs:documentation>Size of key cache. For db-generator-type ORACLE , this value MUST match the Oracle SEQUENCE INCREMENT value. If there is a mismatch between this value and the Oracle SEQUENCE INCREMENT value, then there will likely be duplicate key problems. For db-generator-type NAMED_SEQUENCE_TABLE , this tells how many keys the Container will fetch in a single DBMS call.</xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
      </xs:complexType>
    </xs:element>
Schema location | file:/Users/ari/svn/cayenne30/framework/cayenne-jdk1.5-unpublished/src/main/resources/org/apache/cayenne/schema/3.0/modelMap.xsd

Element cay:db-key-generator / cay:db-generator-type

Namespace | http://cayenne.apache.org/schema/3.0/modelMap
Annotations |
    Specifies the Key Generation Method that will be employed
    'ORACLE'               - use Oracle's SEQUENCE
    'NAMED_SEQUENCE_TABLE' - use USER designated SEQUENCE TABLE. User specifies the name of a DBMS Table with the schema (sequence INT) which will be used to hold sequence values (not supported yet)
Diagram |
Type | xs:string
Properties |
content: | simple
Source |
    <xs:element name="db-generator-type" type="xs:string">
      <xs:annotation>
        <xs:documentation>Specifies the Key Generation Method that will be employed 'ORACLE' - use Oracle's SEQUENCE 'NAMED_SEQUENCE_TABLE' - use USER designated SEQUENCE TABLE. User specifies the name of a DBMS Table with the schema (sequence INT) which will be used to hold sequence values (not supported yet)</xs:documentation>
      </xs:annotation>
    </xs:element>
Schema location | file:/Users/ari/svn/cayenne30/framework/cayenne-jdk1.5-unpublished/src/main/resources/org/apache/cayenne/schema/3.0/modelMap.xsd

Element cay:db-key-generator / cay:db-generator-name

Namespace | http://cayenne.apache.org/schema/3.0/modelMap
Annotations |
    For db-generator-type ORACLE this is the name of the ORACLE SEQUENCE to use. The SEQUENCE is assumed to already exist in the Database.
    If this is db-generator-type NAMED_SEQUENCE_TABLE Key Generation, this specifies the name of the SEQUENCE TABLE to use. The NAMED_SEQUENCE_TABLE is assumed to already exist in the database.
Diagram |
Type | xs:string
Properties |
content: | simple
minOccurs: | 0
Source |
    <xs:element minOccurs="0" name="db-generator-name" type="xs:string">
      <xs:annotation>
        <xs:documentation>For db-generator-type ORACLE this is the name of the ORACLE SEQUENCE to use. The SEQUENCE is assumed to already exist in the Database. If this is db-generator-type NAMED_SEQUENCE_TABLE Key Generation, this specifies the name of the SEQUENCE TABLE to use. The NAMED_SEQUENCE_TABLE is assumed to already exist in the database.</xs:documentation>
      </xs:annotation>
    </xs:element>
Schema location | file:/Users/ari/svn/cayenne30/framework/cayenne-jdk1.5-unpublished/src/main/resources/org/apache/cayenne/schema/3.0/modelMap.xsd

Element cay:db-key-generator / cay:db-key-cache-size

Namespace | http://cayenne.apache.org/schema/3.0/modelMap
Annotations |
    Size of key cache. For db-generator-type ORACLE , this value MUST match the Oracle SEQUENCE  INCREMENT value.  If there is a mismatch between this value and the Oracle SEQUENCE INCREMENT value, then there will likely be duplicate key problems.
    For db-generator-type NAMED_SEQUENCE_TABLE , this tells how many keys the Container will fetch in a single DBMS call.
Diagram |
Type | xs:integer
Properties |
content: | simple
minOccurs: | 0
Source |
    <xs:element minOccurs="0" name="db-key-cache-size" type="xs:integer">
      <xs:annotation>
        <xs:documentation>Size of key cache. For db-generator-type ORACLE , this value MUST match the Oracle SEQUENCE INCREMENT value. If there is a mismatch between this value and the Oracle SEQUENCE INCREMENT value, then there will likely be duplicate key problems. For db-generator-type NAMED_SEQUENCE_TABLE , this tells how many keys the Container will fetch in a single DBMS call.</xs:documentation>
      </xs:annotation>
    </xs:element>
Schema location | file:/Users/ari/svn/cayenne30/framework/cayenne-jdk1.5-unpublished/src/main/resources/org/apache/cayenne/schema/3.0/modelMap.xsd