KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > oracle > toplink > essentials > internal > ejb > cmp3 > metadata > MetadataConstants


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the "License"). You may not use this file except
5  * in compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * glassfish/bootstrap/legal/CDDLv1.0.txt or
9  * https://glassfish.dev.java.net/public/CDDLv1.0.html.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * HEADER in each file and include the License file at
15  * glassfish/bootstrap/legal/CDDLv1.0.txt. If applicable,
16  * add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your
18  * own identifying information: Portions Copyright [yyyy]
19  * [name of copyright owner]
20  */

21 // Copyright (c) 1998, 2006, Oracle. All rights reserved.
22
package oracle.toplink.essentials.internal.ejb.cmp3.metadata;
23
24 /**
25  * INTERNAL:
26  * Static values for metadata processing.
27  */

28 public class MetadataConstants {
29     public static final String JavaDoc SINGLE_TABLE = "SINGLE_TABLE";
30     public static final String JavaDoc TABLE_PER_CLASS = "TABLE_PER_CLASS";
31     
32     /* Used for setting the discriminator column type. */
33     public static final String JavaDoc CHAR = "CHAR";
34     public static final String JavaDoc STRING = "STRING";
35     public static final String JavaDoc INTEGER = "INTEGER";
36     
37     /* Used with order by. */
38     public static final String JavaDoc ASCENDING = "ASC";
39     public static final String JavaDoc DESCENDING = "DESC";
40     
41     /* Used with temporal field classifications. */
42     public static final String JavaDoc DATE = "DATE";
43     public static final String JavaDoc TIME = "TIME";
44     public static final String JavaDoc TIMESTAMP = "TIMESTAMP";
45     
46     /* Used for setting the xml cascade types. */
47     public static final String JavaDoc CASCADE_ALL = "cascade-all";
48     public static final String JavaDoc CASCADE_MERGE = "cascade-merge";
49     public static final String JavaDoc CASCADE_REMOVE = "cascade-remove";
50     public static final String JavaDoc CASCADE_PERSIST = "cascade-persist";
51     public static final String JavaDoc CASCADE_REFRESH = "cascade-refresh";
52     
53     /* Sequencing constants. */
54     public static final String JavaDoc AUTO = "AUTO";
55     public static final String JavaDoc TABLE = "TABLE";
56     public static final String JavaDoc IDENTITY = "IDENTITY";
57     public static final String JavaDoc SEQUENCE = "SEQUENCE";
58     public static final String JavaDoc DEFAULT_AUTO_GENERATOR = "SEQ_GEN";
59     public static final String JavaDoc DEFAULT_TABLE_GENERATOR = "SEQ_GEN_TABLE";
60     public static final String JavaDoc DEFAULT_SEQUENCE_GENERATOR = "SEQ_GEN_SEQUENCE";
61     
62     /* Relationship mappings. */
63     public static final String JavaDoc LAZY = "LAZY";
64     public static final String JavaDoc EAGER = "EAGER";
65 }
66
Popular Tags