liquibase.database.core
Class SQLiteDatabase
java.lang.Object
liquibase.database.AbstractJdbcDatabase
liquibase.database.core.SQLiteDatabase
- All Implemented Interfaces:
- Database, PrioritizedService
public class SQLiteDatabase
- extends AbstractJdbcDatabase
Fields inherited from class liquibase.database.AbstractJdbcDatabase |
currentDateTimeFunction, dateFunctions, defaultAutoIncrementBy, defaultAutoIncrementStartWith, quotingEndCharacter, quotingStartCharacter, quotingStrategy, sequenceCurrentValueFunction, sequenceNextValueFunction, unmodifiableDataTypes, unquotedObjectsAreUppercased |
Methods inherited from class liquibase.database.AbstractJdbcDatabase |
canCreateChangeLogTable, checkDatabaseChangeLogLockTable, checkDatabaseChangeLogTable, close, commit, correctObjectName, correctSchema, correctSchema, dataTypeIsNotModifiable, disableForeignKeyChecks, doesTagExist, doGetDefaultCatalogName, doGetDefaultSchemaName, dropDatabaseObjects, enableForeignKeyChecks, equals, escapeColumnName, escapeColumnNameList, escapeConstraintName, escapeIndexName, escapeObjectName, escapeObjectName, escapeSequenceName, escapeStringForDatabase, escapeTableName, escapeViewName, execute, executeRollbackStatements, executeStatements, generateDatabaseFunctionValue, generatePrimaryKeyName, getAutoCommitMode, getAutoIncrementByClause, getAutoIncrementClause, getAutoIncrementClosing, getAutoIncrementOpening, getAutoIncrementStartWithClause, getConcatSql, getConnection, getContainingObjects, getCurrentDateTimeFunction, getDatabaseChangeLogLockTableName, getDatabaseChangeLogTableName, getDatabaseMajorVersion, getDatabaseMinorVersion, getDatabaseProductName, getDatabaseProductVersion, getDataTypeMaxParameters, getDateFunctions, getDateLiteral, getDateLiteral, getDateLiteral, getDefaultCatalogName, getDefaultSchema, getDefaultSchemaName, getJdbcCatalogName, getJdbcCatalogName, getJdbcSchemaName, getJdbcSchemaName, getLineComment, getLiquibaseCatalogName, getLiquibaseSchemaName, getLiquibaseTablespaceName, getName, getNextChangeSetSequenceValue, getObjectQuotingStrategy, getRanChangeSet, getRanChangeSetList, getRanDate, getRunStatus, getSchemaFromJdbcInfo, getSystemTables, getTimeLiteral, hasDatabaseChangeLogLockTable, hasDatabaseChangeLogTable, hashCode, isAutoCommit, isCaseSensitive, isDateOnly, isDateTime, isFunction, isLiquibaseObject, isReservedWord, isSafeToRunUpdate, isSystemObject, isSystemView, isTimeOnly, jdbcCallsCatalogsSchemas, markChangeSetExecStatus, parseDate, removeRanStatus, requiresPassword, requiresUsername, resetInternalState, resetRanChangeSetList, rollback, saveRollbackStatement, saveStatements, setAutoCommit, setCanCacheLiquibaseTableInfo, setConnection, setCurrentDateTimeFunction, setDatabaseChangeLogLockTableName, setDatabaseChangeLogTableName, setDefaultCatalogName, setDefaultSchemaName, setLiquibaseTablespaceName, setObjectQuotingStrategy, startsWithNumeric, supportsAutoIncrement, supportsCatalogInObjectName, supportsCatalogs, supportsDDLInTransaction, supportsDropTableCascadeConstraints, supportsForeignKeyDisable, supportsRestrictForeignKeys, tag, toString |
PRODUCT_NAME
public static final String PRODUCT_NAME
- See Also:
- Constant Field Values
SQLiteDatabase
public SQLiteDatabase()
getDefaultDriver
public String getDefaultDriver(String url)
- Description copied from interface:
Database
- If this database understands the given url, return the default driver class name. Otherwise return null.
getPriority
public int getPriority()
getShortName
public String getShortName()
- Description copied from interface:
Database
- Returns an all-lower-case short name of the product. Used for end-user selecting of database type
such as the DBMS precondition.
getDefaultDatabaseProductName
protected String getDefaultDatabaseProductName()
- Specified by:
getDefaultDatabaseProductName
in class AbstractJdbcDatabase
getDefaultPort
public Integer getDefaultPort()
isCorrectDatabaseImplementation
public boolean isCorrectDatabaseImplementation(DatabaseConnection conn)
throws DatabaseException
- Description copied from interface:
Database
- Is this AbstractDatabase subclass the correct one to use for the given connection.
- Throws:
DatabaseException
supportsInitiallyDeferrableColumns
public boolean supportsInitiallyDeferrableColumns()
- Description copied from interface:
Database
- Returns whether this database support initially deferrable columns.
supportsTablespaces
public boolean supportsTablespaces()
getViewDefinition
public String getViewDefinition(CatalogAndSchema schema,
String viewName)
throws DatabaseException
- Specified by:
getViewDefinition
in interface Database
- Overrides:
getViewDefinition
in class AbstractJdbcDatabase
- Throws:
DatabaseException
supportsSequences
public boolean supportsSequences()
- Description copied from class:
AbstractJdbcDatabase
- Does the database type support sequence.
- Specified by:
supportsSequences
in interface Database
- Overrides:
supportsSequences
in class AbstractJdbcDatabase
supportsSchemas
public boolean supportsSchemas()
- Specified by:
supportsSchemas
in interface Database
- Overrides:
supportsSchemas
in class AbstractJdbcDatabase
getTrigger
public String getTrigger(String table,
String column)
getAutoIncrementClause
public String getAutoIncrementClause()
- Overrides:
getAutoIncrementClause
in class AbstractJdbcDatabase
generateAutoIncrementStartWith
protected boolean generateAutoIncrementStartWith(BigInteger startWith)
- Overrides:
generateAutoIncrementStartWith
in class AbstractJdbcDatabase
generateAutoIncrementBy
protected boolean generateAutoIncrementBy(BigInteger incrementBy)
- Overrides:
generateAutoIncrementBy
in class AbstractJdbcDatabase
getAlterTableStatements
public static List<SqlStatement> getAlterTableStatements(SQLiteDatabase.AlterTableVisitor alterTableVisitor,
Database database,
String catalogName,
String schemaName,
String tableName)
throws DatabaseException
- Throws:
DatabaseException
getSystemViews
protected Set<String> getSystemViews()
- Description copied from class:
AbstractJdbcDatabase
- Returns system (undroppable) views.
- Overrides:
getSystemViews
in class AbstractJdbcDatabase
getDateTimeLiteral
public String getDateTimeLiteral(Timestamp date)
- Specified by:
getDateTimeLiteral
in interface Database
- Overrides:
getDateTimeLiteral
in class AbstractJdbcDatabase
Copyright © 2013 Liquibase.org. All Rights Reserved.