|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectliquibase.database.AbstractDatabase
liquibase.database.core.SQLiteDatabase
public class SQLiteDatabase
| Nested Class Summary | |
|---|---|
static interface |
SQLiteDatabase.AlterTableVisitor
|
| Field Summary | |
|---|---|
static java.lang.String |
PRODUCT_NAME
|
| Fields inherited from class liquibase.database.AbstractDatabase |
|---|
currentDateTimeFunction, databaseFunctions, defaultAutoIncrementBy, defaultAutoIncrementStartWith |
| Fields inherited from interface liquibase.servicelocator.PrioritizedService |
|---|
PRIORITY_DATABASE, PRIORITY_DEFAULT |
| Constructor Summary | |
|---|---|
SQLiteDatabase()
|
|
| Method Summary | |
|---|---|
protected boolean |
generateAutoIncrementBy(java.math.BigInteger incrementBy)
|
protected boolean |
generateAutoIncrementStartWith(java.math.BigInteger startWith)
|
static java.util.List<SqlStatement> |
getAlterTableStatements(SQLiteDatabase.AlterTableVisitor alterTableVisitor,
Database database,
java.lang.String schemaName,
java.lang.String tableName)
|
java.lang.String |
getAutoIncrementClause()
|
java.lang.String |
getCurrentDateTimeFunction()
Returns database-specific function for generating the current date/time. |
java.lang.String |
getDateTimeLiteral(java.sql.Timestamp date)
|
java.lang.String |
getDefaultDriver(java.lang.String url)
If this database understands the given url, return the default driver class name. |
int |
getPriority()
|
protected java.util.Set<java.lang.String> |
getSystemTablesAndViews()
Returns system (undroppable) tables and views. |
java.lang.String |
getTrigger(java.lang.String table,
java.lang.String column)
|
java.lang.String |
getTypeName()
Returns an all-lower-case short name of the product. |
java.lang.String |
getViewDefinition(java.lang.String schemaName,
java.lang.String viewName)
|
boolean |
isCorrectDatabaseImplementation(DatabaseConnection conn)
Is this AbstractDatabase subclass the correct one to use for the given connection. |
boolean |
supportsInitiallyDeferrableColumns()
Returns whether this database support initially deferrable columns. |
boolean |
supportsSchemas()
|
boolean |
supportsSequences()
Does the database type support sequence. |
boolean |
supportsTablespaces()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PRODUCT_NAME
| Constructor Detail |
|---|
public SQLiteDatabase()
| Method Detail |
|---|
public java.lang.String getCurrentDateTimeFunction()
Database
public java.lang.String getDefaultDriver(java.lang.String url)
Database
public int getPriority()
public java.lang.String getTypeName()
Database
public boolean isCorrectDatabaseImplementation(DatabaseConnection conn)
throws DatabaseException
Database
DatabaseExceptionpublic boolean supportsInitiallyDeferrableColumns()
Database
public boolean supportsTablespaces()
public java.lang.String getViewDefinition(java.lang.String schemaName,
java.lang.String viewName)
throws DatabaseException
getViewDefinition in interface DatabasegetViewDefinition in class AbstractDatabaseDatabaseExceptionpublic boolean supportsSequences()
AbstractDatabase
supportsSequences in interface DatabasesupportsSequences in class AbstractDatabasepublic boolean supportsSchemas()
supportsSchemas in interface DatabasesupportsSchemas in class AbstractDatabase
public java.lang.String getTrigger(java.lang.String table,
java.lang.String column)
public java.lang.String getAutoIncrementClause()
getAutoIncrementClause in class AbstractDatabaseprotected boolean generateAutoIncrementStartWith(java.math.BigInteger startWith)
generateAutoIncrementStartWith in class AbstractDatabaseprotected boolean generateAutoIncrementBy(java.math.BigInteger incrementBy)
generateAutoIncrementBy in class AbstractDatabase
public static java.util.List<SqlStatement> getAlterTableStatements(SQLiteDatabase.AlterTableVisitor alterTableVisitor,
Database database,
java.lang.String schemaName,
java.lang.String tableName)
throws UnsupportedChangeException,
DatabaseException
UnsupportedChangeException
DatabaseExceptionprotected java.util.Set<java.lang.String> getSystemTablesAndViews()
AbstractDatabase
getSystemTablesAndViews in class AbstractDatabasepublic java.lang.String getDateTimeLiteral(java.sql.Timestamp date)
getDateTimeLiteral in interface DatabasegetDateTimeLiteral in class AbstractDatabase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||