planetj.database
Class DB2DBSystem

java.lang.Object
  extended byplanetj.database.DBSystem
      extended byplanetj.database.DB2DBSystem
All Implemented Interfaces:
java.util.EventListener, IDBObject, ITaskListener, IXMLObject, java.io.Serializable
Direct Known Subclasses:
DB2LocalSystem

public class DB2DBSystem
extends DBSystem

Insert the type's description here. Creation date: (11/29/2002 1:17:00 PM)

See Also:
Serialized Form

Field Summary
static java.lang.String LOCAL_DRIVER
          Local db2 driver
static java.lang.String REMOTE_DRIVER
          Remote db2 driver
 
Fields inherited from class planetj.database.DBSystem
LIBRARIES_NOT_SUPPORTED, LIBRARIES_REQUIRED, LIBRARIES_SUPPORTED, METADATA_CATALOG_NAME_FIELD, METADATA_COLUMN_NAME_FIELD, METADATA_COLUMN_NAME_OPERATION, METADATA_COLUMN_NAME_OPERATION_FOR_CATALOGS, METADATA_LIBRARY_NAME, METADATA_LIBRARY_NAME_FIELD, METADATA_SYSTEM_NAME_FIELD, METADATA_TABLE_NAME_FIELD, METADATA_TABLE_NAME_FOR_COLUMNS, METADATA_TABLE_NAME_FOR_LIBRARIES, METADATA_TABLE_NAME_FOR_TABLES, METADATA_TABLE_NAME_OPERATION, METADATA_TABLE_NAME_OPERATION_FOR_CATALOGS
 
Constructor Summary
protected DB2DBSystem()
          DB2DBSystem constructor comment.
protected DB2DBSystem(java.lang.String url)
          DB2DBSystem constructor comment.
protected DB2DBSystem(java.lang.String pURL, java.lang.String pAlias)
          DB2DBSystem constructor comment.
 
Method Summary
 java.lang.Object correctDatabaseObject(java.lang.Object object, int datatype)
          Returns an object of the appropriate type for insertion into the database.
 
Methods inherited from class planetj.database.DBSystem
addSQLTypeName, correctOperation, correctOperationSQL, correctSQLLiteral, createLibrary, createSystem, createSystem, createSystem, createSystem, getAlias, getAllLibraries, getCache, getColumnDataTypeName, getColumnIndicationCharacter, getColumnPrimaryKeyName, getDataType, getDBLibraryName, getDefaultDateFormat, getDefaultLibraryName, getDefaultTimeFormat, getDefaultTimestampFormat, getFieldClassForSQLTypeName, getIPAddress, getLibraries, getLibrary, getLibrary, getLibrarySupportLevel, getLibraryTableSeparator, getMetaDataAlias, getMetadataColumns, getMetadataLibraries, getMetaDataSystem, getMetadataTables, getName, getProperties, getSQLTypeNames, getSupportedDataType, getSystem, getURL, getXMLData, handleConnectionEvent, isAS400, isBackgroundThreadsSupported, isDB2, isDefaultLibraryOmitted, isDelegateToPersonal, isHasAllLibraries, isMSAccess, isMySQL, isOracle, isSQLServer, removeLibrary, setAlias, setDelegateToPersonal, setMetaDataAlias, setProperties, setURL, setURLInternal, startRetrieveAllLibrariesTask, taskCompleted, taskFailed, taskStarted, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REMOTE_DRIVER

public static final java.lang.String REMOTE_DRIVER
Remote db2 driver

See Also:
Constant Field Values

LOCAL_DRIVER

public static final java.lang.String LOCAL_DRIVER
Local db2 driver

See Also:
Constant Field Values
Constructor Detail

DB2DBSystem

protected DB2DBSystem()
DB2DBSystem constructor comment.


DB2DBSystem

protected DB2DBSystem(java.lang.String url)
DB2DBSystem constructor comment.

Parameters:
url - java.lang.String

DB2DBSystem

protected DB2DBSystem(java.lang.String pURL,
                      java.lang.String pAlias)
DB2DBSystem constructor comment.

Parameters:
pURL - java.lang.String
pAlias - java.lang.String
Method Detail

correctDatabaseObject

public java.lang.Object correctDatabaseObject(java.lang.Object object,
                                              int datatype)
Returns an object of the appropriate type for insertion into the database. In some cases, the default object type for a given datatype may not be appropriate for a given DB system - this method addresses that issue

Overrides:
correctDatabaseObject in class DBSystem
Parameters:
object - The object to be inserted into the database
datatype - The datatype of the database field
Returns:
The corrected object to be inserted into the database