public class OdiCube extends AbstractOdiEntity implements IWorkDevelopmentOdiEntity, ICube, IFlexFieldUser
Constructor and Description |
---|
OdiCube(OdiDimensionalModel pModel,
java.lang.String pName)
Cube constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addCubeUsesDimension(OdiCubeUsesDimension pUsesDimension)
Add a cube uses dimension into this cube.
|
void |
addMeasure(OdiMeasure pMeasure)
Add a measure into this cube.
|
OdiMeasure |
findMeasure(java.lang.String pName)
Find a measure by the specified name in this cube.
|
OdiDataStore |
getBoundDataStore()
Get the bound table of this cube.
|
java.lang.Number |
getCubeId()
Returns the internal identifier of this cube.
|
java.util.List |
getCubeUsesDimensions()
Get a list of cube uses dimensions owned by this cube.
|
java.lang.String |
getDescription()
Get the description of this cube.
|
OdiDimensionalModel |
getDimensionalModel()
Get the dimensional model that contains this cube.
|
java.util.Collection |
getFlexFieldsValues()
Obtains flex fields values related to this object.
|
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.util.List |
getMeasures()
Get a list of measures owned by this cube.
|
java.lang.String |
getName()
Returns the name of this entity instance.
|
java.util.List |
getOrderedCubeUsesDimensions()
Get a list of sorted cube uses dimension.
|
java.util.List |
getOrderedMeasures()
Get a sorted list of measures owned by this cube.
|
IRepositoryEntity |
getSecurityContainer() |
boolean |
hasValidationError()
Check whether this cube has validation error(s).
|
boolean |
hasValidationWarning()
Check whether this cube ahs validation warning(s).
|
void |
initFlexFields(IOdiFlexFieldFinder pOdiFlexFieldFinder)
See interface for specifics.
|
void |
moveCubeUsesDimensionAfter(OdiCubeUsesDimension pFirstUsesDimension,
OdiCubeUsesDimension pSecondUsesDimension)
Move the first specified cube uses dimension to put it after the second specified
cube uses dimension.
|
void |
moveCubeUsesDimensionBefore(OdiCubeUsesDimension pFirstUsesDimension,
OdiCubeUsesDimension pSecondUsesDimension)
Move the first specified cube uses dimension to put it before the second specified
cube uses dimension.
|
void |
moveMeasureAfter(OdiMeasure pFirstMeasure,
OdiMeasure pSecondMeasure)
Move the first specified measure to put it after the second specified
measure.
|
void |
moveMeasureBefore(OdiMeasure pFirstMeasure,
OdiMeasure pSecondMeasure)
Move the first specified measure to put it before the second specified
measure.
|
void |
removeCubeUsesDimension(OdiCubeUsesDimension pUsesDimension)
Remove the specified cube uses dimension from this cube.
|
void |
removeMeasure(OdiMeasure pMeasure)
Remove the specified measure from this cube.
|
void |
setBoundDataStore(OdiDataStore pBoundTable)
Set the bound table for this cube.
|
void |
setDescription(java.lang.String pDescription)
Set the description for this cube.
|
void |
setName(java.lang.String pName)
Set the name for this cube.
|
java.util.List |
validate()
Validate the cube.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBigNumericId, getGlobalId, getNumericId
getFirstDate, getFirstUser, getLastDate, getLastUser, isInstanceLevelSecurityNeeded
getGlobalId, getParent
public OdiCube(OdiDimensionalModel pModel, java.lang.String pName)
pModel
- The dimensional model that will contain the new cube.pName
- The name of the new cube.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 getCubeId()
public IRepositoryEntity getSecurityContainer()
getSecurityContainer
in interface IRepositoryEntity
public OdiDimensionalModel getDimensionalModel()
ICube
getDimensionalModel
in interface ICube
public java.lang.String getName()
IOdiEntity
getName
in interface IFlexFieldUser
getName
in interface IModelObject
getName
in interface IOdiEntity
public void setName(java.lang.String pName)
ICube
public void setDescription(java.lang.String pDescription)
ICube
setDescription
in interface ICube
pDescription
- The description to be set.public java.lang.String getDescription()
ICube
getDescription
in interface ICube
public void addMeasure(OdiMeasure pMeasure)
ICube
addMeasure
in interface ICube
pMeasure
- The measure to be added.public OdiMeasure findMeasure(java.lang.String pName)
ICube
findMeasure
in interface ICube
pName
- the measure name to search for.public void removeMeasure(OdiMeasure pMeasure)
ICube
removeMeasure
in interface ICube
pMeasure
- The measure to be removed.public java.util.List getMeasures()
ICube
getMeasures
in interface ICube
public java.util.List getOrderedMeasures()
ICube
getOrderedMeasures
in interface ICube
public void moveMeasureAfter(OdiMeasure pFirstMeasure, OdiMeasure pSecondMeasure)
ICube
moveMeasureAfter
in interface ICube
pFirstMeasure
- The measure to be moved.pSecondMeasure
- The after measure.public void moveMeasureBefore(OdiMeasure pFirstMeasure, OdiMeasure pSecondMeasure)
ICube
moveMeasureBefore
in interface ICube
pFirstMeasure
- The measure to be moved.pSecondMeasure
- the before measure.public void addCubeUsesDimension(OdiCubeUsesDimension pUsesDimension)
ICube
addCubeUsesDimension
in interface ICube
pUsesDimension
- The cube uses dimension to be added.public void removeCubeUsesDimension(OdiCubeUsesDimension pUsesDimension)
ICube
removeCubeUsesDimension
in interface ICube
pUsesDimension
- The cube uses dimension to be removed.public java.util.List getCubeUsesDimensions()
ICube
getCubeUsesDimensions
in interface ICube
public java.util.List getOrderedCubeUsesDimensions()
ICube
getOrderedCubeUsesDimensions
in interface ICube
public void moveCubeUsesDimensionAfter(OdiCubeUsesDimension pFirstUsesDimension, OdiCubeUsesDimension pSecondUsesDimension)
ICube
moveCubeUsesDimensionAfter
in interface ICube
pFirstUsesDimension
- The cube uses Dimension to be moved.pSecondUsesDimension
- The after cube uses dimension.public void moveCubeUsesDimensionBefore(OdiCubeUsesDimension pFirstUsesDimension, OdiCubeUsesDimension pSecondUsesDimension)
ICube
moveCubeUsesDimensionBefore
in interface ICube
pFirstUsesDimension
- The cube uses Dimension to be moved.pSecondUsesDimension
- The before cube uses dimension.public OdiDataStore getBoundDataStore()
ICube
getBoundDataStore
in interface ICube
public void setBoundDataStore(OdiDataStore pBoundTable)
ICube
setBoundDataStore
in interface ICube
pBoundTable
- The bound table.public boolean hasValidationError()
ICube
hasValidationError
in interface ICube
public boolean hasValidationWarning()
ICube
hasValidationWarning
in interface ICube
public java.util.List validate()
public java.util.Collection getFlexFieldsValues()
Obtains flex fields values related to this object.
Method initFlexFields(IOdiFlexFieldFinder)
should be
called before calling this method.
getFlexFieldsValues
in interface IFlexFieldUser
IFlexFieldUser.getFlexFieldsValues()
public void initFlexFields(IOdiFlexFieldFinder pOdiFlexFieldFinder)
initFlexFields
in interface IFlexFieldUser
pOdiFlexFieldFinder
- OdiFlexField
finder to be used to query flex fields