@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 connection,
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 connection) |
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() |
void |
process(com.liferay.petra.function.UnsafeConsumer<Long,Exception> unsafeConsumer) |
default void |
runSQL(Connection connection,
DBTypeToSQLMap dbTypeToSQLMap) |
void |
runSQL(Connection connection,
String sql) |
void |
runSQL(Connection connection,
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 connection,
String tablesSQL,
String indexesSQL,
boolean dropStaleIndexes) |
@Deprecated static final int BARE
@Deprecated static final int DEFAULT
void addIndexes(Connection connection,
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
IOExceptionString buildSQL(String template)
throws IOException,
SQLException
IOExceptionSQLException@Deprecated
void buildSQLFile(String sqlDir,
String fileName)
throws IOException
IOExceptionDBType getDBType()
List<Index> getIndexes(Connection connection) throws SQLException
SQLExceptionint 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()
void process(com.liferay.petra.function.UnsafeConsumer<Long,Exception> unsafeConsumer)
throws Exception
Exceptiondefault void runSQL(Connection connection,
DBTypeToSQLMap dbTypeToSQLMap)
throws IOException,
SQLException
IOExceptionSQLExceptionvoid runSQL(Connection connection,
String sql)
throws IOException,
SQLException
IOExceptionSQLExceptionvoid runSQL(Connection connection,
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
IOExceptionSQLException@Deprecated
void runSQLTemplate(String path)
throws IOException,
javax.naming.NamingException,
SQLException
DBProcess.runSQLTemplate(String)IOExceptionjavax.naming.NamingExceptionSQLException@Deprecated
void runSQLTemplate(String path,
boolean failOnError)
throws IOException,
javax.naming.NamingException,
SQLException
DBProcess.runSQLTemplate(String, boolean)IOExceptionjavax.naming.NamingExceptionSQLExceptionvoid runSQLTemplateString(Connection connection,
String template,
boolean failOnError)
throws IOException,
javax.naming.NamingException,
SQLException
IOExceptionjavax.naming.NamingExceptionSQLException@Deprecated
void runSQLTemplateString(Connection connection,
String template,
boolean evaluate,
boolean failOnError)
throws IOException,
javax.naming.NamingException,
SQLException
runSQLTemplateString(Connection, String, boolean)IOExceptionjavax.naming.NamingExceptionSQLExceptionvoid runSQLTemplateString(String template,
boolean failOnError)
throws IOException,
javax.naming.NamingException,
SQLException
IOExceptionjavax.naming.NamingExceptionSQLException@Deprecated
void runSQLTemplateString(String template,
boolean evaluate,
boolean failOnError)
throws IOException,
javax.naming.NamingException,
SQLException
runSQLTemplateString(String, boolean)IOExceptionjavax.naming.NamingExceptionSQLExceptionvoid setSupportsStringCaseSensitiveQuery(boolean supportsStringCaseSensitiveQuery)
void updateIndexes(Connection connection,
String tablesSQL,
String indexesSQL,
boolean dropStaleIndexes)
throws Exception
Exception