Class DB2ZSchema

java.lang.Object
org.flywaydb.core.internal.database.base.Schema<DB2ZDatabase,DB2ZTable>
org.flywaydb.community.database.db2z.DB2ZSchema

public class DB2ZSchema extends org.flywaydb.core.internal.database.base.Schema<DB2ZDatabase,DB2ZTable>
DB2 implementation of Schema.
  • Field Summary

    Fields inherited from class org.flywaydb.core.internal.database.base.Schema

    database, jdbcTemplate, name
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.flywaydb.core.internal.database.base.Function[]
     
    protected DB2ZTable[]
     
    protected void
     
    protected void
     
    protected void
     
    protected boolean
    For DB2 on z/OS, a schema is not an object that can be created or dropped and is not listed in the catalog.
    protected boolean
     
    org.flywaydb.core.internal.database.base.Function
    getFunction(String functionName, String... args)
     
    org.flywaydb.core.internal.database.base.Table
    getTable(String tableName)
     
    protected org.flywaydb.core.internal.database.base.Type
    getType(String typeName)
     

    Methods inherited from class org.flywaydb.core.internal.database.base.Schema

    allFunctions, allTables, allTypes, clean, create, drop, empty, equals, exists, getName, hashCode, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Method Details

    • doExists

      protected boolean doExists() throws SQLException
      Specified by:
      doExists in class org.flywaydb.core.internal.database.base.Schema<DB2ZDatabase,DB2ZTable>
      Throws:
      SQLException
    • doEmpty

      protected boolean doEmpty() throws SQLException
      For DB2 on z/OS, a schema is not an object that can be created or dropped and is not listed in the catalog. Instead, we do need to check whether the database exists (which is a container for tablespaces and other storage related objects)
      Specified by:
      doEmpty in class org.flywaydb.core.internal.database.base.Schema<DB2ZDatabase,DB2ZTable>
      Throws:
      SQLException
    • doCreate

      protected void doCreate() throws SQLException
      Specified by:
      doCreate in class org.flywaydb.core.internal.database.base.Schema<DB2ZDatabase,DB2ZTable>
      Throws:
      SQLException
    • doDrop

      protected void doDrop() throws SQLException
      Specified by:
      doDrop in class org.flywaydb.core.internal.database.base.Schema<DB2ZDatabase,DB2ZTable>
      Throws:
      SQLException
    • doClean

      protected void doClean() throws SQLException
      Specified by:
      doClean in class org.flywaydb.core.internal.database.base.Schema<DB2ZDatabase,DB2ZTable>
      Throws:
      SQLException
    • doAllTables

      protected DB2ZTable[] doAllTables() throws SQLException
      Specified by:
      doAllTables in class org.flywaydb.core.internal.database.base.Schema<DB2ZDatabase,DB2ZTable>
      Throws:
      SQLException
    • doAllFunctions

      protected org.flywaydb.core.internal.database.base.Function[] doAllFunctions() throws SQLException
      Overrides:
      doAllFunctions in class org.flywaydb.core.internal.database.base.Schema<DB2ZDatabase,DB2ZTable>
      Throws:
      SQLException
    • getTable

      public org.flywaydb.core.internal.database.base.Table getTable(String tableName)
      Specified by:
      getTable in class org.flywaydb.core.internal.database.base.Schema<DB2ZDatabase,DB2ZTable>
    • getType

      protected org.flywaydb.core.internal.database.base.Type getType(String typeName)
      Overrides:
      getType in class org.flywaydb.core.internal.database.base.Schema<DB2ZDatabase,DB2ZTable>
    • getFunction

      public org.flywaydb.core.internal.database.base.Function getFunction(String functionName, String... args)
      Overrides:
      getFunction in class org.flywaydb.core.internal.database.base.Schema<DB2ZDatabase,DB2ZTable>