Class Schema

    • Constructor Detail

      • Schema

        public Schema​(Project project,
                      java.lang.String name,
                      java.lang.String catalogName,
                      java.lang.String schemaName)
        Public constructor
        Parameters:
        project - it belongs to
        name - of the schema
        catalogName - from Jdbc
        schemaName - from Jdbc
    • Method Detail

      • setMappedSchema

        public boolean setMappedSchema​(java.lang.String mappedSchema)
      • getMappedSchema

        public java.lang.String getMappedSchema()
      • getSchemaName

        public java.lang.String getSchemaName()
      • getCatalogName

        public java.lang.String getCatalogName()
      • getTable

        public Table getTable​(java.lang.String name)
      • getView

        public View getView​(java.lang.String name)
      • getMaterializedView

        public MaterializedView getMaterializedView​(java.lang.String name)
      • getTableOrViewOrMatView

        public AbstractTable getTableOrViewOrMatView​(java.lang.String name)
      • getSymbolicIcon

        public java.lang.String getSymbolicIcon()
        Specified by:
        getSymbolicIcon in class AbstractUnit
        Returns:
        the icon to be used in tree pane
      • createTable

        public Table createTable​(java.lang.String name)
      • createUserDataType

        public UserDataType createUserDataType​(java.lang.String name)
      • createView

        public View createView​(java.lang.String name)
      • createMaterializedView

        public MaterializedView createMaterializedView​(java.lang.String name)
      • createSequence

        public Sequence createSequence​(java.lang.String name)
      • createProcedure

        public Procedure createProcedure​(java.lang.String name)
      • createFunction

        public Function createFunction​(java.lang.String name)
      • createTrigger

        public Trigger createTrigger​(java.lang.String name)
      • createTrigger

        public Trigger createTrigger​(java.lang.String name,
                                     Table table)
      • rename

        public boolean rename​(java.lang.String name)
        Sets the name.
        Overrides:
        rename in class AbstractUnit
      • hasEntities

        public boolean hasEntities()
      • getRelationCount

        public int getRelationCount()
      • hasTablesButNoForeignKeys

        public boolean hasTablesButNoForeignKeys​(int tableCount)
      • autoGenerateVirtualForeignKeys

        public java.util.List<VirtualForeignKeyEntry> autoGenerateVirtualForeignKeys​(boolean create)
        Looks in the schema for primary keys. For each primary key search in all other tables if there are columns with the same name as in pk. If yes, builds a Foreign Key the the Primary Key table.
        Parameters:
        create - true if should create them
        Returns:
        count of created virtual foreign keys
      • getRdbms

        public java.lang.String getRdbms()
        Specified by:
        getRdbms in interface DbUnit
      • getOptions

        public java.lang.String getOptions()
      • setOptions

        public void setOptions​(java.lang.String options)