public class OracleDbmsBean extends AbstractDbmsBean
DbmsBean.ColumnDefinition, DbmsBean.ConstraintDefinition, DbmsBean.IndexDefinition
LARGE_STRING_TYPE
Constructor and Description |
---|
OracleDbmsBean() |
Modifier and Type | Method and Description |
---|---|
void |
actuallyChangeColumnToNotNull(Connection c,
String tableName,
String columnName) |
String |
clobEquals(String columnName)
Comparison string for CLOB column.
|
void |
dropIndex(Connection c,
String table,
String index) |
void |
dropPrimaryKey(Connection connection,
String tableName)
Drops the primary key on a table.
|
String |
getConcat(String... values)
Provide a different SQL concatenation operator depending on SQL engine used.
|
Collection<DbmsBean.ConstraintDefinition> |
getConstraints(Connection connection,
String table,
String column)
Fetch information about constraints
|
protected DbmsBean.ConstraintDefinition.ConstraintType |
getConstraintType(String typeName)
https://docs.oracle.com/database/121/REFRN/GUID-9C96DA92-CFE0-4A3F-9061-C5ED17B43EFE.htm#REFRN20047
|
DatabaseType |
getDatabaseType()
Detect used database type
|
Collection<DbmsBean.IndexDefinition> |
getIndices(Connection c,
String table) |
String |
getQuery(SqlQueryProvider sqlQueryProvider)
Provide a different SQL query depending on SQL engine used.
|
boolean |
isOracle() |
void |
renameColumn(Connection c,
String tableName,
String oldName,
String newName)
Rename columns.
|
void |
resizeVarcharColumn(Connection connection,
String tableName,
String columnName,
int newSize,
boolean isNullable,
String defaultValue) |
addColumn, changeColumnDefinition, changeColumnToNotNull, changeColumnType, changeTableNameToUpperCase, createColumn, createIndex, createPrimaryKey, createUniqueConstraint, dropColumn, dropConstraint, dropConstraints, dropForeignKeyConstraint, dropIndexIfExists, dropTable, getColumnDefinition, getColumns, getConstraintDefinitions, getIndexNames, getSchema, getSchemaUncached, getSqlTypeName, getTables, isColumnPresent, isColumnPresent, isColumnPresent, isH2, isHsqldb, isMsSqlServer, isMySql, isPostgreSql, isTable, isTablePresent, migrateColumnType, newColumnDefinition, quote, quoteIfNeeded
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCatalog
@NotNull public Collection<DbmsBean.ConstraintDefinition> getConstraints(Connection connection, @NotNull String table, @Nullable String column) throws SQLException
DbmsBean
SQLException
protected DbmsBean.ConstraintDefinition.ConstraintType getConstraintType(String typeName)
getConstraintType
in class AbstractDbmsBean
public void dropIndex(Connection c, String table, String index) throws SQLException
dropIndex
in interface DbmsBean
dropIndex
in class AbstractDbmsBean
SQLException
@NotNull public String getQuery(@NotNull SqlQueryProvider sqlQueryProvider)
DbmsBean
@NotNull public String getConcat(String... values)
DbmsBean
values
- the values to concatenate.public void resizeVarcharColumn(@NotNull Connection connection, String tableName, String columnName, int newSize, boolean isNullable, @Nullable String defaultValue) throws SQLException
SQLException
public boolean isOracle()
isOracle
in interface DbmsBean
isOracle
in class AbstractDbmsBean
public DatabaseType getDatabaseType()
DbmsBean
public void dropPrimaryKey(Connection connection, String tableName) throws SQLException
DbmsBean
SQLException
public void renameColumn(Connection c, String tableName, String oldName, String newName) throws SQLException
DbmsBean
renameColumn
in interface DbmsBean
renameColumn
in class AbstractDbmsBean
SQLException
public void actuallyChangeColumnToNotNull(Connection c, String tableName, String columnName) throws SQLException
actuallyChangeColumnToNotNull
in class AbstractDbmsBean
SQLException
public Collection<DbmsBean.IndexDefinition> getIndices(@NotNull Connection c, @NotNull String table) throws SQLException
getIndices
in interface DbmsBean
getIndices
in class AbstractDbmsBean
SQLException
@NotNull public String clobEquals(@NotNull String columnName)
DbmsBean
clobEquals
in interface DbmsBean
clobEquals
in class AbstractDbmsBean
columnName
- column nameCopyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.