KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > dbschema > DBElementProperties


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.modules.dbschema;
21
22 /** Names of properties of elements.
23  */

24 public interface DBElementProperties {
25     /** Name of {@link DBElement#getName name} property for {@link
26      * DBElement db elements}.
27      */

28     public static final String JavaDoc PROP_NAME = "name"; //NOI18N
29

30     /** Name of {@link ColumnElement#getType type} property for {@link
31      * ColumnElement column elements}.
32      */

33     public static final String JavaDoc PROP_TYPE = "type"; //NOI18N
34

35     /** Name of {@link ColumnElement#isNullable nullable} property for {@link
36      * ColumnElement column elements}.
37      */

38     public static final String JavaDoc PROP_NULLABLE = "nullable"; //NOI18N
39

40     /** Name of {@link ColumnElement#getLength length} property for {@link
41      * ColumnElement column elements}.
42      */

43     public static final String JavaDoc PROP_LENGTH = "length"; //NOI18N
44

45     /** Name of {@link ColumnElement#getPrecision precision} property for {@link
46      * ColumnElement column elements}.
47      */

48     public static final String JavaDoc PROP_PRECISION = "precision"; //NOI18N
49

50     /** Name of {@link ColumnElement#getScale scale} property for {@link
51      * ColumnElement column elements}.
52      */

53     public static final String JavaDoc PROP_SCALE = "scale"; //NOI18N
54

55     /** Name of {@link IndexElement#isUnique flag} property for {@link
56      * IndexElement index elements}.
57      */

58     public static final String JavaDoc PROP_UNIQUE = "unique"; //NOI18N
59

60     /** Name of {@link UniqueKeyElement#isPrimaryKey flag} property for {@link
61      * UniqueKeyElement unique key elements}.
62      */

63     public static final String JavaDoc PROP_PK = "primaryKey"; //NOI18N
64

65     /** Name of {@link SchemaElement#getSchema schema} property for {@link
66      * SchemaElement schema elements}.
67      */

68     public static final String JavaDoc PROP_SCHEMA= "schema"; //NOI18N
69

70     /** Name of {@link SchemaElement#getCatalog catalog} property for {@link
71      * SchemaElement schema elements}.
72      */

73     public static final String JavaDoc PROP_CATALOG= "catalog"; //NOI18N
74

75     /** Name of tables property for {@link SchemaElement#getTables schema elements}.
76      */

77     public static final String JavaDoc PROP_TABLES = "tables"; // NOI18N
78

79     /** Name of {@link TableElement#getColumns columns} property for {@link
80      * TableElement tables}.
81      */

82     public static final String JavaDoc PROP_COLUMNS = "columns"; //NOI18N
83

84     /** Name of {@link TableElement#getColumnPairs column pairs} property for {@link
85      * TableElement tables}.
86      */

87     public static final String JavaDoc PROP_COLUMN_PAIRS = "columnPairs"; //NOI18N
88

89     /** Name of {@link TableElement#getIndexes indexes} property for {@link
90      * TableElement tables}.
91      */

92     public static final String JavaDoc PROP_INDEXES = "indexes"; //NOI18N
93

94     /** Name of {@link TableElement#getKeys keys} property for
95      * {@link TableElement tables}.
96      */

97     public static final String JavaDoc PROP_KEYS = "keys"; //NOI18N
98

99     /** Name of {@link SchemaElement#getStatus status} property for {@link
100      * SchemaElement schema elements}.
101      */

102     public static final String JavaDoc PROP_STATUS = "status"; //NOI18N
103

104     /** Name of {@link TableElement#isTableOrView is table or view} property for
105      * {@link TableElement tables}.
106      */

107     public static final String JavaDoc PROP_TABLE_OR_VIEW = "tableOrView"; //NOI18N
108

109     /** Name of {@link ColumnPairElement#getLocalColumn local column} property for
110      * {@link ColumnPairElement column pair elements}.
111      */

112     public static final String JavaDoc PROP_LOCAL_COLUMN = "localColumn"; //NOI18N
113

114     /** Name of {@link ColumnPairElement#getReferencedColumn referenced column} property for
115      * {@link ColumnPairElement column pair elements}.
116      */

117     public static final String JavaDoc PROP_REFERENCED_COLUMN = "referencedColumn"; //NOI18N
118
}
119
Popular Tags