public interface ILevel extends IModelObject
Modifier and Type | Method and Description |
---|---|
void |
addNaturalKeyMember(ILevelAttribute levelAttr)
Add a natural key member to the list of natural key objects owned by this level.
|
ILevelAttribute |
findLevelAttribute(java.lang.String name)
Find a level attribute with the specified name.
|
INaturalKeyMember |
findNaturalKeyMemberByAttributeName(java.lang.String name)
Find a natural key member with the specified name.
|
IDataStore |
getBoundDataStore()
Get the bound data store for this level.
|
IDataStore |
getBoundStagingDataStore()
Get the bound staging data store for this level.
|
java.lang.String |
getDescription()
Get the text description for this level.
|
IDimension |
getDimension()
Get the Owning Dimension for this level.
|
java.util.List |
getLevelAttributes()
Get the list of level attributes that are owned by this level.
|
java.lang.String |
getName()
Get the name for this level.
|
java.util.List |
getNaturalKeyMembers()
Get the ordered list of natural key member objects owned by this level.
|
java.util.List |
getOrderedNaturalKeyMembers()
Get the list of natural key member objects owned by this level, sorted by display order.
|
java.util.List |
getParentRefs()
Get the list of parent ref objects associated with this level.
|
int |
getPosition()
Get the display position number for this level.
|
ILevelAttribute |
getSCD2CurrentFlagAttribute()
Get the level attribute that is acting as the SCD type 2 current flag level attribute.
|
ILevelAttribute |
getSCD2EndDateAttribute()
Get the SCD type 2 end date attribute.
|
ILevelAttribute |
getSCD2StartDateAttribute()
Get the SCD type 2 start date attribute.
|
java.util.List |
getSCD2TriggerAttributes()
Get the list of SCD type 2 trigger level attributes, by name.
|
ILevelAttribute |
getSurrogateKeyAttribute()
Get the surrogate key level attribute.
|
void |
moveLevelAttributeAfter(ILevelAttribute levelAttr,
ILevelAttribute baseLevelAttr)
Reorder the specified level attribute to put it after the specified base level attribute.
|
void |
removeLevelAttribute(ILevelAttribute levelAttr)
Remove the specified level attribute from this level.
|
void |
removeParentRef(IParentRef pRef)
Remove a parent reference object from this level.
|
void |
setBoundDataStore(IDataStore ds)
Set the bound data store for this level.
|
void |
setBoundStagingDataStore(IDataStore stageTable)
Set the bound staging data store for this level.
|
void |
setDescription(java.lang.String desc)
Set a text description for this level.
|
void |
setName(java.lang.String levelName)
Set the name for this level.
|
void |
setNaturalKeyAttributes(java.lang.String[] keyAttrNames)
Set a set of level attributes as natural key attributes, by name.
|
void |
setSCD2CurrentFlagAttribute(ILevelAttribute levelAttr)
Set the specified attribute as an SCD type 2 current flag.
|
void |
setSCD2CurrentFlagAttribute(java.lang.String attrName)
Set the specified attribute as an SCD type 2 current flag, by name.
|
void |
setSCD2EndDateAttribute(ILevelAttribute levelAttr)
Set the specified attribute as an SCD type 2 end date attribute.
|
void |
setSCD2EndDateAttribute(java.lang.String attrName)
Set the specified attribute as an SCD type 2 end date attribute, by name.
|
void |
setSCD2StartDateAttribute(ILevelAttribute levelAttr)
Set the specified attribute as an SCD type 2 start date attribute.
|
void |
setSCD2StartDateAttribute(java.lang.String attrName)
Set the specified attribute as an SCD type 2 start date attribute, by name.
|
void |
setSCD2TriggerAttribute(ILevelAttribute levelAttr)
Set the specified attribute as an SCD type 2 trigger attribute.
|
void |
setSCD2TriggerAttribute(java.lang.String attrName)
Set the specified attribute as an SCD type 2 trigger attribute, by name.
|
void |
setSurrogateKeyAttribute(ILevelAttribute surrogateKeyAttr)
Get the surrogate key level attribute.
|
void |
setSurrogateKeyAttribute(java.lang.String keyAttrName)
A convenience method to set the surrogate key attribute by name.
|
getBigNumericId, getGlobalId, getNumericId
void setName(java.lang.String levelName)
levelName
- The name to set.java.lang.String getName()
getName
in interface IModelObject
void setDescription(java.lang.String desc)
desc
- The text description to set.java.lang.String getDescription()
IDimension getDimension()
java.util.List getParentRefs()
void removeParentRef(IParentRef pRef)
pRef
- The parent reference object to remove.java.util.List getLevelAttributes()
LevelAttribute
objects.void moveLevelAttributeAfter(ILevelAttribute levelAttr, ILevelAttribute baseLevelAttr)
levelAttr
- The level to reorder.baseLevelAttr
- The base level. If null, the reordered level will be put first.void removeLevelAttribute(ILevelAttribute levelAttr)
levelAttr
- The level attribute to be removed.ILevelAttribute getSurrogateKeyAttribute()
void setSurrogateKeyAttribute(ILevelAttribute surrogateKeyAttr)
surrogateKeyAttr
- the level attribute to set as the surrogate key attribute.void setSurrogateKeyAttribute(java.lang.String keyAttrName) throws java.lang.Exception
keyAttrName
- The name of the level attribute to set as the surrogate key attribute. If no matching
level attribute is found, an exception is thrown.java.lang.Exception
ILevelAttribute findLevelAttribute(java.lang.String name)
name
- The name to match.INaturalKeyMember findNaturalKeyMemberByAttributeName(java.lang.String name)
name
- The name to matchvoid setNaturalKeyAttributes(java.lang.String[] keyAttrNames) throws java.lang.Exception
keyAttrNames
- A set of level attribute names used to find a set of level attributes
that will be set as the natural key attributes. If any of the names are not found, then
an exception is thrown.java.lang.Exception
java.util.List getNaturalKeyMembers()
java.util.List getOrderedNaturalKeyMembers()
void addNaturalKeyMember(ILevelAttribute levelAttr)
levelAttr
- The level attribute to add as a natural key member. The new natural
key member will be appended to the existing list of members.void setSCD2TriggerAttribute(ILevelAttribute levelAttr)
levelAttr
- The level attribute to be set as an SCD2 trigger.void setSCD2TriggerAttribute(java.lang.String attrName) throws java.lang.Exception
attrName
- The name of a level attribute to be set as an SCD2 trigger. If no matching
level attribute is found, an exception is thrown.java.lang.Exception
void setSCD2StartDateAttribute(ILevelAttribute levelAttr)
levelAttr
- The level attribute to be set as an SCD2 start date.void setSCD2StartDateAttribute(java.lang.String attrName) throws java.lang.Exception
attrName
- The name of a level attribute to be set as an SCD2 trigger. If no
matching level attribute is found, an exception is thrown.java.lang.Exception
void setSCD2EndDateAttribute(ILevelAttribute levelAttr)
levelAttr
- The level attribute to be set as an SCD2 end date.void setSCD2EndDateAttribute(java.lang.String attrName) throws java.lang.Exception
attrName
- The name of a level attribute to be set as an SCD2 end date. If no matching
level attribute is found, an exception is thrown.java.lang.Exception
void setSCD2CurrentFlagAttribute(java.lang.String attrName) throws java.lang.Exception
attrName
- The name of a level attribute to be set as an SCD2 current flag. If no matching
level attribute is found, an exception is thrown.java.lang.Exception
void setSCD2CurrentFlagAttribute(ILevelAttribute levelAttr)
levelAttr
- The name of a level attribute to be set as an SCD2 current flag. If no matching
level attribute is found, an exception is thrown.ILevelAttribute getSCD2StartDateAttribute()
ILevelAttribute getSCD2EndDateAttribute()
ILevelAttribute getSCD2CurrentFlagAttribute()
java.util.List getSCD2TriggerAttributes()
IDataStore getBoundDataStore()
IDataStore getBoundStagingDataStore()
void setBoundStagingDataStore(IDataStore stageTable)
stageTable
- The bound staging datastore to be set.void setBoundDataStore(IDataStore ds)
ds
- The bound datastore to be set.int getPosition()