@ProviderType
public interface DB
| Modifier and Type | Field and Description |
|---|---|
static int |
SQL_SIZE_NONE |
static int |
SQL_VARCHAR_MAX_SIZE |
static int |
SQL_VARCHAR_MAX_SIZE_THRESHOLD |
| Modifier and Type | Method and Description |
|---|---|
void |
addIndexes(java.sql.Connection connection,
java.util.List<IndexMetadata> indexMetadatas) |
void |
addIndexes(java.sql.Connection connection,
java.lang.String indexesSQL,
java.util.Set<java.lang.String> validIndexNames)
Deprecated.
As of Cavanaugh (7.4.x), replaced by
addIndexes(Connection, List) |
void |
alterColumnName(java.sql.Connection connection,
java.lang.String tableName,
java.lang.String oldColumnName,
java.lang.String newColumnDefinition) |
void |
alterColumnType(java.sql.Connection connection,
java.lang.String tableName,
java.lang.String columnName,
java.lang.String newColumnType) |
void |
alterTableAddColumn(java.sql.Connection connection,
java.lang.String tableName,
java.lang.String columnName,
java.lang.String columnType) |
void |
alterTableDropColumn(java.sql.Connection connection,
java.lang.String tableName,
java.lang.String columnName) |
java.lang.String |
buildSQL(java.lang.String template) |
java.util.List<IndexMetadata> |
dropIndexes(java.sql.Connection connection,
java.lang.String tableName,
java.lang.String columnName) |
DBType |
getDBType() |
java.util.List<Index> |
getIndexes(java.sql.Connection connection) |
java.sql.ResultSet |
getIndexResultSet(java.sql.Connection connection,
java.lang.String tableName) |
int |
getMajorVersion() |
int |
getMinorVersion() |
default java.lang.String |
getNewUuidFunctionName() |
java.lang.String |
getPopulateSQL(java.lang.String databaseName,
java.lang.String sqlContent) |
java.lang.String[] |
getPrimaryKeyColumnNames(java.sql.Connection connection,
java.lang.String tableName) |
java.sql.ResultSet |
getPrimaryKeysResultSet(java.sql.Connection connection,
java.lang.String tableName)
Deprecated.
As of Cavanaugh (7.4.x), replaced by
getPrimaryKeyColumnNames(Connection, String) |
java.lang.String |
getRecreateSQL(java.lang.String databaseName) |
java.lang.Integer |
getSQLType(java.lang.String templateType) |
java.lang.Integer |
getSQLVarcharSize(java.lang.String templateType) |
java.lang.String |
getTemplateBlob() |
java.lang.String |
getTemplateFalse() |
java.lang.String |
getTemplateTrue() |
java.lang.String |
getVersionString() |
boolean |
isSupportsAlterColumnName() |
boolean |
isSupportsAlterColumnType() |
boolean |
isSupportsInlineDistinct() |
default boolean |
isSupportsNewUuidFunction() |
boolean |
isSupportsQueryingAfterException() |
boolean |
isSupportsScrollableResults() |
boolean |
isSupportsStringCaseSensitiveQuery() |
boolean |
isSupportsUpdateWithInnerJoin() |
void |
process(com.liferay.petra.function.UnsafeConsumer<java.lang.Long,java.lang.Exception> unsafeConsumer) |
void |
removePrimaryKey(java.sql.Connection connection,
java.lang.String tableName) |
default void |
runSQL(java.sql.Connection connection,
DBTypeToSQLMap dbTypeToSQLMap) |
void |
runSQL(java.sql.Connection connection,
java.lang.String sql) |
void |
runSQL(java.sql.Connection connection,
java.lang.String[] sqls) |
default void |
runSQL(DBTypeToSQLMap dbTypeToSQLMap) |
void |
runSQL(java.lang.String sql) |
void |
runSQL(java.lang.String[] sqls) |
void |
runSQLTemplateString(java.sql.Connection connection,
java.lang.String template,
boolean failOnError) |
void |
runSQLTemplateString(java.lang.String template,
boolean failOnError) |
void |
setSupportsStringCaseSensitiveQuery(boolean supportsStringCaseSensitiveQuery) |
void |
updateIndexes(java.sql.Connection connection,
java.lang.String tablesSQL,
java.lang.String indexesSQL,
boolean dropStaleIndexes) |
static final int SQL_SIZE_NONE
static final int SQL_VARCHAR_MAX_SIZE
static final int SQL_VARCHAR_MAX_SIZE_THRESHOLD
void addIndexes(java.sql.Connection connection,
java.util.List<IndexMetadata> indexMetadatas)
throws java.io.IOException,
java.sql.SQLException
java.io.IOExceptionjava.sql.SQLException@Deprecated
void addIndexes(java.sql.Connection connection,
java.lang.String indexesSQL,
java.util.Set<java.lang.String> validIndexNames)
throws java.io.IOException
addIndexes(Connection, List)java.io.IOExceptionvoid alterColumnName(java.sql.Connection connection,
java.lang.String tableName,
java.lang.String oldColumnName,
java.lang.String newColumnDefinition)
throws java.lang.Exception
java.lang.Exceptionvoid alterColumnType(java.sql.Connection connection,
java.lang.String tableName,
java.lang.String columnName,
java.lang.String newColumnType)
throws java.lang.Exception
java.lang.Exceptionvoid alterTableAddColumn(java.sql.Connection connection,
java.lang.String tableName,
java.lang.String columnName,
java.lang.String columnType)
throws java.lang.Exception
java.lang.Exceptionvoid alterTableDropColumn(java.sql.Connection connection,
java.lang.String tableName,
java.lang.String columnName)
throws java.lang.Exception
java.lang.Exceptionjava.lang.String buildSQL(java.lang.String template)
throws java.io.IOException,
java.sql.SQLException
java.io.IOExceptionjava.sql.SQLExceptionjava.util.List<IndexMetadata> dropIndexes(java.sql.Connection connection, java.lang.String tableName, java.lang.String columnName) throws java.io.IOException, java.sql.SQLException
java.io.IOExceptionjava.sql.SQLExceptionDBType getDBType()
java.util.List<Index> getIndexes(java.sql.Connection connection) throws java.sql.SQLException
java.sql.SQLExceptionjava.sql.ResultSet getIndexResultSet(java.sql.Connection connection,
java.lang.String tableName)
throws java.sql.SQLException
java.sql.SQLExceptionint getMajorVersion()
int getMinorVersion()
default java.lang.String getNewUuidFunctionName()
java.lang.String getPopulateSQL(java.lang.String databaseName,
java.lang.String sqlContent)
java.lang.String[] getPrimaryKeyColumnNames(java.sql.Connection connection,
java.lang.String tableName)
throws java.sql.SQLException
java.sql.SQLException@Deprecated
java.sql.ResultSet getPrimaryKeysResultSet(java.sql.Connection connection,
java.lang.String tableName)
throws java.sql.SQLException
getPrimaryKeyColumnNames(Connection, String)java.sql.SQLExceptionjava.lang.String getRecreateSQL(java.lang.String databaseName)
java.lang.Integer getSQLType(java.lang.String templateType)
java.lang.Integer getSQLVarcharSize(java.lang.String templateType)
java.lang.String getTemplateBlob()
java.lang.String getTemplateFalse()
java.lang.String getTemplateTrue()
java.lang.String getVersionString()
boolean isSupportsAlterColumnName()
boolean isSupportsAlterColumnType()
boolean isSupportsInlineDistinct()
default boolean isSupportsNewUuidFunction()
boolean isSupportsQueryingAfterException()
boolean isSupportsScrollableResults()
boolean isSupportsStringCaseSensitiveQuery()
boolean isSupportsUpdateWithInnerJoin()
void process(com.liferay.petra.function.UnsafeConsumer<java.lang.Long,java.lang.Exception> unsafeConsumer)
throws java.lang.Exception
java.lang.Exceptionvoid removePrimaryKey(java.sql.Connection connection,
java.lang.String tableName)
throws java.io.IOException,
java.sql.SQLException
java.io.IOExceptionjava.sql.SQLExceptiondefault void runSQL(java.sql.Connection connection,
DBTypeToSQLMap dbTypeToSQLMap)
throws java.io.IOException,
java.sql.SQLException
java.io.IOExceptionjava.sql.SQLExceptionvoid runSQL(java.sql.Connection connection,
java.lang.String sql)
throws java.io.IOException,
java.sql.SQLException
java.io.IOExceptionjava.sql.SQLExceptionvoid runSQL(java.sql.Connection connection,
java.lang.String[] sqls)
throws java.io.IOException,
java.sql.SQLException
java.io.IOExceptionjava.sql.SQLExceptiondefault void runSQL(DBTypeToSQLMap dbTypeToSQLMap) throws java.io.IOException, java.sql.SQLException
java.io.IOExceptionjava.sql.SQLExceptionvoid runSQL(java.lang.String sql)
throws java.io.IOException,
java.sql.SQLException
java.io.IOExceptionjava.sql.SQLExceptionvoid runSQL(java.lang.String[] sqls)
throws java.io.IOException,
java.sql.SQLException
java.io.IOExceptionjava.sql.SQLExceptionvoid runSQLTemplateString(java.sql.Connection connection,
java.lang.String template,
boolean failOnError)
throws java.io.IOException,
javax.naming.NamingException,
java.sql.SQLException
java.io.IOExceptionjavax.naming.NamingExceptionjava.sql.SQLExceptionvoid runSQLTemplateString(java.lang.String template,
boolean failOnError)
throws java.io.IOException,
javax.naming.NamingException,
java.sql.SQLException
java.io.IOExceptionjavax.naming.NamingExceptionjava.sql.SQLExceptionvoid setSupportsStringCaseSensitiveQuery(boolean supportsStringCaseSensitiveQuery)
void updateIndexes(java.sql.Connection connection,
java.lang.String tablesSQL,
java.lang.String indexesSQL,
boolean dropStaleIndexes)
throws java.lang.Exception
java.lang.Exception