it.eng.qbe.model.structure
Class DataMartModelStructure

java.lang.Object
  extended by it.eng.qbe.model.structure.DataMartModelStructure

public class DataMartModelStructure
extends java.lang.Object

The Class DataMartModelStructure.

Author:
Andrea Gioia

Constructor Summary
DataMartModelStructure()
          Instantiates a new data mart model structure.
 
Method Summary
 void addEntity(DataMartEntity entity)
          Adds the entity.
 void addField(DataMartField field)
          Adds the field.
 DataMartEntity addRootEntity(java.lang.String name, java.lang.String path, java.lang.String role, java.lang.String type)
          Adds the root entity.
 DataMartEntity getEntity(java.lang.String entityUniqueName)
          Gets the entity.
 DataMartField getField(java.lang.String fieldUniqueName)
          Gets the field.
 long getNextId()
          Gets the next id.
 java.util.List getRootEntities(java.lang.String datamartName)
          Gets the root entities.
 DataMartEntity getRootEntity(java.lang.String entityName)
          Gets the root entity.
 java.util.Iterator getRootEntityIterator(java.lang.String datamartName)
          Gets the root entity iterator.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataMartModelStructure

public DataMartModelStructure()
Instantiates a new data mart model structure.

Method Detail

addRootEntity

public DataMartEntity addRootEntity(java.lang.String name,
                                    java.lang.String path,
                                    java.lang.String role,
                                    java.lang.String type)
Adds the root entity.

Parameters:
name - the name
path - the path
role - the role
type - the type
Returns:
the data mart entity

getRootEntity

public DataMartEntity getRootEntity(java.lang.String entityName)
Gets the root entity.

Parameters:
entityName - the entity name
Returns:
the root entity

getRootEntityIterator

public java.util.Iterator getRootEntityIterator(java.lang.String datamartName)
Gets the root entity iterator.

Parameters:
datamartName - the datamart name
Returns:
the root entity iterator

getRootEntities

public java.util.List getRootEntities(java.lang.String datamartName)
Gets the root entities.

Parameters:
datamartName - the datamart name
Returns:
the root entities

addEntity

public void addEntity(DataMartEntity entity)
Adds the entity.

Parameters:
entity - the entity

getEntity

public DataMartEntity getEntity(java.lang.String entityUniqueName)
Gets the entity.

Parameters:
entityUniqueName - the entity unique name
Returns:
the entity

addField

public void addField(DataMartField field)
Adds the field.

Parameters:
field - the field

getField

public DataMartField getField(java.lang.String fieldUniqueName)
Gets the field.

Parameters:
fieldUniqueName - the field unique name
Returns:
the field

getNextId

public long getNextId()
Gets the next id.

Returns:
the next id

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object