Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cayenne.dba.sqlite
Class SQLiteAdapter

    java.lang.Object
      org.apache.cayenne.dba.JdbcAdapter
          org.apache.cayenne.dba.sqlite.SQLiteAdapter

All Implemented Interfaces:
  DbAdapter

    public class SQLiteAdapter

extends JdbcAdapter

A SQLite database adapter that works with Zentus JDBC driver. See http://www.zentus.com/sqlitejdbc/ for the driver information.

Since:
  3.0
Author:
  Andrus Adamchik

Field Summary

Fields inherited from class org.apache.cayenne.dba.JdbcAdapter
`ejbqlTranslatorFactory, extendedTypes, 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.
`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 org.apache.cayenne.dba.JdbcAdapter
`bindParameter, buildAttribute, createEJBQLTranslatorFactory, createPkGenerator, createTable, createTableAppendColumn, createTableAppendPKClause, dropTable, dropTableStatements, externalTypesForJdbcType, findAdapterResource, getBatchTerminator, getEjbqlTranslatorFactory, getExtendedTypes, getPkGenerator, getQualifierTranslator, mergerFactory, setEjbqlTranslatorFactory, setPkGenerator, setSupportsBatchUpdates, setSupportsFkConstraints, setSupportsGeneratedKeys, setSupportsUniqueConstraints, supportsBatchUpdates, supportsFkConstraints, supportsGeneratedKeys, supportsUniqueConstraints, tableTypeForTable, tableTypeForView`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### SQLiteAdapter

    public SQLiteAdapter()

Method Detail

### configureExtendedTypes

    protected void configureExtendedTypes(ExtendedTypeMap map)

  Description copied from class: `JdbcAdapter`
  Installs appropriate ExtendedTypes as converters for passing values between JDBC and Java layers. Called from default constructor.

  Overrides:
    `configureExtendedTypes` in class `JdbcAdapter`

### createFkConstraint

    public String createFkConstraint(DbRelationship rel)

  Description copied from class: `JdbcAdapter`
  Returns a SQL string that can be used to create a foreign key constraint for the relationship.

  Specified by:
    `createFkConstraint` in interface `DbAdapter`
  Overrides:
    `createFkConstraint` in class `JdbcAdapter`

### createUniqueConstraint

    public String createUniqueConstraint(DbEntity source,
                                         Collection<DbAttribute> columns)

  Description copied from class: `JdbcAdapter`
  Returns a DDL string to create a unique constraint over a set of columns.

  Specified by:
    `createUniqueConstraint` in interface `DbAdapter`
  Overrides:
    `createUniqueConstraint` in class `JdbcAdapter`

### getAction

    public SQLAction getAction(Query query,
                               DataNode node)

  Description copied from class: `JdbcAdapter`
  Uses JdbcActionBuilder to create the right action.

  Specified by:
    `getAction` in interface `DbAdapter`
  Overrides:
    `getAction` in class `JdbcAdapter`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2008 Apache Cayenne. All Rights Reserved.