|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--planetj.database.DBSystem | +--planetj.database.MSAccessDBSystem
Represents a Microsoft Access database
Field Summary | |
static String |
ODBC_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. |
Library |
createLibrary(String pLibraryName)
Gets the Library with the given name. |
static void |
export(RowCollection rc,
MSAccessDescriptor descriptor)
Writes out the RowCollection to an MS Access file |
Library |
getLibrary(String pLibraryName,
boolean pCreate)
Get the DBSystem's Library with the given name. |
byte |
getLibrarySupportLevel()
Gets the level of library support; this is one of the constants defined in the class. |
int |
getSupportedDataType(int datatype)
Returns the equivalent supported datatype for a specified datatype. |
boolean |
isBackgroundThreadsSupported()
Override this method to return false if this system does not support background threads |
boolean |
isDefaultLibraryOmitted()
Tests if the default library should be included in SQL statements sent to the DB (if the statement operates on the default library). |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String ODBC_DRIVER
Method Detail |
public Object correctDatabaseObject(Object object, int datatype)
correctDatabaseObject
in class DBSystem
object
- The object to be inserted into the databasedatatype
- The datatype of the database field
public Library createLibrary(String pLibraryName)
createLibrary
in class DBSystem
pLibraryName
- name of Library
public static void export(RowCollection rc, MSAccessDescriptor descriptor) throws CMException
CMException
public Library getLibrary(String pLibraryName, boolean pCreate)
getLibrary
in class DBSystem
pLibraryName
- The name of the library to getpCreate
- Whether or not the library should be created if it doesn't exist
public byte getLibrarySupportLevel()
getLibrarySupportLevel
in class DBSystem
public int getSupportedDataType(int datatype)
If the supplied datatype is supported, then that same datatype is returned.
getSupportedDataType
in class DBSystem
public boolean isBackgroundThreadsSupported()
isBackgroundThreadsSupported
in class DBSystem
public boolean isDefaultLibraryOmitted()
isDefaultLibraryOmitted
in class DBSystem
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |