public class OdiDimension extends oracle.odi.domain.support.AbstractOdiEntity implements IWorkDevelopmentOdiEntity, IDimension, oracle.odi.domain.impexp.IExportable, oracle.odi.impexp.smartie.ISmartExportable, IFlexFieldUser
| Constructor and Description |
|---|
OdiDimension(OdiDimensionalModel dimModel,
java.lang.String dimName)
Dimension constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addHierarchy(OdiHierarchy hier)
Add a hierarchy to this level.
|
void |
addLevel(OdiLevel level)
Add a level to this dimension.
|
OdiHierarchy |
findHierarchy(java.lang.String hierName)
Find a hierarchy with the specified name in this dimension.
|
OdiDataStore |
getBoundDataStore()
Get the bound data store for this dimension.
|
ISequence |
getBoundSequence()
Get the bound sequence for this dimension.
|
OdiHierarchy |
getDefaultHierarchy()
Get the default hierarchy for this dimension.
|
java.lang.String |
getDescription()
Get the description for this dimension.
|
OdiDimensionalModel |
getDimensionalModel()
Get the dimensional model that contains this dimension.
|
java.lang.Number |
getDimensionId()
Get the internal unique id for this dimension object.
|
java.util.Collection |
getFlexFieldsValues()
Obtains flex fields values related to this object.
|
java.util.List |
getHierarchies()
Get the list of hierarchies owned by this dimension.
|
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 |
getLevels()
Get The list of levels owned by this dimension.
|
java.util.List |
getLevelsOrderedByPosition()
Get The list of levels, sorted by display order.
|
java.util.List |
getLevelsOrderedForLoading()
Get the levels sorted by hierarchical order, from top to bottom.
|
java.lang.String |
getName()
Returns the name of this entity instance.
|
java.util.List |
getOrderedHierarchies()
Get a copy of the hierarchies list, sorted by display order.
|
boolean |
hasValidationError()
Get whether this dimension has validation error.
|
boolean |
hasValidationWarning()
Get whether this dimension has validation warning.
|
void |
initFlexFields(IOdiFlexFieldFinder pOdiFlexFieldFinder)
See interface for specifics.
|
void |
moveHierarchyAfter(OdiHierarchy hier,
OdiHierarchy baseHier)
Move the specified hierarchy to put it after the specified base hierarchy.
|
void |
moveLevelAfter(OdiLevel level,
OdiLevel baseLevel)
Reorder the specified level to put it after the specified base level.
|
void |
removeHierarchy(OdiHierarchy hier)
Remove a hierarchy from this dimension.
|
void |
removeLevel(OdiLevel lev)
Remove the specified level from this dimension.
|
void |
setBoundDataStore(OdiDataStore ds)
Set the bound data store for this dimension.
|
void |
setBoundSequence(OdiSequence seq)
Set the bound sequence for this dimension.
|
void |
setDefaultHierarchy(OdiHierarchy h)
Set one particular hierarchy among the hierarchies of this dimension to be the default
hierarchy.
|
void |
setDescription(java.lang.String desc)
Set the description of this dimension.
|
void |
setName(java.lang.String dimName)
Set the name of this dimension.
|
java.util.List |
validate()
Validate the dimension.
|
boolean |
validateHierarchies()
Return true if the hierarchies in this dimension are valid.
|
getFirstDate, getFirstUser, getInternalVersion, getLastDate, getLastUser, isInstanceLevelSecurityNeeded, isNew, preCommit, toStringequals, getBigNumericId, getGlobalId, getNumericId, getParent, hashCodegetBigNumericId, getGlobalId, getNumericIdgetFirstDate, getFirstUser, getLastDate, getLastUser, isInstanceLevelSecurityNeededgetGlobalId, getParentpublic OdiDimension(OdiDimensionalModel dimModel, java.lang.String dimName)
dimModel - The dimensional model that will contain the new dimension.dimName - The name of the new dimension.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 getDimensionId()
public OdiDimensionalModel getDimensionalModel()
IDimensiongetDimensionalModel in interface IDimensionpublic java.lang.String getName()
IOdiEntitygetName in interface IDimensiongetName in interface IFlexFieldUsergetName in interface IModelObjectgetName in interface IOdiEntitygetName in class oracle.odi.domain.support.AbstractOdiEntitypublic void setName(java.lang.String dimName)
IDimensionsetName in interface IDimensiondimName - The name to set.public void setDescription(java.lang.String desc)
IDimensionsetDescription in interface IDimensiondesc - The description to set.public java.lang.String getDescription()
IDimensiongetDescription in interface IDimensionpublic java.util.List getLevelsOrderedByPosition()
IDimensiongetLevelsOrderedByPosition in interface IDimensionpublic java.util.List getLevels()
IDimensiongetLevels in interface IDimensionpublic java.util.List getLevelsOrderedForLoading()
getLevelsOrderedForLoading in interface IDimensionpublic boolean validateHierarchies()
public void addLevel(OdiLevel level)
level - The level to add.public void removeLevel(OdiLevel lev)
IDimensionremoveLevel in interface IDimensionlev - The level to be removed.public void moveLevelAfter(OdiLevel level, OdiLevel baseLevel)
moveLevelAfter in interface IDimensionlevel - The level to reorder.baseLevel - The base level. If null, the reordered level will be put first.public java.util.List getHierarchies()
IDimensiongetHierarchies in interface IDimensionpublic java.util.List getOrderedHierarchies()
IDimensiongetOrderedHierarchies in interface IDimensionpublic void addHierarchy(OdiHierarchy hier)
hier - The hierarchy to add.public void moveHierarchyAfter(OdiHierarchy hier, OdiHierarchy baseHier)
moveHierarchyAfter in interface IDimensionhier - The hierarchy to reorder.baseHier - The base hierarchy. If null, the reordered hierarchy will be put first.public void removeHierarchy(OdiHierarchy hier)
IDimensionremoveHierarchy in interface IDimensionhier - The hierarchy to remove.public OdiHierarchy findHierarchy(java.lang.String hierName)
IDimensionfindHierarchy in interface IDimensionhierName - The hierarchy name to search for.public OdiDataStore getBoundDataStore()
IDimensiongetBoundDataStore in interface IDimensionpublic void setBoundDataStore(OdiDataStore ds)
IDimensionsetBoundDataStore in interface IDimensionds - The bound data store model.public void setBoundSequence(OdiSequence seq)
IDimensionsetBoundSequence in interface IDimensionseq - The bound sequence model.public ISequence getBoundSequence()
IDimensiongetBoundSequence in interface IDimensionpublic void setDefaultHierarchy(OdiHierarchy h)
IDimensionsetDefaultHierarchy in interface IDimensionh - The hierarchy that will be set as the default hierarchy.public OdiHierarchy getDefaultHierarchy()
IDimensiongetDefaultHierarchy in interface IDimensionpublic java.util.List validate()
public boolean hasValidationError()
IDimensionhasValidationError in interface IDimensionpublic boolean hasValidationWarning()
IDimensionhasValidationWarning in interface IDimensionpublic 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