KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > xquark > jdbc > typing > DBMSConstants


1 /*
2  * This file belongs to the XQuark distribution.
3  * Copyright (C) 2003 Universite de Versailles Saint-Quentin.
4  * Copyright (C) 2003 XQuark Group.
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307.
19  * You can also get it at http://www.gnu.org/licenses/lgpl.html
20  *
21  * For more information on this software, see http://www.xquark.org.
22  */

23 package org.xquark.jdbc.typing;
24
25 /**
26  * AbstractConnection factory.
27  *
28  * <p>This object holds database vendor specificities routing.</p>
29  */

30 public interface DBMSConstants
31 {
32     String JavaDoc RCSRevision = "$Revision: 1.1 $";
33     String JavaDoc RCSName = "$Name: $";
34
35     ///////////////////////////////////////////////////////////////
36
// RDBMS Constants
37
///////////////////////////////////////////////////////////////
38
short JDBC1 = 0;
39     short JDBC2 = 1;
40     short ORACLE = 2;
41     short ORACLE8I = 3;
42     short ORACLE8 = 4;
43     short ORACLELITE = 5;
44     short TIMESTEN = 6;
45     short TIMESTEN40 = 7;
46     short SYBASE = 8;
47     short SYBASE_ASE_11_9 = 9;
48     short SQL_SERVER = 10;
49     short SQL_SERVER_2000 = 11;
50     short MYSQL = 12;
51     short MYSQL323 = 13;
52
53     String JavaDoc ORACLE_FILE = "Oracle8i.xml";
54     String JavaDoc TIMESTEN_FILE = "TimesTen.xml";
55     String JavaDoc SYBASE_FILE = "SybaseASE.xml";
56     String JavaDoc SQL_SERVER_FILE = "MSSQLServer.xml";
57     String JavaDoc MYSQL_FILE = "MySQL.xml";
58
59     /* used for rdbms like Sybase that do not store trailing blanks and do differantiate null from empty (oracle) */
60     String JavaDoc STRING_DELIMITOR = "\u0000";
61     int STRING_DELIMITOR_LENGTH = 1;
62     String JavaDoc NIL_TRUE_VALUE = "t";
63     String JavaDoc NIL_FALSE_VALUE = "f";
64 }
65
Popular Tags