1 /*
2 * PROJECT : DAR Runtime and Tools
3 * COPYRIGHT : Copyright (C) 1999-2004 tim.stephenson@enableit.org
4 * LICENSE : GNU LESSER GENERAL PUBLIC LICENSE
5 * Version 2.1, February 1999
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 */
21
22 package org.enableit.db.darrt;
23
24 /***
25 * Provides constants to the Schema tools.
26 */
27 public class SchemaConstants {
28
29 public static final String PN_MS_SQL_SERVER = "Microsoft SQL Server";
30
31 //public static final String APP = "app" ;
32 //public static final String JAVA = "java" ;
33 public static final String ROOT_ELEMENT = "database";
34 public static final String SCHEMA = "schema";
35 public static final String PROVIDER = "provider";
36 public static final String DRIVER = "driver";
37 public static final String USERNAME = "username";
38 public static final String PASSWORD = "password";
39 public static final String CLASS_NAME = "class-name";
40 public static final String CREATION_DATE = "creation-date";
41 public static final String VSN = "version";
42 public static final String URL_STRING = "url";
43 public static final String METADATA = "metadata";
44 public static final String CATALOGS = "catalogues";
45 public static final String CATALOG_TERM = "catalogue-term";
46 public static final String SCHEMA_TERM = "schema-term";
47 public static final String TYPE = "type";
48 public static final String TABLE_TYPES = "table-types";
49 public static final String SCHEMAS = "schemas";
50 public static final String DESCRIPTION = "description";
51 public static final String DEFINITION = "definition";
52 public static final String TABLE = "table";
53 public static final String VIEW = "view";
54 public static final String PRODUCT_NAME = "product-name";
55 public static final String NAME = "name";
56 public static final String COLUMN = "column";
57 public static final String COL_NAME = "col-name";
58 public static final String COL_TYPE = "col-type";
59 public static final String DEFAULT = "default";
60 public static final String NULLABLE = "null";
61 public static final String PK = "primary-key";
62 public static final String FK = "foreign-key";
63 public static final String FK_TABLE = "table";
64 public static final String FK_DATA_COLUMN = "data-column";
65 public static final String FK_DATA_COL_NAME = "col-name";
66 public static final String FK_DISPLAY_COLUMN = "display-column";
67 public static final String FK_DISPLAY_COL_NAME = "col-name";
68 public static final String INDEX = "index";
69 public static final String INDEX_UNIQUE = "unique";
70
71 /***
72 * Attribute / Parameter name set to specify schema files to be written.
73 */
74 public static final String SCHEMA_FILE_OUTPUT_MODE = "outputMode";
75
76 /***
77 * A valid output mode for <code>SchemaExporter.exportToFile.</code>
78 */
79 public static final int OM_SINGLE_FILE = 1;
80
81 /***
82 * A valid output mode for <code>SchemaExporter.exportToFile.</code>
83 */
84 public static final int OM_FILE_PER_TABLE = 10;
85
86 /***
87 * A valid output mode for <code>SchemaExporter.exportToFile.</code>
88 */
89 public static final int OM_SINGLE_FILE_AND_FILE_PER_TABLE = 11;
90
91 /***
92 * CVS info ABOUT this class and its current version
93 */
94 public static final String ABOUT = "$Id: SchemaConstants.java,v 1.8 2004/03/20 05:20:35 tim Exp $";
95 }
This page was automatically generated by Maven