|
||||||||||
| 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.DerbyDBAccess
public class DerbyDBAccess
The DerbyDBAccess is the implementation for Derby databases. Client driver version.
DBAccess| Field Summary |
|---|
| Fields inherited from class com.sibvisions.rad.persist.jdbc.DBAccess |
|---|
logger, LONGNVARCHAR, NCHAR, NCLOB, NVARCHAR, SQLXML |
| Constructor Summary | |
|---|---|
DerbyDBAccess()
Constructs a new DerbyDBAccess Object. |
|
| Method Summary | |
|---|---|
Hashtable<String,Object> |
getDefaultValues(String pCatalog,
String pSchema,
String pTable)
Gets all default column values of a specific table. |
boolean |
supportsGetGeneratedKeys()
Returns if this Database specific supports generated keys. |
protected Object |
translateDefaultValue(String pColumnName,
int pDataType,
String pDefaultValue)
Translates a default value from a column to the datatype object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DerbyDBAccess()
| Method Detail |
|---|
public boolean supportsGetGeneratedKeys()
supportsGetGeneratedKeys in class DBAccess
public Hashtable<String,Object> getDefaultValues(String pCatalog,
String pSchema,
String pTable)
throws DataSourceException
getDefaultValues 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 exception
protected Object translateDefaultValue(String pColumnName,
int pDataType,
String pDefaultValue)
throws Exception
translateDefaultValue in class DBAccesspColumnName - the column name to translatepDataType - the datatype of the columnpDefaultValue - the original default value from the database
null if the default value is not valid
Exception - if the type translation causes an error or the datatype is not supported
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||