Search in sources :

Example 16 with SchemaModifier

use of io.requery.sql.SchemaModifier in project requery by requery.

the class DatabaseSource method onCreate.

@Override
public void onCreate(SQLiteDatabase db) {
    this.db = db;
    new SchemaModifier(getConfiguration()).createTables(TableCreationMode.CREATE);
}
Also used : SchemaModifier(io.requery.sql.SchemaModifier)

Example 17 with SchemaModifier

use of io.requery.sql.SchemaModifier in project requery by requery.

the class SqlCipherDatabaseSource method onCreate.

@Override
public void onCreate(SQLiteDatabase db) {
    this.db = db;
    new SchemaModifier(getConfiguration()).createTables(TableCreationMode.CREATE);
}
Also used : SchemaModifier(io.requery.sql.SchemaModifier)

Aggregations

SchemaModifier (io.requery.sql.SchemaModifier)17 EntityModel (io.requery.meta.EntityModel)13 Configuration (io.requery.sql.Configuration)12 ConfigurationBuilder (io.requery.sql.ConfigurationBuilder)12 CommonDataSource (javax.sql.CommonDataSource)12 Before (org.junit.Before)12 EntityCacheBuilder (io.requery.cache.EntityCacheBuilder)6 Platform (io.requery.sql.Platform)5 HSQL (io.requery.sql.platform.HSQL)5 CacheManager (javax.cache.CacheManager)5 CachingProvider (javax.cache.spi.CachingProvider)5 EntityDataStore (io.requery.sql.EntityDataStore)4 EmptyEntityCache (io.requery.cache.EmptyEntityCache)3 TableCreationMode (io.requery.sql.TableCreationMode)3 SQLite (io.requery.sql.platform.SQLite)3 SQLException (java.sql.SQLException)3 Cursor (android.database.Cursor)1 TransactionIsolation (io.requery.TransactionIsolation)1 TransactionListener (io.requery.TransactionListener)1 WeakEntityCache (io.requery.cache.WeakEntityCache)1