public class OdiLevelAttribute extends AbstractRepositoryEntity implements ILevelAttribute
Modifier and Type | Class and Description |
---|---|
static class |
OdiLevelAttribute.LevelAttributeRole
An enum to indicate the attribute role of this attribute.
|
static class |
OdiLevelAttribute.SCD2LevelAttributeType
An enum to indicate the SCD2 type of the level attribute.
|
static class |
OdiLevelAttribute.SCD3LevelAttributeType
An enum used to indicate the SCD3 type of the level attribute.
|
Constructor and Description |
---|
OdiLevelAttribute(OdiLevel owningLevel,
java.lang.String name)
OdiLevelAttribute constructor.
|
OdiLevelAttribute(OdiLevel owningLevel,
java.lang.String levelAttrName,
OdiDataType levelAttrDataType,
java.lang.Integer levelAttrLength,
java.lang.Integer levelAttrScale)
OdiLevelAttribute constructor.
|
Modifier and Type | Method and Description |
---|---|
OdiColumn |
getBoundColumn()
Get the bound column for this level attribute.
|
OdiColumn |
getBoundStagingColumn()
Get the bound staging column for this level attribute.
|
OdiDataType |
getDataType()
Get the data type that is associated with this level attribute.
|
java.lang.String |
getDescription()
Get the text description for this attribute.
|
java.io.Serializable |
getInternalId() |
OdiLevel |
getLevel()
Get The owning level for this level attribute.
|
java.lang.Number |
getLevelAttributeId()
Get the unique id of this level attribute.
|
java.lang.String |
getName()
Get the name for this level attribute.
|
int |
getPosition()
Get the position number for this attribute.
|
java.lang.Integer |
getScale()
Get the data scale of this level attribute.
|
OdiLevelAttribute.SCD2LevelAttributeType |
getSCD2Type()
Get the SCD2 type for this level attribute.
|
OdiLevelAttribute |
getSCD3EffectiveDateAttr()
Get the SCD3 effective date attribute for this attribute.
|
OdiLevelAttribute |
getSCD3PriorValueAttr()
Get the SCD3 prior value attribute for this attribute, if one exists, else return null.
|
OdiLevelAttribute.SCD3LevelAttributeType |
getSCD3Type()
Get the SCD3 type for this level attribute.
|
IRepositoryEntity |
getSecurityContainer() |
java.lang.Integer |
getSize()
Get the data size (length or precision) of this level attribute.
|
boolean |
isNaturalKeyAttr()
Retrieve the natural key flag for this attribute.
|
boolean |
isSurrogateKeyAttr()
Retrieve the surrogate key flag for this attribute.
|
void |
setBoundColumn(OdiColumn col)
Set the bound column for this level attribute.
|
void |
setBoundStagingColumn(OdiColumn col)
Set the bound staging column for this level attribute.
|
void |
setDataType(OdiDataType levelAttrDataType)
Set the data type that is associated with this level attribute.
|
void |
setDescription(java.lang.String desc)
Set the text description for this level attribute.
|
void |
setIsSurrogateKeyAttr(boolean value)
Set or clear this level attribute as the surrogate key attribute for the owning level.
|
void |
setName(java.lang.String levelAttrName)
Set the name for this level attribute.
|
void |
setScale(java.lang.Integer levelAttrScale)
Set the data scale of this level attribute.
|
void |
setSCD2Type(OdiLevelAttribute.SCD2LevelAttributeType SCD2Type)
Set the SCD2 type for this level attribute.
|
void |
setSCD3EffectiveDateAttr(OdiLevelAttribute levelAttr)
Set the SCD3 effective date attribute for this attribute.
|
void |
setSCD3PriorValueAttr(OdiLevelAttribute levelAttr)
Set the SCD3 prior value attribute for this attribute.
|
void |
setSize(java.lang.Integer size)
Set the data size (length or precision) of this level attribute.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBigNumericId, getGlobalId, getNumericId
public OdiLevelAttribute(OdiLevel owningLevel, java.lang.String name)
owningLevel
- The owning level for this level attribute. Cannot be null.name
- The name of the level attribute. If the passed-in name value is not unique in the owning level, a
unique name will be generated.public OdiLevelAttribute(OdiLevel owningLevel, java.lang.String levelAttrName, OdiDataType levelAttrDataType, java.lang.Integer levelAttrLength, java.lang.Integer levelAttrScale)
owningLevel
- The owning level for this level attribute. Cannot be null.levelAttrName
- The name of the level attribute. If the passed-in name is not unique in the level, a \
unique name will be generated.levelAttrDataType
- The level attribute data type. It must be a data type owned by the generic technology.levelAttrLength
- The data length/precision or size for the level attribute. Can be set to null if size is not applicable for the data type.levelAttrScale
- The data scale for the level attribute. Can be set to null if scale is not applicable for the data type.public void setName(java.lang.String levelAttrName)
ILevelAttribute
setName
in interface ILevelAttribute
levelAttrName
- The name to set.public java.lang.String getName()
ILevelAttribute
getName
in interface ILevelAttribute
getName
in interface IModelObject
public void setDescription(java.lang.String desc)
ILevelAttribute
setDescription
in interface ILevelAttribute
desc
- The description to set.public java.lang.String getDescription()
ILevelAttribute
getDescription
in interface ILevelAttribute
public java.io.Serializable getInternalId()
public java.lang.Number getLevelAttributeId()
public IRepositoryEntity getSecurityContainer()
public OdiDataType getDataType()
ILevelAttribute
getDataType
in interface ILevelAttribute
public void setDataType(OdiDataType levelAttrDataType)
ILevelAttribute
setDataType
in interface ILevelAttribute
levelAttrDataType
- The data type object to set for this level attribute.public int getPosition()
ILevelAttribute
getPosition
in interface ILevelAttribute
public java.lang.Integer getSize()
ILevelAttribute
getSize
in interface ILevelAttribute
public void setSize(java.lang.Integer size)
ILevelAttribute
setSize
in interface ILevelAttribute
size
- The size to setpublic java.lang.Integer getScale()
ILevelAttribute
getScale
in interface ILevelAttribute
public void setScale(java.lang.Integer levelAttrScale)
ILevelAttribute
setScale
in interface ILevelAttribute
scale
- the scale to setpublic OdiLevel getLevel()
ILevelAttribute
getLevel
in interface ILevelAttribute
public OdiLevelAttribute getSCD3PriorValueAttr()
ILevelAttribute
getSCD3PriorValueAttr
in interface ILevelAttribute
public void setSCD3PriorValueAttr(OdiLevelAttribute levelAttr)
ILevelAttribute
setSCD3PriorValueAttr
in interface ILevelAttribute
SCD3PriorValue
- The SCD3 prior value attribute.public boolean isSurrogateKeyAttr()
ILevelAttribute
isSurrogateKeyAttr
in interface ILevelAttribute
public void setIsSurrogateKeyAttr(boolean value)
value
- If true, set this as the surrogate key attribute, if false, clear the
surrogate key flag so that this level attribute will not function as
the surrogate key level attribute.public OdiLevelAttribute getSCD3EffectiveDateAttr()
ILevelAttribute
getSCD3EffectiveDateAttr
in interface ILevelAttribute
public void setSCD3EffectiveDateAttr(OdiLevelAttribute levelAttr)
ILevelAttribute
setSCD3EffectiveDateAttr
in interface ILevelAttribute
levelAttr
- The SCD3 effective date attribute to set for this attribute.public void setSCD2Type(OdiLevelAttribute.SCD2LevelAttributeType SCD2Type)
SCD2Type
- The SCD2 type to set.public OdiLevelAttribute.SCD2LevelAttributeType getSCD2Type()
ILevelAttribute
getSCD2Type
in interface ILevelAttribute
public OdiLevelAttribute.SCD3LevelAttributeType getSCD3Type()
ILevelAttribute
getSCD3Type
in interface ILevelAttribute
public OdiColumn getBoundColumn()
ILevelAttribute
getBoundColumn
in interface ILevelAttribute
public OdiColumn getBoundStagingColumn()
ILevelAttribute
getBoundStagingColumn
in interface ILevelAttribute
public void setBoundColumn(OdiColumn col)
ILevelAttribute
setBoundColumn
in interface ILevelAttribute
col
- The bound column to set.public void setBoundStagingColumn(OdiColumn col)
ILevelAttribute
setBoundStagingColumn
in interface ILevelAttribute
col
- The bound staging column to set.public boolean isNaturalKeyAttr()
ILevelAttribute
isNaturalKeyAttr
in interface ILevelAttribute