001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common
008: * Development and Distribution License("CDDL") (collectively, the
009: * "License"). You may not use this file except in compliance with the
010: * License. You can obtain a copy of the License at
011: * http://www.netbeans.org/cddl-gplv2.html
012: * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
013: * specific language governing permissions and limitations under the
014: * License. When distributing the software, include this License Header
015: * Notice in each file and include the License file at
016: * nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
017: * particular file as subject to the "Classpath" exception as provided
018: * by Sun in the GPL Version 2 section of the License file that
019: * accompanied this code. If applicable, add the following below the
020: * License Header, with the fields enclosed by brackets [] replaced by
021: * your own identifying information:
022: * "Portions Copyrighted [year] [name of copyright owner]"
023: *
024: * Contributor(s):
025: *
026: * The Original Software is NetBeans. The Initial Developer of the Original
027: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
028: * Microsystems, Inc. All Rights Reserved.
029: *
030: * If you wish your version of this file to be governed by only the CDDL
031: * or only the GPL Version 2, indicate your decision by adding
032: * "[Contributor] elects to include this software in this distribution
033: * under the [CDDL or GPL Version 2] license." If you do not indicate a
034: * single choice of license, a recipient has the option to distribute
035: * your version of this file under either the CDDL, the GPL Version 2 or
036: * to extend the choice of license to its licensees as provided above.
037: * However, if you add GPL Version 2 code and therefore, elected the GPL
038: * Version 2 license, then the option applies only if the new code is
039: * made subject to such option by the copyright holder.
040: */
041:
042: package org.netbeans.modules.dbschema;
043:
044: /** Names of properties of elements.
045: */
046: public interface DBElementProperties {
047: /** Name of {@link DBElement#getName name} property for {@link
048: * DBElement db elements}.
049: */
050: public static final String PROP_NAME = "name"; //NOI18N
051:
052: /** Name of {@link ColumnElement#getType type} property for {@link
053: * ColumnElement column elements}.
054: */
055: public static final String PROP_TYPE = "type"; //NOI18N
056:
057: /** Name of {@link ColumnElement#isNullable nullable} property for {@link
058: * ColumnElement column elements}.
059: */
060: public static final String PROP_NULLABLE = "nullable"; //NOI18N
061:
062: /** Name of {@link ColumnElement#getLength length} property for {@link
063: * ColumnElement column elements}.
064: */
065: public static final String PROP_LENGTH = "length"; //NOI18N
066:
067: /** Name of {@link ColumnElement#getPrecision precision} property for {@link
068: * ColumnElement column elements}.
069: */
070: public static final String PROP_PRECISION = "precision"; //NOI18N
071:
072: /** Name of {@link ColumnElement#getScale scale} property for {@link
073: * ColumnElement column elements}.
074: */
075: public static final String PROP_SCALE = "scale"; //NOI18N
076:
077: /** Name of {@link IndexElement#isUnique flag} property for {@link
078: * IndexElement index elements}.
079: */
080: public static final String PROP_UNIQUE = "unique"; //NOI18N
081:
082: /** Name of {@link UniqueKeyElement#isPrimaryKey flag} property for {@link
083: * UniqueKeyElement unique key elements}.
084: */
085: public static final String PROP_PK = "primaryKey"; //NOI18N
086:
087: /** Name of {@link SchemaElement#getSchema schema} property for {@link
088: * SchemaElement schema elements}.
089: */
090: public static final String PROP_SCHEMA = "schema"; //NOI18N
091:
092: /** Name of {@link SchemaElement#getCatalog catalog} property for {@link
093: * SchemaElement schema elements}.
094: */
095: public static final String PROP_CATALOG = "catalog"; //NOI18N
096:
097: /** Name of tables property for {@link SchemaElement#getTables schema elements}.
098: */
099: public static final String PROP_TABLES = "tables"; // NOI18N
100:
101: /** Name of {@link TableElement#getColumns columns} property for {@link
102: * TableElement tables}.
103: */
104: public static final String PROP_COLUMNS = "columns"; //NOI18N
105:
106: /** Name of {@link TableElement#getColumnPairs column pairs} property for {@link
107: * TableElement tables}.
108: */
109: public static final String PROP_COLUMN_PAIRS = "columnPairs"; //NOI18N
110:
111: /** Name of {@link TableElement#getIndexes indexes} property for {@link
112: * TableElement tables}.
113: */
114: public static final String PROP_INDEXES = "indexes"; //NOI18N
115:
116: /** Name of {@link TableElement#getKeys keys} property for
117: * {@link TableElement tables}.
118: */
119: public static final String PROP_KEYS = "keys"; //NOI18N
120:
121: /** Name of {@link SchemaElement#getStatus status} property for {@link
122: * SchemaElement schema elements}.
123: */
124: public static final String PROP_STATUS = "status"; //NOI18N
125:
126: /** Name of {@link TableElement#isTableOrView is table or view} property for
127: * {@link TableElement tables}.
128: */
129: public static final String PROP_TABLE_OR_VIEW = "tableOrView"; //NOI18N
130:
131: /** Name of {@link ColumnPairElement#getLocalColumn local column} property for
132: * {@link ColumnPairElement column pair elements}.
133: */
134: public static final String PROP_LOCAL_COLUMN = "localColumn"; //NOI18N
135:
136: /** Name of {@link ColumnPairElement#getReferencedColumn referenced column} property for
137: * {@link ColumnPairElement column pair elements}.
138: */
139: public static final String PROP_REFERENCED_COLUMN = "referencedColumn"; //NOI18N
140: }
|