|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.rad.persist.jdbc.DBAccess
com.sibvisions.rad.persist.jdbc.HSQLDBAccess
public class HSQLDBAccess
The HSQLDBAccess is the implementation for Hypersonic SQL databases.
DBAccess| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.sibvisions.rad.persist.jdbc.DBAccess |
|---|
DBAccess.BlobFileHandle, DBAccess.ParameterizedStatement |
| Field Summary |
|---|
| Fields inherited from class com.sibvisions.rad.persist.jdbc.DBAccess |
|---|
BFILE, LONGNVARCHAR, NCHAR, NCLOB, NVARCHAR, QUOTE, SQLXML, TIMESTAMPWITHLOCALTIMEZONE, TIMESTAMPWITHTIMEZONE |
| Constructor Summary | |
|---|---|
HSQLDBAccess()
Constructs a new HSQLDBAccess Object. |
|
| Method Summary | |
|---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
getDefaultValuesIntern(java.lang.String pCatalog,
java.lang.String pSchema,
java.lang.String pTable)
Gets all default column values of a specific table. |
protected java.util.List<ForeignKey> |
getForeignKeysIntern(java.lang.String sCatalog,
java.lang.String sSchema,
java.lang.String pTable)
Returns all Foreign Keys for the specified table. |
protected Key |
getPrimaryKeyIntern(java.lang.String sCatalog,
java.lang.String sSchema,
java.lang.String pTable)
It's gets all Primary Key columns and return it as String[]. |
protected java.util.List<Key> |
getUniqueKeysIntern(java.lang.String sCatalog,
java.lang.String sSchema,
java.lang.String pTable)
It gets all columns for each Unique Key and return it. |
java.lang.String |
getWritebackTable(java.lang.String pWritebackTable)
Returns the WritebackTable as toUpper, because of the meta data bug in HSQL. |
protected java.lang.Object[] |
insertDatabaseSpecific(java.lang.String pWritebackTable,
java.lang.String pInsertStatement,
ServerMetaData pServerMetaData,
java.lang.Object[] pNewDataRow,
java.lang.String pDummyColumn)
Returns the newly inserted row from a Database specific insert statement. |
void |
open()
It opens the database and stores the Connection object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HSQLDBAccess()
| Method Detail |
|---|
public void open()
throws DataSourceException
Connection object.
open in class DBAccessDataSourceException - if the database couldn't opened
protected Key getPrimaryKeyIntern(java.lang.String sCatalog,
java.lang.String sSchema,
java.lang.String pTable)
throws DataSourceException
getPrimaryKeyIntern in class DBAccesssCatalog - the catalog to usesSchema - the schema to usepTable - the table to use
DataSourceException - if an error occur during PK search process.
protected java.util.List<ForeignKey> getForeignKeysIntern(java.lang.String sCatalog,
java.lang.String sSchema,
java.lang.String pTable)
throws DataSourceException
getForeignKeysIntern in class DBAccesssCatalog - the catalog to usesSchema - the schema to usepTable - the table to use as base table.
DataSourceException - if an error occur in determining the ForeignKeys.
protected java.util.List<Key> getUniqueKeysIntern(java.lang.String sCatalog,
java.lang.String sSchema,
java.lang.String pTable)
throws DataSourceException
getUniqueKeysIntern in class DBAccesssCatalog - the catalog to usesSchema - the schema to usepTable - the table to use
DataSourceException - if an error occur during UK search process.
protected java.lang.Object[] insertDatabaseSpecific(java.lang.String pWritebackTable,
java.lang.String pInsertStatement,
ServerMetaData pServerMetaData,
java.lang.Object[] pNewDataRow,
java.lang.String pDummyColumn)
throws DataSourceException
insertDatabaseSpecific in class DBAccesspWritebackTable - the table to use for the insertpInsertStatement - the SQL Statement to use for the insertpServerMetaData - the meta data to use.pNewDataRow - the new row (Object[]) with the values to insertpDummyColumn - null, if all writeable columns are null, but for a correct INSERT it have
to be minimum one column to use in the syntax.
DataSourceException - if an Exception occur during insert to the storage
protected java.util.Map<java.lang.String,java.lang.Object> getDefaultValuesIntern(java.lang.String pCatalog,
java.lang.String pSchema,
java.lang.String pTable)
throws DataSourceException
getDefaultValuesIntern in class DBAccesspCatalog - the catalog namepSchema - the schema namepTable - the table name
Hashtable with the column name as key and the default value as value. It only contains columns
with a default value
DataSourceException - if the database access throws an exceptionpublic java.lang.String getWritebackTable(java.lang.String pWritebackTable)
pWritebackTable - the write back tabel to use.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||