View Javadoc

1   /*
2    * ModeShape (http://www.modeshape.org)
3    * See the COPYRIGHT.txt file distributed with this work for information
4    * regarding copyright ownership.  Some portions may be licensed
5    * to Red Hat, Inc. under one or more contributor license agreements.
6    * See the AUTHORS.txt file in the distribution for a full listing of 
7    * individual contributors. 
8    *
9    * ModeShape is free software. Unless otherwise indicated, all code in ModeShape
10   * is licensed to you under the terms of the GNU Lesser General Public License as
11   * published by the Free Software Foundation; either version 2.1 of
12   * the License, or (at your option) any later version.
13   *
14   * ModeShape is distributed in the hope that it will be useful,
15   * but WITHOUT ANY WARRANTY; without even the implied warranty of
16   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17   * Lesser General Public License for more details.
18   *
19   * You should have received a copy of the GNU Lesser General Public
20   * License along with this software; if not, write to the Free
21   * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
22   * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
23   */
24  package org.modeshape.connector.meta.jdbc;
25  
26  import org.modeshape.graph.property.Name;
27  import org.modeshape.graph.property.basic.BasicName;
28  
29  /**
30   * The namespace and property names used within a {@link JdbcMetadataSource} to store internal information.
31   */
32  public class JdbcMetadataLexicon {
33  
34      public static class Namespace {
35          public static final String URI = "http://www.modeshape.org/connector/meta/jdbc/1.0";
36          public static final String PREFIX = "metajdbc";
37      }
38  
39      public static final Name CATALOG = new BasicName(Namespace.URI, "catalog");
40      public static final Name COLUMN = new BasicName(Namespace.URI, "column");
41      public static final Name COLUMNS = new BasicName(Namespace.URI, "columns");
42      public static final Name COLUMN_SIZE = new BasicName(Namespace.URI, "columnSize");
43      public static final Name DATABASE_MAJOR_VERSION = new BasicName(Namespace.URI, "databaseMajorVersion");
44      public static final Name DATABASE_MINOR_VERSION = new BasicName(Namespace.URI, "databaseMinorVersion");
45      public static final Name DATABASE_PRODUCT_NAME = new BasicName(Namespace.URI, "databaseProductName");
46      public static final Name DATABASE_PRODUCT_VERSION = new BasicName(Namespace.URI, "databaseProductVersion");
47      public static final Name DATABASE_ROOT = new BasicName(Namespace.URI, "databaseRoot"); // Mixin type for root node
48      public static final Name DECIMAL_DIGITS = new BasicName(Namespace.URI, "decimalDigits");
49      public static final Name DEFAULT_VALUE = new BasicName(Namespace.URI, "defaultValue");
50      public static final Name DESCRIPTION = new BasicName(Namespace.URI, "description");
51      public static final Name JDBC_DATA_TYPE = new BasicName(Namespace.URI, "jdbcDataType");
52      public static final Name NULLABLE = new BasicName(Namespace.URI, "nullable");
53      public static final Name LENGTH = new BasicName(Namespace.URI, "length");
54      public static final Name ORDINAL_POSITION = new BasicName(Namespace.URI, "ordinalPosition");
55      public static final Name PROCEDURE = new BasicName(Namespace.URI, "procedure");
56      public static final Name PROCEDURES = new BasicName(Namespace.URI, "procedures");
57      public static final Name PROCEDURE_RETURN_TYPE = new BasicName(Namespace.URI, "procedureReturnType");
58      public static final Name RADIX = new BasicName(Namespace.URI, "radix");
59      public static final Name REFERENCE_GENERATION_STRATEGY_NAME = new BasicName(Namespace.URI, "referenceGenerationStrategyName");
60      public static final Name SCHEMA = new BasicName(Namespace.URI, "schema");
61      public static final Name SCOPE_CATALOG_NAME = new BasicName(Namespace.URI, "scopeCatalogName");
62      public static final Name SCOPE_SCHEMA_NAME = new BasicName(Namespace.URI, "scopeSchemaName");
63      public static final Name SCOPE_TABLE_NAME = new BasicName(Namespace.URI, "scopeTableName");
64      public static final Name SELF_REFERENCING_COLUMN_NAME = new BasicName(Namespace.URI, "selfReferencingColumnName");
65      public static final Name SOURCE_JDBC_DATA_TYPE = new BasicName(Namespace.URI, "sourceJdbcDataType");
66      public static final Name TABLE = new BasicName(Namespace.URI, "table");
67      public static final Name TABLES = new BasicName(Namespace.URI, "tables");
68      public static final Name TABLE_TYPE = new BasicName(Namespace.URI, "tableType");
69      public static final Name TYPE_NAME = new BasicName(Namespace.URI, "typeName");
70      public static final Name TYPE_CATALOG_NAME = new BasicName(Namespace.URI, "typeCatalogName");
71      public static final Name TYPE_SCHEMA_NAME = new BasicName(Namespace.URI, "typeSchemaName");
72  }