net.ontopia.persistence.rdbms
Class Project

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

public class Project
extends java.lang.Object

INTERNAL: Class that holds a database schema definition.


Field Summary
protected  java.util.Map c_actions
           
protected  java.util.Map d_actions
           
protected  java.util.Map datatypes
           
protected  java.lang.String name
           
protected  java.util.Map tables
           
 
Constructor Summary
Project()
           
 
Method Summary
 void addCreateAction(java.lang.String platform, java.lang.String action)
          INTERNAL: Sets the actions to be performed in the database as part of the schema create.
 void addDataType(DataType datatype, java.lang.String platform)
          INTERNAL: Add the platform specific datatype.
 void addDropAction(java.lang.String platform, java.lang.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.
 java.util.List getCreateActions(java.lang.String[] platforms)
          INTERNAL: Gets the actions to be performed in the database as part of the schema create.
 DataType getDataTypeByName(java.lang.String name, java.lang.String platform)
          INTERNAL: Gets a datatype definition by name.
 DataType getDataTypeByName(java.lang.String name, java.lang.String[] platforms)
           
 java.util.Collection getDataTypePlatforms()
          INTERNAL: Gets all datatype platforms.
 java.util.Collection getDataTypes(java.lang.String platform)
          INTERNAL: Gets all the datatypes for the given platforms.
 java.util.Collection getDataTypes(java.lang.String[] platforms)
           
 java.util.List getDropActions(java.lang.String[] platforms)
          INTERNAL: Gets the actions to be performed in the database as part of the schema drop.
 java.lang.String getName()
          INTERNAL: Gets the name of the database schema.
 Table getTableByName(java.lang.String name)
          INTERNAL: Gets a table definition by name.
 java.util.Collection getTables()
          INTERNAL: Gets all the tables in the database schema.
 void removeDataType(DataType datatype, java.lang.String platform)
          INTERNAL: Remove the platform specific datatype.
 void removeTable(Table table)
          INTERNAL: Removes the table from the database schema.
 void setName(java.lang.String name)
          INTERNAL: Gets the name of the database schema.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name

tables

protected java.util.Map tables

datatypes

protected java.util.Map datatypes

c_actions

protected java.util.Map c_actions

d_actions

protected java.util.Map d_actions
Constructor Detail

Project

public Project()
Method Detail

getName

public java.lang.String getName()
INTERNAL: Gets the name of the database schema.


setName

public void setName(java.lang.String name)
INTERNAL: Gets the name of the database schema.


getTableByName

public Table getTableByName(java.lang.String name)
INTERNAL: Gets a table definition by name.


getTables

public java.util.Collection 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 java.util.Collection getDataTypePlatforms()
INTERNAL: Gets all datatype platforms.


getDataTypeByName

public DataType getDataTypeByName(java.lang.String name,
                                  java.lang.String platform)
INTERNAL: Gets a datatype definition by name.


getDataTypeByName

public DataType getDataTypeByName(java.lang.String name,
                                  java.lang.String[] platforms)

getDataTypes

public java.util.Collection getDataTypes(java.lang.String platform)
INTERNAL: Gets all the datatypes for the given platforms.


getDataTypes

public java.util.Collection getDataTypes(java.lang.String[] platforms)

addDataType

public void addDataType(DataType datatype,
                        java.lang.String platform)
INTERNAL: Add the platform specific datatype.


removeDataType

public void removeDataType(DataType datatype,
                           java.lang.String platform)
INTERNAL: Remove the platform specific datatype.


getCreateActions

public java.util.List getCreateActions(java.lang.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(java.lang.String platform,
                            java.lang.String action)
INTERNAL: Sets the actions to be performed in the database as part of the schema create.


getDropActions

public java.util.List getDropActions(java.lang.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(java.lang.String platform,
                          java.lang.String action)
INTERNAL: Sets the actions to be performed in the database as part of the schema drop.



Copyright © 2000-2012 Ontopia.