@ProviderType
public interface DB
| Modifier and Type | Method and Description |
|---|---|
void |
addIndexes(Connection con,
String indexesSQL,
Set<String> validIndexNames) |
void |
buildCreateFile(String sqlDir,
String databaseName) |
void |
buildCreateFile(String sqlDir,
String databaseName,
int population) |
String |
buildSQL(String template) |
void |
buildSQLFile(String sqlDir,
String fileName) |
DBType |
getDBType() |
List<Index> |
getIndexes(Connection con) |
int |
getMajorVersion() |
int |
getMinorVersion() |
default String |
getNewUuidFunctionName() |
Integer |
getSQLType(String templateType) |
String |
getTemplateBlob() |
String |
getTemplateFalse() |
String |
getTemplateTrue() |
String |
getVersionString() |
long |
increment() |
long |
increment(String name) |
long |
increment(String name,
int size) |
boolean |
isSupportsAlterColumnName() |
boolean |
isSupportsAlterColumnType() |
boolean |
isSupportsInlineDistinct() |
default boolean |
isSupportsNewUuidFunction() |
boolean |
isSupportsQueryingAfterException() |
boolean |
isSupportsScrollableResults() |
boolean |
isSupportsStringCaseSensitiveQuery() |
boolean |
isSupportsUpdateWithInnerJoin() |
default void |
runSQL(Connection con,
DBTypeToSQLMap dbTypeToSQLMap) |
void |
runSQL(Connection con,
String sql) |
void |
runSQL(Connection con,
String[] sqls) |
default void |
runSQL(DBTypeToSQLMap dbTypeToSQLMap) |
void |
runSQL(String sql) |
void |
runSQL(String[] sqls) |
void |
runSQLTemplate(String path) |
void |
runSQLTemplate(String path,
boolean failOnError) |
void |
runSQLTemplateString(Connection connection,
String template,
boolean evaluate,
boolean failOnError) |
void |
runSQLTemplateString(String template,
boolean evaluate,
boolean failOnError) |
void |
setSupportsStringCaseSensitiveQuery(boolean supportsStringCaseSensitiveQuery) |
void |
updateIndexes(Connection con,
String tablesSQL,
String indexesSQL,
boolean dropStaleIndexes) |
static final int BARE
static final int DEFAULT
void addIndexes(Connection con,
String indexesSQL,
Set<String> validIndexNames)
throws IOException
IOExceptionvoid buildCreateFile(String sqlDir,
String databaseName)
throws IOException
IOExceptionvoid buildCreateFile(String sqlDir,
String databaseName,
int population)
throws IOException
IOExceptionString buildSQL(String template)
throws IOException
IOExceptionvoid buildSQLFile(String sqlDir,
String fileName)
throws IOException
IOExceptionDBType getDBType()
List<Index> getIndexes(Connection con) throws SQLException
SQLExceptionint getMajorVersion()
int getMinorVersion()
default String getNewUuidFunctionName()
Integer getSQLType(String templateType)
String getTemplateBlob()
String getTemplateFalse()
String getTemplateTrue()
String getVersionString()
long increment()
long increment(String name)
long increment(String name,
int size)
boolean isSupportsAlterColumnName()
boolean isSupportsAlterColumnType()
boolean isSupportsInlineDistinct()
default boolean isSupportsNewUuidFunction()
boolean isSupportsQueryingAfterException()
boolean isSupportsScrollableResults()
boolean isSupportsStringCaseSensitiveQuery()
boolean isSupportsUpdateWithInnerJoin()
default void runSQL(Connection con,
DBTypeToSQLMap dbTypeToSQLMap)
throws IOException,
SQLException
IOExceptionSQLExceptionvoid runSQL(Connection con,
String sql)
throws IOException,
SQLException
IOExceptionSQLExceptionvoid runSQL(Connection con,
String[] sqls)
throws IOException,
SQLException
IOExceptionSQLExceptiondefault void runSQL(DBTypeToSQLMap dbTypeToSQLMap) throws IOException, SQLException
IOExceptionSQLExceptionvoid runSQL(String sql)
throws IOException,
SQLException
IOExceptionSQLExceptionvoid runSQL(String[] sqls)
throws IOException,
SQLException
IOExceptionSQLExceptionvoid runSQLTemplate(String path)
throws IOException,
javax.naming.NamingException,
SQLException
IOExceptionjavax.naming.NamingExceptionSQLExceptionvoid runSQLTemplate(String path,
boolean failOnError)
throws IOException,
javax.naming.NamingException,
SQLException
IOExceptionjavax.naming.NamingExceptionSQLExceptionvoid runSQLTemplateString(Connection connection,
String template,
boolean evaluate,
boolean failOnError)
throws IOException,
javax.naming.NamingException,
SQLException
IOExceptionjavax.naming.NamingExceptionSQLExceptionvoid runSQLTemplateString(String template,
boolean evaluate,
boolean failOnError)
throws IOException,
javax.naming.NamingException,
SQLException
IOExceptionjavax.naming.NamingExceptionSQLExceptionvoid setSupportsStringCaseSensitiveQuery(boolean supportsStringCaseSensitiveQuery)
void updateIndexes(Connection con,
String tablesSQL,
String indexesSQL,
boolean dropStaleIndexes)
throws IOException,
SQLException
IOExceptionSQLException