KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > jdo > spi > persistence > generator > database > DatabaseGenerationConstants


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 in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
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 Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24
25 package com.sun.jdo.spi.persistence.generator.database;
26
27 /**
28  * This interface defines string constants used by the database generation.
29  *
30  * @author Jie Leng, Dave Bristor
31  */

32 // XXX Rename this class to "Constants"
33
interface DatabaseGenerationConstants {
34
35     /** Separator between property name bases and indicators. */
36     static final char DOT = '.';
37
38     /** Indicator that property is for a maximum length. */
39     static final String JavaDoc INDICATOR_MAXIMUM_LENGTH = "maximum-length"; //NOI18N
40

41     /**
42      * (Partial) indicator that property is for attributes of SQL. The prefix
43      * is recognized by alone by itself in MappingFile, and is used by other
44      * DatabaseGenerationConstants.
45      */

46     static final String JavaDoc INDICATOR_JDBC_PREFIX = "jdbc"; //NOI18N
47

48     /** Indicator that property designates the length of mapped SQL type. */
49     static final String JavaDoc INDICATOR_JDBC_LENGTH =
50         INDICATOR_JDBC_PREFIX + "-" + INDICATOR_MAXIMUM_LENGTH; //NOI18N
51

52     /** Indicator that property designates the nullability of mapped SQL type. */
53     static final String JavaDoc INDICATOR_JDBC_NULLABLE =
54         INDICATOR_JDBC_PREFIX + "-nullable"; //NOI18N
55

56     /** Indicator that property designates the precision of mapped SQL type. */
57     static final String JavaDoc INDICATOR_JDBC_PRECISION =
58         INDICATOR_JDBC_PREFIX + "-precision"; //NOI18N
59

60     /** Indicator that property designates the scale of mapped SQL type. */
61     static final String JavaDoc INDICATOR_JDBC_SCALE =
62         INDICATOR_JDBC_PREFIX + "-scale"; //NOI18N
63

64     /** Indicator that property designates the type of a mapped SQL type. */
65     static final String JavaDoc INDICATOR_JDBC_TYPE =
66         INDICATOR_JDBC_PREFIX + "-type"; //NOI18N
67
}
68
Popular Tags