Class Project

java.lang.Object
net.ontopia.persistence.rdbms.Project

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

  • Constructor Details

    • Project

      public Project()
  • Method Details

    • 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.
    • getDataTypeByName

      public DataType getDataTypeByName(String name, String[] platforms)
    • getDataTypes

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

      public Collection<DataType> getDataTypes(String[] 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.