planetj.database
Class DB2DBSystem

java.lang.Object
  |
  +--planetj.database.DBSystem
        |
        +--planetj.database.DB2DBSystem
All Implemented Interfaces:
EventListener, IDBObject, ITaskListener, IXMLObject, 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 String LOCAL_DRIVER
          Local db2 driver
static String REMOTE_DRIVER
          Remote db2 driver
 
Fields inherited from class planetj.database.DBSystem
LIBRARIES_NOT_SUPPORTED, LIBRARIES_REQUIRED, LIBRARIES_SUPPORTED
 
Method Summary
 Object correctDatabaseObject(Object object, int datatype)
          Returns an object of the appropriate type for insertion into the database.
 
Methods inherited from class planetj.database.DBSystem
createLibrary, createSystem, createSystem, createSystem, createSystem, getAlias, getAllLibraries, getCache, getColumnIndicationCharacter, getDefaultDateFormat, getDefaultLibraryName, getFieldClassForSQLTypeName, getIPAddress, getLibraries, getLibrary, getLibrary, getLibrarySupportLevel, getMetaDataAlias, getMetaDataSystem, getName, getProperties, getSQLTypeNames, getSupportedDataType, getSystem, getURL, getXMLData, isBackgroundThreadsSupported, isDefaultLibraryOmitted, isDelegateToPersonal, isHasAllLibraries, removeLibrary, setDelegateToPersonal, setProperties, startRetrieveAllLibrariesTask, taskCompleted, taskFailed, taskStarted, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REMOTE_DRIVER

public static final String REMOTE_DRIVER
Remote db2 driver

See Also:
Constant Field Values

LOCAL_DRIVER

public static final String LOCAL_DRIVER
Local db2 driver

See Also:
Constant Field Values
Method Detail

correctDatabaseObject

public Object correctDatabaseObject(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