Package net.ontopia.persistence.rdbms
Class Project
- java.lang.Object
-
- net.ontopia.persistence.rdbms.Project
-
public class Project extends Object
INTERNAL: Class that holds a database schema definition.
-
-
Constructor Summary
Constructors Constructor Description Project()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCreateAction(String platform, String action)
INTERNAL: Sets the actions to be performed in the database as part of the schema create.void
addDataType(DataType datatype, String platform)
INTERNAL: Add the platform specific datatype.void
addDropAction(String platform, String action)
INTERNAL: Sets the actions to be performed in the database as part of the schema drop.void
addTable(Table table)
INTERNAL: Adds the table to the database schema.List<String>
getCreateActions(String[] platforms)
INTERNAL: Gets the actions to be performed in the database as part of the schema create.DataType
getDataTypeByName(String name, String platform)
INTERNAL: Gets a datatype definition by name.DataType
getDataTypeByName(String name, String[] platforms)
Collection<String>
getDataTypePlatforms()
INTERNAL: Gets all datatype platforms.Collection<DataType>
getDataTypes(String platform)
INTERNAL: Gets all the datatypes for the given platforms.Collection<DataType>
getDataTypes(String[] platforms)
List<String>
getDropActions(String[] platforms)
INTERNAL: Gets the actions to be performed in the database as part of the schema drop.String
getName()
INTERNAL: Gets the name of the database schema.Table
getTableByName(String name)
INTERNAL: Gets a table definition by name.Collection<Table>
getTables()
INTERNAL: Gets all the tables in the database schema.void
removeDataType(DataType datatype, String platform)
INTERNAL: Remove the platform specific datatype.void
removeTable(Table table)
INTERNAL: Removes the table from the database schema.void
setName(String name)
INTERNAL: Gets the name of the database schema.
-
-
-
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.
-
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.
-
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.
-
-