|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cayenne.dba.JdbcAdapter
org.apache.cayenne.dba.sqlite.SQLiteAdapter
public class SQLiteAdapter
A SQLite database adapter that works with Zentus JDBC driver. See http://www.zentus.com/sqlitejdbc/ for the driver information.
sqlite.cayenne.adapter = org.apache.cayenne.dba.sqlite.SQLiteAdapter
sqlite.jdbc.url = jdbc:sqlite:sqlitetest.db
sqlite.jdbc.driver = org.sqlite.JDBC
| Field Summary |
|---|
| Fields inherited from class org.apache.cayenne.dba.JdbcAdapter |
|---|
ejbqlTranslatorFactory, extendedTypes, identifiersEndQuote, identifiersStartQuote, pkGenerator, supportsBatchUpdates, supportsFkConstraints, supportsGeneratedKeys, supportsUniqueConstraints, typesHandler |
| Constructor Summary | |
|---|---|
SQLiteAdapter()
|
|
| Method Summary | |
|---|---|
protected void |
configureExtendedTypes(ExtendedTypeMap map)
Installs appropriate ExtendedTypes as converters for passing values between JDBC and Java layers. |
String |
createFkConstraint(DbRelationship rel)
Returns a SQL string that can be used to create a foreign key constraint for the relationship. |
void |
createTableAppendColumn(StringBuffer sqlBuffer,
DbAttribute column)
Appends AUTOINCREMENT clause to the column definition for generated columns. |
protected void |
createTableAppendPKClause(StringBuffer sqlBuffer,
DbEntity entity)
|
String |
createUniqueConstraint(DbEntity source,
Collection<DbAttribute> columns)
Returns a DDL string to create a unique constraint over a set of columns. |
SQLAction |
getAction(Query query,
DataNode node)
Uses JdbcActionBuilder to create the right action. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SQLiteAdapter()
| Method Detail |
|---|
protected void configureExtendedTypes(ExtendedTypeMap map)
JdbcAdapter
configureExtendedTypes in class JdbcAdapterpublic String createFkConstraint(DbRelationship rel)
JdbcAdapter
createFkConstraint in interface DbAdaptercreateFkConstraint in class JdbcAdapter
public String createUniqueConstraint(DbEntity source,
Collection<DbAttribute> columns)
JdbcAdapter
createUniqueConstraint in interface DbAdaptercreateUniqueConstraint in class JdbcAdapter
public SQLAction getAction(Query query,
DataNode node)
JdbcAdapter
getAction in interface DbAdaptergetAction in class JdbcAdapter
public void createTableAppendColumn(StringBuffer sqlBuffer,
DbAttribute column)
createTableAppendColumn in interface DbAdaptercreateTableAppendColumn in class JdbcAdaptersqlBuffer - the StringBuffer to append the column type tocolumn - the DbAttribute defining the column to append type for
protected void createTableAppendPKClause(StringBuffer sqlBuffer,
DbEntity entity)
createTableAppendPKClause in class JdbcAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||