@ProviderType
public interface DB
Modifier and Type | Field and Description |
---|---|
static int |
BARE
Deprecated.
As of Athanasius (7.3.x), with no direct replacement
|
static int |
DEFAULT
Deprecated.
As of Athanasius (7.3.x), with no direct replacement
|
Modifier and Type | Method and Description |
---|---|
void |
addIndexes(Connection con,
String indexesSQL,
Set<String> validIndexNames) |
void |
buildCreateFile(String sqlDir,
String databaseName)
Deprecated.
As of Athanasius (7.3.x), with no direct replacement
|
void |
buildCreateFile(String sqlDir,
String databaseName,
int population)
Deprecated.
As of Athanasius (7.3.x), with no direct replacement
|
String |
buildSQL(String template) |
void |
buildSQLFile(String sqlDir,
String fileName)
Deprecated.
As of Athanasius (7.3.x), with no direct replacement
|
DBType |
getDBType() |
List<Index> |
getIndexes(Connection con) |
int |
getMajorVersion() |
int |
getMinorVersion() |
default String |
getNewUuidFunctionName() |
String |
getPopulateSQL(String databaseName,
String sqlContent) |
String |
getRecreateSQL(String databaseName) |
Integer |
getSQLType(String templateType) |
String |
getTemplateBlob() |
String |
getTemplateFalse() |
String |
getTemplateTrue() |
String |
getVersionString() |
long |
increment()
Deprecated.
As of Athanasius (7.3.x), replaced by
CounterLocalServiceUtil#increment() |
long |
increment(String name)
Deprecated.
As of Athanasius (7.3.x), replaced by
CounterLocalServiceUtil#increment(String) |
long |
increment(String name,
int size)
Deprecated.
As of Athanasius (7.3.x), replaced by
CounterLocalServiceUtil#increment(String, int) |
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)
Deprecated.
As of Athanasius (7.3.x), replaced by
DBProcess.runSQLTemplate(String) |
void |
runSQLTemplate(String path,
boolean failOnError)
Deprecated.
As of Athanasius (7.3.x), replaced by
DBProcess.runSQLTemplate(String, boolean) |
void |
runSQLTemplateString(Connection connection,
String template,
boolean failOnError) |
void |
runSQLTemplateString(Connection connection,
String template,
boolean evaluate,
boolean failOnError)
Deprecated.
As of Athanasius (7.3.x), replaced by
runSQLTemplateString(Connection, String, boolean) |
void |
runSQLTemplateString(String template,
boolean failOnError) |
void |
runSQLTemplateString(String template,
boolean evaluate,
boolean failOnError)
Deprecated.
As of Athanasius (7.3.x), replaced by
runSQLTemplateString(String, boolean) |
void |
setSupportsStringCaseSensitiveQuery(boolean supportsStringCaseSensitiveQuery) |
void |
updateIndexes(Connection con,
String tablesSQL,
String indexesSQL,
boolean dropStaleIndexes) |
@Deprecated static final int BARE
@Deprecated static final int DEFAULT
void addIndexes(Connection con, String indexesSQL, Set<String> validIndexNames) throws IOException
IOException
@Deprecated void buildCreateFile(String sqlDir, String databaseName) throws IOException
IOException
@Deprecated void buildCreateFile(String sqlDir, String databaseName, int population) throws IOException
IOException
String buildSQL(String template) throws IOException, SQLException
IOException
SQLException
@Deprecated void buildSQLFile(String sqlDir, String fileName) throws IOException
IOException
DBType getDBType()
List<Index> getIndexes(Connection con) throws SQLException
SQLException
int getMajorVersion()
int getMinorVersion()
default String getNewUuidFunctionName()
String getPopulateSQL(String databaseName, String sqlContent)
String getRecreateSQL(String databaseName)
Integer getSQLType(String templateType)
String getTemplateBlob()
String getTemplateFalse()
String getTemplateTrue()
String getVersionString()
@Deprecated long increment()
CounterLocalServiceUtil#increment()
@Deprecated long increment(String name)
CounterLocalServiceUtil#increment(String)
@Deprecated long increment(String name, int size)
CounterLocalServiceUtil#increment(String, int)
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
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
@Deprecated void runSQLTemplate(String path) throws IOException, javax.naming.NamingException, SQLException
DBProcess.runSQLTemplate(String)
IOException
javax.naming.NamingException
SQLException
@Deprecated void runSQLTemplate(String path, boolean failOnError) throws IOException, javax.naming.NamingException, SQLException
DBProcess.runSQLTemplate(String, boolean)
IOException
javax.naming.NamingException
SQLException
void runSQLTemplateString(Connection connection, String template, boolean failOnError) throws IOException, javax.naming.NamingException, SQLException
IOException
javax.naming.NamingException
SQLException
@Deprecated void runSQLTemplateString(Connection connection, String template, boolean evaluate, boolean failOnError) throws IOException, javax.naming.NamingException, SQLException
runSQLTemplateString(Connection, String, boolean)
IOException
javax.naming.NamingException
SQLException
void runSQLTemplateString(String template, boolean failOnError) throws IOException, javax.naming.NamingException, SQLException
IOException
javax.naming.NamingException
SQLException
@Deprecated void runSQLTemplateString(String template, boolean evaluate, boolean failOnError) throws IOException, javax.naming.NamingException, SQLException
runSQLTemplateString(String, boolean)
IOException
javax.naming.NamingException
SQLException
void setSupportsStringCaseSensitiveQuery(boolean supportsStringCaseSensitiveQuery)
void updateIndexes(Connection con, String tablesSQL, String indexesSQL, boolean dropStaleIndexes) throws IOException, SQLException
IOException
SQLException