public class OdiDimensionalModel extends AbstractOdiEntity implements IWorkDevelopmentOdiEntity, IImportRoot, IDimensionalModel
Constructor and Description |
---|
OdiDimensionalModel(java.lang.String dimModelName)
OdiDimensionalModel constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addCube(OdiCube cube) |
void |
addDimension(OdiDimension dim)
Add the specified dimension to this dimensional model if this dimensional model
does not contain the specified dimension.
|
java.util.List |
getCubes()
Get the list of cubes that are contained in this dimensional model.
|
java.lang.String |
getDescription()
Get the description of this dimensional model.
|
java.lang.Number |
getDimensionalModelId()
Get the internal id value for this dimensional model.
|
java.util.List |
getDimensions()
Get the list of dimension objects contained by this dimensional model.
|
java.io.Serializable |
getInternalId()
Provides a common getter for the persistence layer to obtain an identity,
irrespective of the actual type of identity used.
|
java.lang.String |
getModelCode()
Get the code for this model.
|
java.lang.String |
getName()
Returns the name of this entity instance.
|
IRepositoryEntity |
getSecurityContainer() |
void |
removeCube(OdiCube cube)
Remove a cube from this dimensional model.
|
void |
removeDimension(OdiDimension dim)
Remove a dimension from this model.
|
void |
setDescription(java.lang.String desc)
Set the description of this dimensional model.
|
void |
setModelCode(java.lang.String modelCode)
Set the code for this model.
|
void |
setName(java.lang.String name)
Set the name of this dimensional model.
|
boolean |
supportsImport(java.lang.Class pChildClass)
Returns whether the given entity type is supported to be imported
into that root import object.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFirstDate, getFirstUser, getLastDate, getLastUser, isInstanceLevelSecurityNeeded
getGlobalId, getParent
getBigNumericId, getGlobalId, getNumericId
public OdiDimensionalModel(java.lang.String dimModelName)
dimModelName
- The name of the model.public java.io.Serializable getInternalId()
IRepositoryEntity
Typically a subclass will delegate to a public
SomePrimitiveWrapper getId()
method. The necessity for the
getInternalId()
abstract method is solely because the
persistence layer needs a way of obtaining the identity irrespective of
the actual identity implementation choice.
Returning null
from this method will indicate the object has
never been saved. This will likely be relied on by some DAO
implementations.
getInternalId
in interface IRepositoryEntity
public java.lang.Number getDimensionalModelId()
public IRepositoryEntity getSecurityContainer()
getSecurityContainer
in interface IRepositoryEntity
public void setName(java.lang.String name)
IDimensionalModel
setName
in interface IDimensionalModel
public java.lang.String getName()
IOdiEntity
getName
in interface IDimensionalModel
getName
in interface IModelObject
getName
in interface IOdiEntity
public void setDescription(java.lang.String desc)
IDimensionalModel
setDescription
in interface IDimensionalModel
desc
- The description to set.public java.lang.String getDescription()
IDimensionalModel
getDescription
in interface IDimensionalModel
public java.util.List getDimensions()
IDimensionalModel
getDimensions
in interface IDimensionalModel
public void addDimension(OdiDimension dim)
dim
- The dimension that should be added to this dimensional modelpublic void removeDimension(OdiDimension dim)
IDimensionalModel
removeDimension
in interface IDimensionalModel
dim
- The dimension to remove.public void setModelCode(java.lang.String modelCode)
IDimensionalModel
setModelCode
in interface IDimensionalModel
modelCode
- The model code to set.public java.lang.String getModelCode()
IDimensionalModel
getModelCode
in interface IDimensionalModel
public java.util.List getCubes()
IDimensionalModel
getCubes
in interface IDimensionalModel
public void addCube(OdiCube cube)
public void removeCube(OdiCube cube)
IDimensionalModel
removeCube
in interface IDimensionalModel
cube
- The cube to remove.public boolean supportsImport(java.lang.Class pChildClass)
IImportRoot
supportsImport
in interface IImportRoot
pChildClass
- the class of object to be imported into this onetrue
if the given type could be imported, false
otherwise