Class SQLiteSchema
- java.lang.Object
-
- migratedb.core.internal.database.base.BaseSchema<SQLiteDatabase,SQLiteTable>
-
- migratedb.core.internal.database.sqlite.SQLiteSchema
-
- All Implemented Interfaces:
Schema<SQLiteDatabase,SQLiteTable>
public class SQLiteSchema extends BaseSchema<SQLiteDatabase,SQLiteTable>
SQLite implementation of Schema.
-
-
Field Summary
-
Fields inherited from class migratedb.core.internal.database.base.BaseSchema
database, jdbcTemplate, name
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SQLiteTable[]doAllTables()Retrieves all the tables in this schema.protected voiddoClean()Cleans all the objects in this schema.protected voiddoCreate()Creates this schema in the database.protected voiddoDrop()Drops this schema from the database.protected booleandoEmpty()Checks whether this schema is empty.protected booleandoExists()Checks whether this schema exists.booleangetForeignKeysEnabled()Table<?,?>getTable(String tableName)Retrieves the table with this name in this schema.-
Methods inherited from class migratedb.core.internal.database.base.BaseSchema
allFunctions, allTables, allTypes, clean, create, doAllFunctions, drop, empty, equals, exists, getFunction, getName, getType, hashCode, toString
-
-
-
-
Method Detail
-
doExists
protected boolean doExists() throws SQLExceptionDescription copied from class:BaseSchemaChecks whether this schema exists.- Specified by:
doExistsin classBaseSchema<SQLiteDatabase,SQLiteTable>- Throws:
SQLException- when the check failed.
-
doEmpty
protected boolean doEmpty()
Description copied from class:BaseSchemaChecks whether this schema is empty.- Specified by:
doEmptyin classBaseSchema<SQLiteDatabase,SQLiteTable>
-
doCreate
protected void doCreate()
Description copied from class:BaseSchemaCreates this schema in the database.- Specified by:
doCreatein classBaseSchema<SQLiteDatabase,SQLiteTable>
-
doDrop
protected void doDrop()
Description copied from class:BaseSchemaDrops this schema from the database.- Specified by:
doDropin classBaseSchema<SQLiteDatabase,SQLiteTable>
-
doClean
protected void doClean() throws SQLExceptionDescription copied from class:BaseSchemaCleans all the objects in this schema.- Specified by:
doCleanin classBaseSchema<SQLiteDatabase,SQLiteTable>- Throws:
SQLException- when the clean failed.
-
doAllTables
protected SQLiteTable[] doAllTables() throws SQLException
Description copied from class:BaseSchemaRetrieves all the tables in this schema.- Specified by:
doAllTablesin classBaseSchema<SQLiteDatabase,SQLiteTable>- Throws:
SQLException- when the retrieval failed.
-
getTable
public Table<?,?> getTable(String tableName)
Description copied from interface:SchemaRetrieves the table with this name in this schema.
-
getForeignKeysEnabled
public boolean getForeignKeysEnabled()
-
-