Class OracleSchema
- java.lang.Object
-
- migratedb.v1.core.internal.database.base.BaseSchema
-
- migratedb.v1.core.internal.database.oracle.OracleSchema
-
- All Implemented Interfaces:
Schema
public class OracleSchema extends BaseSchema
Oracle implementation of Schema.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOracleSchema.ObjectTypeOracle object types.
-
Field Summary
-
Fields inherited from class migratedb.v1.core.internal.database.base.BaseSchema
jdbcTemplate, name
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<OracleTable>doAllTables()Retrieves all the tables in this schema.protected booleandoCheckIfEmpty()Checks whether this schema is empty.protected voiddoCreate()Creates this schema in the database.protected booleandoExists()Checks whether this schema exists.protected OracleDatabasegetDatabase()TablegetTable(String tableName)Retrieves the table with this name in this schema.booleanisSystem()Checks whether the schema is system, i.e.
-
-
-
Method Detail
-
isSystem
public boolean isSystem() throws SQLExceptionChecks whether the schema is system, i.e. Oracle-maintained, or not.- Returns:
trueif it is system,falseif not.- Throws:
SQLException
-
getDatabase
protected OracleDatabase getDatabase()
- Overrides:
getDatabasein classBaseSchema
-
doExists
protected boolean doExists() throws SQLExceptionDescription copied from class:BaseSchemaChecks whether this schema exists.- Specified by:
doExistsin classBaseSchema- Throws:
SQLException- when the check failed.
-
doCheckIfEmpty
protected boolean doCheckIfEmpty() throws SQLExceptionDescription copied from class:BaseSchemaChecks whether this schema is empty.- Specified by:
doCheckIfEmptyin classBaseSchema- Throws:
SQLException- when the check failed.
-
doCreate
protected void doCreate() throws SQLExceptionDescription copied from class:BaseSchemaCreates this schema in the database.- Specified by:
doCreatein classBaseSchema- Throws:
SQLException- when the creation failed.
-
doAllTables
protected List<OracleTable> doAllTables() throws SQLException
Description copied from class:BaseSchemaRetrieves all the tables in this schema.- Specified by:
doAllTablesin classBaseSchema- Throws:
SQLException- when the retrieval failed.
-
-