Class Project


  • public class Project
    extends Object
    INTERNAL: Class that holds a database schema definition.
    • Constructor Detail

      • Project

        public Project()
    • Method Detail

      • getName

        public String getName()
        INTERNAL: Gets the name of the database schema.
      • setName

        public void setName​(String name)
        INTERNAL: Gets the name of the database schema.
      • getTableByName

        public Table getTableByName​(String name)
        INTERNAL: Gets a table definition by name.
      • getTables

        public Collection<Table> getTables()
        INTERNAL: Gets all the tables in the database schema.
      • addTable

        public void addTable​(Table table)
        INTERNAL: Adds the table to the database schema.
      • removeTable

        public void removeTable​(Table table)
        INTERNAL: Removes the table from the database schema.
      • getDataTypePlatforms

        public Collection<String> getDataTypePlatforms()
        INTERNAL: Gets all datatype platforms.
      • getDataTypeByName

        public DataType getDataTypeByName​(String name,
                                          String platform)
        INTERNAL: Gets a datatype definition by name.
      • getDataTypes

        public Collection<DataType> getDataTypes​(String platform)
        INTERNAL: Gets all the datatypes for the given platforms.
      • addDataType

        public void addDataType​(DataType datatype,
                                String platform)
        INTERNAL: Add the platform specific datatype.
      • removeDataType

        public void removeDataType​(DataType datatype,
                                   String platform)
        INTERNAL: Remove the platform specific datatype.
      • getCreateActions

        public List<String> getCreateActions​(String[] platforms)
        INTERNAL: Gets the actions to be performed in the database as part of the schema create. Actions for the first matching platform is returned.
      • addCreateAction

        public void addCreateAction​(String platform,
                                    String action)
        INTERNAL: Sets the actions to be performed in the database as part of the schema create.
      • getDropActions

        public List<String> getDropActions​(String[] platforms)
        INTERNAL: Gets the actions to be performed in the database as part of the schema drop. Actions for the first matching platform is returned.
      • addDropAction

        public void addDropAction​(String platform,
                                  String action)
        INTERNAL: Sets the actions to be performed in the database as part of the schema drop.