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, waitgetBigNumericId, getGlobalId, getNumericIdgetFirstDate, getFirstUser, getLastDate, getLastUser, isInstanceLevelSecurityNeededgetGlobalId, getParentpublic 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 IRepositoryEntitypublic java.lang.Number getCubeId()
public IRepositoryEntity getSecurityContainer()
getSecurityContainer in interface IRepositoryEntitypublic OdiDimensionalModel getDimensionalModel()
ICubegetDimensionalModel in interface ICubepublic java.lang.String getName()
IOdiEntitygetName in interface IFlexFieldUsergetName in interface IModelObjectgetName in interface IOdiEntitypublic void setName(java.lang.String pName)
ICubepublic void setDescription(java.lang.String pDescription)
ICubesetDescription in interface ICubepDescription - The description to be set.public java.lang.String getDescription()
ICubegetDescription in interface ICubepublic void addMeasure(OdiMeasure pMeasure)
ICubeaddMeasure in interface ICubepMeasure - The measure to be added.public OdiMeasure findMeasure(java.lang.String pName)
ICubefindMeasure in interface ICubepName - the measure name to search for.public void removeMeasure(OdiMeasure pMeasure)
ICuberemoveMeasure in interface ICubepMeasure - The measure to be removed.public java.util.List getMeasures()
ICubegetMeasures in interface ICubepublic java.util.List getOrderedMeasures()
ICubegetOrderedMeasures in interface ICubepublic void moveMeasureAfter(OdiMeasure pFirstMeasure, OdiMeasure pSecondMeasure)
ICubemoveMeasureAfter in interface ICubepFirstMeasure - The measure to be moved.pSecondMeasure - The after measure.public void moveMeasureBefore(OdiMeasure pFirstMeasure, OdiMeasure pSecondMeasure)
ICubemoveMeasureBefore in interface ICubepFirstMeasure - The measure to be moved.pSecondMeasure - the before measure.public void addCubeUsesDimension(OdiCubeUsesDimension pUsesDimension)
ICubeaddCubeUsesDimension in interface ICubepUsesDimension - The cube uses dimension to be added.public void removeCubeUsesDimension(OdiCubeUsesDimension pUsesDimension)
ICuberemoveCubeUsesDimension in interface ICubepUsesDimension - The cube uses dimension to be removed.public java.util.List getCubeUsesDimensions()
ICubegetCubeUsesDimensions in interface ICubepublic java.util.List getOrderedCubeUsesDimensions()
ICubegetOrderedCubeUsesDimensions in interface ICubepublic void moveCubeUsesDimensionAfter(OdiCubeUsesDimension pFirstUsesDimension, OdiCubeUsesDimension pSecondUsesDimension)
ICubemoveCubeUsesDimensionAfter in interface ICubepFirstUsesDimension - The cube uses Dimension to be moved.pSecondUsesDimension - The after cube uses dimension.public void moveCubeUsesDimensionBefore(OdiCubeUsesDimension pFirstUsesDimension, OdiCubeUsesDimension pSecondUsesDimension)
ICubemoveCubeUsesDimensionBefore in interface ICubepFirstUsesDimension - The cube uses Dimension to be moved.pSecondUsesDimension - The before cube uses dimension.public OdiDataStore getBoundDataStore()
ICubegetBoundDataStore in interface ICubepublic void setBoundDataStore(OdiDataStore pBoundTable)
ICubesetBoundDataStore in interface ICubepBoundTable - The bound table.public boolean hasValidationError()
ICubehasValidationError in interface ICubepublic boolean hasValidationWarning()
ICubehasValidationWarning in interface ICubepublic 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 IFlexFieldUserIFlexFieldUser.getFlexFieldsValues()public void initFlexFields(IOdiFlexFieldFinder pOdiFlexFieldFinder)
initFlexFields in interface IFlexFieldUserpOdiFlexFieldFinder - OdiFlexField finder to be used to query flex fields