@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() |
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() |
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
IOException
void buildCreateFile(String sqlDir, String databaseName) throws IOException
IOException
void buildCreateFile(String sqlDir, String databaseName, int population) throws IOException
IOException
String buildSQL(String template) throws IOException
IOException
void buildSQLFile(String sqlDir, String fileName) throws IOException
IOException
DBType getDBType()
List<Index> getIndexes(Connection con) throws SQLException
SQLException
int getMajorVersion()
int getMinorVersion()
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()
boolean isSupportsQueryingAfterException()
boolean isSupportsScrollableResults()
boolean isSupportsStringCaseSensitiveQuery()
boolean isSupportsUpdateWithInnerJoin()
default void runSQL(Connection con, DBTypeToSQLMap dbTypeToSQLMap) throws IOException, SQLException
IOException
SQLException
void runSQL(Connection con, String sql) throws IOException, SQLException
IOException
SQLException
void runSQL(Connection con, String[] sqls) throws IOException, SQLException
IOException
SQLException
default void runSQL(DBTypeToSQLMap dbTypeToSQLMap) throws IOException, SQLException
IOException
SQLException
void runSQL(String sql) throws IOException, SQLException
IOException
SQLException
void runSQL(String[] sqls) throws IOException, SQLException
IOException
SQLException
void runSQLTemplate(String path) throws IOException, javax.naming.NamingException, SQLException
IOException
javax.naming.NamingException
SQLException
void runSQLTemplate(String path, boolean failOnError) throws IOException, javax.naming.NamingException, SQLException
IOException
javax.naming.NamingException
SQLException
void runSQLTemplateString(Connection connection, String template, boolean evaluate, boolean failOnError) throws IOException, javax.naming.NamingException, SQLException
IOException
javax.naming.NamingException
SQLException
void runSQLTemplateString(String template, boolean evaluate, boolean failOnError) throws IOException, javax.naming.NamingException, SQLException
IOException
javax.naming.NamingException
SQLException
void setSupportsStringCaseSensitiveQuery(boolean supportsStringCaseSensitiveQuery)
void updateIndexes(Connection con, String tablesSQL, String indexesSQL, boolean dropStaleIndexes) throws IOException, SQLException
IOException
SQLException