|
||||||||||
| 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 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(BigInteger incrementBy)
|
protected boolean |
generateAutoIncrementStartWith(BigInteger startWith)
|
static List<SqlStatement> |
getAlterTableStatements(SQLiteDatabase.AlterTableVisitor alterTableVisitor,
Database database,
String schemaName,
String tableName)
|
String |
getAutoIncrementClause()
|
String |
getCurrentDateTimeFunction()
Returns database-specific function for generating the current date/time. |
String |
getDateTimeLiteral(Timestamp date)
|
String |
getDefaultDriver(String url)
If this database understands the given url, return the default driver class name. |
int |
getPriority()
|
protected Set<String> |
getSystemTablesAndViews()
Returns system (undroppable) tables and views. |
String |
getTrigger(String table,
String column)
|
String |
getTypeName()
Returns an all-lower-case short name of the product. |
String |
getViewDefinition(String schemaName,
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 String PRODUCT_NAME
| Constructor Detail |
|---|
public SQLiteDatabase()
| Method Detail |
|---|
public String getCurrentDateTimeFunction()
Database
public String getDefaultDriver(String url)
Database
public int getPriority()
public String getTypeName()
Database
public boolean isCorrectDatabaseImplementation(DatabaseConnection conn)
throws DatabaseException
Database
DatabaseExceptionpublic boolean supportsInitiallyDeferrableColumns()
Database
public boolean supportsTablespaces()
public String getViewDefinition(String schemaName,
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 String getTrigger(String table,
String column)
public String getAutoIncrementClause()
getAutoIncrementClause in class AbstractDatabaseprotected boolean generateAutoIncrementStartWith(BigInteger startWith)
generateAutoIncrementStartWith in class AbstractDatabaseprotected boolean generateAutoIncrementBy(BigInteger incrementBy)
generateAutoIncrementBy in class AbstractDatabase
public static List<SqlStatement> getAlterTableStatements(SQLiteDatabase.AlterTableVisitor alterTableVisitor,
Database database,
String schemaName,
String tableName)
throws UnsupportedChangeException,
DatabaseException
UnsupportedChangeException
DatabaseExceptionprotected Set<String> getSystemTablesAndViews()
AbstractDatabase
getSystemTablesAndViews in class AbstractDatabasepublic String getDateTimeLiteral(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 | |||||||||