Package org.flywaydb.database.oracle
Enum Class OracleSchema.ObjectType
- All Implemented Interfaces:
Serializable,Comparable<OracleSchema.ObjectType>,Constable
- Enclosing class:
OracleSchema
Oracle object types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionvoiddropObjects(org.flywaydb.core.internal.jdbc.JdbcTemplate jdbcTemplate, OracleDatabase database, OracleSchema schema) Drops all objects of this type in the specified schema.generateDropStatement(org.flywaydb.core.internal.jdbc.JdbcTemplate jdbcTemplate, OracleDatabase database, OracleSchema schema, String objectName) Generates the drop statement for the specified object.getName()getObjectNames(org.flywaydb.core.internal.jdbc.JdbcTemplate jdbcTemplate, OracleDatabase database, OracleSchema schema) Returns the list of object names of this type.getObjectTypeNames(org.flywaydb.core.internal.jdbc.JdbcTemplate jdbcTemplate, OracleDatabase database, OracleSchema schema) Returns the schema's existing object types.static booleansupportedTypesExist(org.flywaydb.core.internal.jdbc.JdbcTemplate jdbcTemplate, OracleDatabase database, OracleSchema schema) Checks whether the specified schema contains object types that can be cleaned.toString()static OracleSchema.ObjectTypeReturns the enum constant of this class with the specified name.static OracleSchema.ObjectType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TABLE
-
QUEUE_TABLE
-
MATERIALIZED_VIEW_LOG
-
INDEX
-
DOMAIN_INDEX
-
DOMAIN_INDEX_TYPE
-
OPERATOR
-
CLUSTER
-
VIEW
-
MATERIALIZED_VIEW
-
DIMENSION
-
SYNONYM
-
SEQUENCE
-
PROCEDURE
-
FUNCTION
-
PACKAGE
-
PACKAGE_BODY
-
CONTEXT
-
TRIGGER
-
TYPE
-
JAVA_SOURCE
-
JAVA_CLASS
-
JAVA_RESOURCE
-
LIBRARY
-
XML_SCHEMA
-
REWRITE_EQUIVALENCE
-
SQL_TRANSLATION_PROFILE
-
MINING_MODEL
-
SCHEDULER_JOB
-
SCHEDULER_PROGRAM
-
SCHEDULE
-
SCHEDULER_CHAIN
-
FILE_WATCHER
-
RULE_SET
-
RULE
-
EVALUATION_CONTEXT
-
FILE_GROUP
-
DATABASE_LINK
-
CREDENTIAL
-
DATABASE_DESTINATION
-
SCHEDULER_GROUP
-
CUBE
-
CUBE_DIMENSION
-
CUBE_BUILD_PROCESS
-
MEASURE_FOLDER
-
ASSEMBLY
-
JAVA_DATA
-
CAPTURE
-
APPLY
-
DIRECTORY
-
RESOURCE_PLAN
-
CONSUMER_GROUP
-
JOB_CLASS
-
WINDOWS
-
EDITION
-
AGENT_DESTINATION
-
UNIFIED_AUDIT_POLICY
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getName
-
toString
- Overrides:
toStringin classEnum<OracleSchema.ObjectType>
-
getObjectNames
public List<String> getObjectNames(org.flywaydb.core.internal.jdbc.JdbcTemplate jdbcTemplate, OracleDatabase database, OracleSchema schema) throws SQLException Returns the list of object names of this type.- Throws:
SQLException- if retrieving of objects failed.
-
generateDropStatement
public String generateDropStatement(org.flywaydb.core.internal.jdbc.JdbcTemplate jdbcTemplate, OracleDatabase database, OracleSchema schema, String objectName) Generates the drop statement for the specified object. -
dropObjects
public void dropObjects(org.flywaydb.core.internal.jdbc.JdbcTemplate jdbcTemplate, OracleDatabase database, OracleSchema schema) throws SQLException Drops all objects of this type in the specified schema.- Throws:
SQLException- if cleaning failed.
-
getObjectTypeNames
public static Set<String> getObjectTypeNames(org.flywaydb.core.internal.jdbc.JdbcTemplate jdbcTemplate, OracleDatabase database, OracleSchema schema) throws SQLException Returns the schema's existing object types.- Returns:
- a set of object type names.
- Throws:
SQLException- if retrieving of object types failed.
-
supportedTypesExist
public static boolean supportedTypesExist(org.flywaydb.core.internal.jdbc.JdbcTemplate jdbcTemplate, OracleDatabase database, OracleSchema schema) throws SQLException Checks whether the specified schema contains object types that can be cleaned.- Returns:
trueif it contains,falseif not.- Throws:
SQLException- if retrieving of object types failed.
-