|
||||||||||
| 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.SQLiteDBAccess
public class SQLiteDBAccess
The SQLiteDBAccess is the implementation for the SQLite database.
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 |
|---|
LONGNVARCHAR, NCHAR, NCLOB, NVARCHAR, QUOTE, SQLXML, TIMESTAMPWITHLOCALTIMEZONE, TIMESTAMPWITHTIMEZONE |
| Constructor Summary | |
|---|---|
SQLiteDBAccess()
Creates a new instance of SQLiteDBAccess. |
|
| Method Summary | |
|---|---|
protected TableInfo |
getTableInfoIntern(String pWriteBackTable)
Returns the meta data information for the specified query, and configures all columns with defaults. |
boolean |
isAutoQuote(String pName)
It returns true if this name should be automated quoted. |
protected void |
prepareConnection(Connection pConnection)
Prepares the given Connection for being used by this
DBAccess. |
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 SQLiteDBAccess()
SQLiteDBAccess.
| Method Detail |
|---|
public boolean isAutoQuote(String pName)
isAutoQuote in class DBAccesspName - the name to quote.
protected TableInfo getTableInfoIntern(String pWriteBackTable)
throws DataSourceException
getTableInfoIntern in class DBAccesspWriteBackTable - the write back table to use for the isWriteable() state (Optional)
DataSourceException - if an Exception occur during getting the meta data or
if the storage is not opened or
if one columns SQL type is not supported
protected void prepareConnection(Connection pConnection)
throws SQLException
Connection for being used by this
DBAccess.
prepareConnection in class DBAccesspConnection - the Connection to configure.
SQLException - if the configuring the Connection fails.
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 | |||||||||