public class SQLiteAdapter extends JdbcAdapter
sqlite.jdbc.url = jdbc:sqlite:sqlitetest.db
sqlite.jdbc.driver = org.sqlite.JDBC
batchQueryBuilderFactory, caseInsensitiveCollations, ejbqlTranslatorFactory, extendedTypes, logger, quotingStrategy, resourceLocator, supportsBatchUpdates, supportsGeneratedKeys, supportsUniqueConstraints, typesHandler| Constructor and Description |
|---|
SQLiteAdapter(RuntimeProperties runtimeProperties,
List<ExtendedType> defaultExtendedTypes,
List<ExtendedType> userExtendedTypes,
List<ExtendedTypeFactory> extendedTypeFactories,
ResourceLocator resourceLocator,
ValueObjectTypeRegistry valueObjectTypeRegistry) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureExtendedTypes(ExtendedTypeMap map)
Called from
JdbcAdapter.initExtendedTypes(List, List, List, ValueObjectTypeRegistry) 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.
|
QualifierTranslator |
getQualifierTranslator(QueryAssembler queryAssembler)
Creates and returns a default implementation of a qualifier translator.
|
bindParameter, buildAttribute, createEJBQLTranslatorFactory, createPkGenerator, createQuotingStrategy, createTable, dropTableStatements, externalTypesForJdbcType, findResource, getBatchQueryBuilderFactory, getBatchTerminator, getEjbqlTranslatorFactory, getExtendedTypes, getJdbcEventLogger, getPkGenerator, getQuotingStrategy, getQuotingStrategy, getSelectTranslator, getType, initExtendedTypes, setBatchQueryBuilderFactory, setEjbqlTranslatorFactory, setPkGenerator, setSupportsBatchUpdates, setSupportsGeneratedKeys, setSupportsUniqueConstraints, sizeAndPrecision, supportsBatchUpdates, supportsCatalogsOnReverseEngineering, supportsGeneratedKeys, supportsUniqueConstraints, tableTypeForTable, tableTypeForView, typeSupportsLength, unwrappublic SQLiteAdapter(RuntimeProperties runtimeProperties, List<ExtendedType> defaultExtendedTypes, List<ExtendedType> userExtendedTypes, List<ExtendedTypeFactory> extendedTypeFactories, ResourceLocator resourceLocator, ValueObjectTypeRegistry valueObjectTypeRegistry)
protected void configureExtendedTypes(ExtendedTypeMap map)
JdbcAdapterJdbcAdapter.initExtendedTypes(List, List, List, ValueObjectTypeRegistry) 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 QualifierTranslator getQualifierTranslator(QueryAssembler queryAssembler)
JdbcAdaptergetQualifierTranslator in interface DbAdaptergetQualifierTranslator 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–2023 Apache Cayenne. All rights reserved.