|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.jdc.lang.Object
|
+--com.jdc.lang.SerializableObject
|
+--com.jdc.rdb.DatabaseType
The application database type. The DatabaseType class represents the
type of application database in use. The current supported database types are:
IBM DB2 database type is implemented in AbstractDatabase.
The Oracle and MySQL database types will be implemented in
a future release.
| Field Summary | |
static DatabaseType |
IBM_DB2
Identifies an IBM DB2 database. |
static String |
LOCAL
A local database type. |
static DatabaseType |
MY_SQL
Identifies a MySQL database. |
static DatabaseType |
ORACLE
Identifies an Oracle database. |
static String |
REMOTE
A remote database type. |
| Fields inherited from class com.jdc.lang.Object |
string |
| Method Summary | |
boolean |
equals(Object object)
Compares this database type to the specified object. |
String |
getDriverName(String type)
Returns the appropriate Driver class name for a local
or remote database type. |
static DatabaseType |
getInstance(String name)
Returns the DatabaseType for the specified database name. |
String |
getURL(String url,
String port,
String name)
Returns a complete database Uniform Resource Locator ( URL) String. |
String |
toString()
Returns a String representing this database type. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final DatabaseType IBM_DB2
public static final DatabaseType ORACLE
public static final DatabaseType MY_SQL
public static final String LOCAL
public static final String REMOTE
| Method Detail |
public boolean equals(Object object)
true
if a specified database type is equal to this type.
equals in class ObjectTrue if a specified object is equal to this database type.False if the specified object is not equal to this database type.public String getDriverName(String type)
Driver class name for a local
or remote database type.
Driver class name.public static DatabaseType getInstance(String name)
DatabaseType for the specified database name.
DatabaseType for the specified database name.
public String getURL(String url,
String port,
String name)
URL) String.
URL).public String toString()
String representing this database type.
toString in class ObjectString representing this database type.
|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||