001: /*
002: * Copyright (c) 1998 - 2005 Versant Corporation
003: * All rights reserved. This program and the accompanying materials
004: * are made available under the terms of the Eclipse Public License v1.0
005: * which accompanies this distribution, and is available at
006: * http://www.eclipse.org/legal/epl-v10.html
007: *
008: * Contributors:
009: * Versant Corporation - initial API and implementation
010: */
011: package com.versant.core.metadata.parser;
012:
013: /**
014: * <p>These are all the possible keys allowed for vendor extensions. The
015: * text for each key is the constant name converted to lowercase with
016: * underscores changed to hyphens. MetaDataParser uses reflection to
017: * automatically derive the valid keys from this interface.</p>
018: * <p/>
019: * <p>The constant values are used to classify extensions. Constants 100 to 199
020: * are jdbc extensions.</p>
021: *
022: * @see JdoExtension
023: * @see JdoExtension#isJdbc
024: * @see MetaDataParser
025: */
026: public interface JdoExtensionKeys {
027:
028: // some values are copied into ConfigBuilder.cs - change at both locations!
029: public static final int DATASTORE = 1;
030: public static final int ORDERED = 2;
031: public static final int READ_ONLY = 3;
032: public static final int PROPERTY = 4;
033: public static final int FIELD_NAME = 5;
034: public static final int FETCH_GROUP = 6;
035: public static final int NEXT_FETCH_GROUP = 7;
036: public static final int NEXT_KEY_FETCH_GROUP = 8;
037: public static final int DEPENDENT = 9;
038: public static final int KEYS_DEPENDENT = 10;
039: public static final int AUTOSET = 11;
040: public static final int CACHE_STRATEGY = 12;
041: public static final int OIDS_IN_DEFAULT_FETCH_GROUP = 13;
042: public static final int CREATE_OID_AT_MAKE_PERSISTENT = 14;
043: public static final int ORDERING = 15;
044: public static final int DELETE_ORPHANS = 16;
045: public static final int NULL_IF_NOT_FOUND = 17;
046: public static final int VALID_CLASS = 18;
047: public static final int INTERFACE = 19;
048: public static final int PERSIST_AFTER = 20;
049: public static final int CLASS = 21;
050: public static final int MANAGED = 22;
051: public static final int RANDOM_ACCESS = 23;
052: public static final int COUNT_STAR_ON_SIZE = 24;
053: public static final int MAX_ROWS = 25;
054: public static final int FETCH_SIZE = 26;
055: public static final int BOUNDED = 27;
056: public static final int EVICTION_CLASSES = 28;
057: public static final int OPTIMISTIC = 29;
058: public static final int QUERY_PARAM_VALUES = 30;
059: public static final int VALUE = 31;
060: public static final int SCO_FACTORY = 32;
061: public static final int EXTERNALIZER = 33;
062:
063: public static final int ALIAS = 34;
064: public static final int CACHEABLE = 35;
065:
066: public static final int NULL_INDICATOR = 36;
067: public static final int FIELD = 37;
068: public static final int NULL_VALUE = 38;
069: public static final int DEFAULT_FETCH_GROUP = 39;
070: public static final int EMBEDDED = 40;
071: public static final int COLLECTION = 41;
072: public static final int MAP = 42;
073: public static final int ARRAY = 43;
074: public static final int KEY_TYPE = 44;
075: public static final int VALUE_TYPE = 45;
076: public static final int ELEMENT_TYPE = 46;
077:
078: public static final int JDBC_COLUMN = 104;
079: public static final int JDBC_COLUMN_NAME = 105;
080: public static final int JDBC_CONSTRAINT = 106;
081: public static final int JDBC_PRIMARY_KEY = 108;
082: public static final int JDBC_REF = 110;
083: public static final int JDBC_INDEX = 111;
084: public static final int JDBC_CONVERTER = 112;
085: public static final int JDBC_JAVA_TYPE = 113;
086: public static final int JDBC_KEY_GENERATOR = 115;
087: public static final int JDBC_LENGTH = 117;
088: public static final int JDBC_LINK_FOREIGN_KEY = 118;
089: public static final int JDBC_LINK_TABLE = 119;
090: public static final int JDBC_OPTIMISTIC_LOCKING = 120;
091: public static final int JDBC_TABLE_NAME = 126;
092: public static final int JDBC_TYPE = 127;
093: public static final int JDBC_USE_JOIN = 128;
094: public static final int JDBC_USE_SUBCLASS_JOIN = 129;
095: public static final int JDBC_UNIQUE = 133;
096: public static final int JDBC_CLUSTERED = 134;
097: public static final int JDBC_CLASS_ID = 135;
098: public static final int JDBC_SCALE = 136;
099: public static final int JDBC_NULLS = 137;
100: public static final int JDBC_USE_KEY_JOIN = 138;
101: public static final int JDBC_INHERITANCE = 139;
102: public static final int JDBC_PK_FK_CONSTRAINT_NAME = 140;
103: public static final int JDBC_DO_NOT_CREATE_TABLE = 141;
104: public static final int JDBC_SQL_TYPE = 142;
105: public static final int JDBC_FIELD_NAME = 143;
106: public static final int JDBC_DATABASE = 144;
107: public static final int JDBC_OWNER_REF = 145;
108: public static final int JDBC_SEQUENCE = 146;
109: public static final int JDBC_KEY = 147;
110: public static final int JDBC_VALUE = 148;
111: public static final int INVERSE = 149;
112: public static final int JDBC_SHARED = 150;
113: }
|