public class SQLiteAdapter extends JdbcAdapter
sqlite.jdbc.url = jdbc:sqlite:sqlitetest.db
sqlite.jdbc.driver = org.sqlite.JDBC
batchQueryBuilderFactory, caseInsensitiveCollations, CI_PROPERTY, ejbqlTranslatorFactory, extendedTypes, identifiersEndQuote, identifiersStartQuote, logger, resourceLocator, supportsBatchUpdates, supportsGeneratedKeys, supportsUniqueConstraints, typesHandler| Constructor and Description |
|---|
SQLiteAdapter(RuntimeProperties runtimeProperties,
List<ExtendedType> defaultExtendedTypes,
List<ExtendedType> userExtendedTypes,
List<ExtendedTypeFactory> extendedTypeFactories) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureExtendedTypes(ExtendedTypeMap map)
Called from
JdbcAdapter.initExtendedTypes(List, List, List) to load adapter-specific
types into the ExtendedTypeMap right after the default types are loaded, but before
the DI overrides are. |
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.
|
bindParameter, buildAttribute, createEJBQLTranslatorFactory, createPkGenerator, createTable, dropTableStatements, externalTypesForJdbcType, findResource, getBatchQueryBuilderFactory, getBatchTerminator, getEjbqlTranslatorFactory, getExtendedTypes, getIdentifiersEndQuote, getIdentifiersStartQuote, getJdbcEventLogger, getPkGenerator, getQualifierTranslator, getQuotingStrategy, initExtendedTypes, initIdentifiersQuotes, mergerFactory, setBatchQueryBuilderFactory, setEjbqlTranslatorFactory, setPkGenerator, setSupportsBatchUpdates, setSupportsGeneratedKeys, setSupportsUniqueConstraints, supportsBatchUpdates, supportsGeneratedKeys, supportsUniqueConstraints, tableTypeForTable, tableTypeForView, typeSupportsLengthpublic SQLiteAdapter(RuntimeProperties runtimeProperties, List<ExtendedType> defaultExtendedTypes, List<ExtendedType> userExtendedTypes, List<ExtendedTypeFactory> extendedTypeFactories)
protected void configureExtendedTypes(ExtendedTypeMap map)
JdbcAdapterJdbcAdapter.initExtendedTypes(List, List, List) to load adapter-specific
types into the ExtendedTypeMap right after the default types are loaded, but before
the DI overrides are. This method has specific implementations in JdbcAdapter
subclasses.configureExtendedTypes in class JdbcAdapterpublic String createFkConstraint(DbRelationship rel)
JdbcAdaptercreateFkConstraint in interface DbAdaptercreateFkConstraint in class JdbcAdapterpublic String createUniqueConstraint(DbEntity source, Collection<DbAttribute> columns)
JdbcAdaptercreateUniqueConstraint in interface DbAdaptercreateUniqueConstraint in class JdbcAdapterpublic SQLAction getAction(Query query, DataNode node)
JdbcAdaptergetAction in interface DbAdaptergetAction in class JdbcAdapterpublic 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 forprotected void createTableAppendPKClause(StringBuffer sqlBuffer, DbEntity entity)
createTableAppendPKClause in class JdbcAdapterCopyright © 2001–2018 Apache Cayenne. All rights reserved.