public class Project extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<String,List<String>> |
c_actions |
protected Map<String,List<String>> |
d_actions |
protected Map<String,Map<String,DataType>> |
datatypes |
protected String |
name |
protected Map<String,Table> |
tables |
Constructor and Description |
---|
Project() |
Modifier and Type | Method and 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.
|
protected String name
public String getName()
public void setName(String name)
public Collection<Table> getTables()
public void addTable(Table table)
public void removeTable(Table table)
public Collection<String> getDataTypePlatforms()
public DataType getDataTypeByName(String name, String platform)
public Collection<DataType> getDataTypes(String platform)
public Collection<DataType> getDataTypes(String[] platforms)
public void addDataType(DataType datatype, String platform)
public void removeDataType(DataType datatype, String platform)
public List<String> getCreateActions(String[] platforms)
public void addCreateAction(String platform, String action)
public List<String> getDropActions(String[] platforms)