|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.vc.config.EffectivityConfigSpec
public class EffectivityConfigSpec
The EffectivityConfigSpec can be used to filter elements to return only those that are effective, given a date/unit value and (possibly) a configuration item.
Use the newEffectivityConfigSpec static factory method(s),
not the EffectivityConfigSpec constructor, to construct
instances of this class. Instances must be constructed using the static
factory(s), in order to ensure proper initialization of the instance.
Supported API: true
Extendable: false
EffectivityManageable,
Serialized Form| Field Summary | |
|---|---|
static String |
EFFECTIVE_CONFIG_ITEM
Label for the attribute; The ConfigurationItem that constrains the effectiveDate/effectiveUnit values. |
static String |
EFFECTIVE_DATE
Label for the attribute; When a date value is specified, only versions with a date range that includes the value are considered. |
static String |
EFFECTIVE_UNIT
Label for the attribute; The string value that must fit in the range of a version using the standard string comparison (which would yield 9 > 10). |
static String |
EFFECTIVITY_TYPE
Label for the attribute; The effectivityType can be any of the EffectivityType values. |
| Method Summary | |
|---|---|
QuerySpec |
appendSearchCriteria(QuerySpec querySpec)
For a non-null date value with no effectiveConfigItem, appends a "configItemRef = NULL AND getEffectiveDate() >= startDate AND (getEffectiveDate() <= endDate OR endDate = WTDatedEffectivity.END_DATE)". |
ConfigurationItem |
getEffectiveConfigItem()
Gets the value of the attribute: EFFECTIVE_CONFIG_ITEM. |
Timestamp |
getEffectiveDate()
Gets the value of the attribute: EFFECTIVE_DATE. |
String |
getEffectiveUnit()
Gets the value of the attribute: EFFECTIVE_UNIT. |
EffectivityType |
getEffectivityType()
Gets the value of the attribute: EFFECTIVITY_TYPE. |
protected void |
initialize(ConfigurationItem effectiveConfigItem,
String effectiveUnit)
Supports initialization, following construction of an instance. |
protected void |
initialize(ConfigurationItem effectiveConfigItem,
Timestamp effectiveDate)
Supports initialization, following construction of an instance. |
protected void |
initialize(Timestamp effectiveDate)
Supports initialization, following construction of an instance. |
static EffectivityConfigSpec |
newEffectivityConfigSpec(ConfigurationItem effectiveConfigItem,
String effectiveUnit)
Constructs a unit-based EffectivityConfigSpec with the given configuration item and effective value. |
static EffectivityConfigSpec |
newEffectivityConfigSpec(ConfigurationItem effectiveConfigItem,
Timestamp effectiveDate)
Constructs an EffectivityConfigSpec with a configuration item-based date effective value. |
static EffectivityConfigSpec |
newEffectivityConfigSpec(Timestamp effectiveDate)
Constructs an EffectivityConfigSpec with a global effective date value. |
QueryResult |
process(QueryResult results)
Returns the latest version for each master if more than one version for a particular master is effective. |
void |
setEffectiveConfigItem(ConfigurationItem a_EffectiveConfigItem)
Sets the value of the attribute: EFFECTIVE_CONFIG_ITEM. |
void |
setEffectiveDate(Timestamp a_EffectiveDate)
Sets the value of the attribute: EFFECTIVE_DATE. |
void |
setEffectiveUnit(String a_EffectiveUnit)
Sets the value of the attribute: EFFECTIVE_UNIT. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String EFFECTIVE_DATE
public static final String EFFECTIVE_UNIT
public static final String EFFECTIVITY_TYPE
EffectivityType,
Constant Field Valuespublic static final String EFFECTIVE_CONFIG_ITEM
| Method Detail |
|---|
public Timestamp getEffectiveDate()
public void setEffectiveDate(Timestamp a_EffectiveDate)
throws WTPropertyVetoException
a_EffectiveDate -
WTPropertyVetoExceptionpublic String getEffectiveUnit()
public void setEffectiveUnit(String a_EffectiveUnit)
throws WTPropertyVetoException
a_EffectiveUnit -
WTPropertyVetoException
public EffectivityType getEffectivityType()
throws ObjectNoLongerExistsException
ObjectNoLongerExistsExceptionEffectivityType
public ConfigurationItem getEffectiveConfigItem()
throws ObjectNoLongerExistsException
ObjectNoLongerExistsException
public void setEffectiveConfigItem(ConfigurationItem a_EffectiveConfigItem)
throws WTPropertyVetoException
a_EffectiveConfigItem -
WTPropertyVetoException
public QuerySpec appendSearchCriteria(QuerySpec querySpec)
throws WTException,
QueryException
For a non-null unit value, appends a "configItemRef = getEffectiveConfigItem() AND getEffectiveUnit() >= startNumber AND (getEffectiveUnit() <= endNumber OR endNumber = UnitEffectivity.END_NUMBER)".
appendSearchCriteria in interface ConfigSpecquerySpec - A QuerySpec with a target class that is Iterated.
WTException
QueryExceptionQuerySpec,
SearchCondition
public QueryResult process(QueryResult results)
throws WTException
process in interface ConfigSpecresults - QueryResult of iterations to filter. Assumed to be the result of a query that included the additional search conditions applied by appendSearchCriteria. Note that after enumerating through the elements of this QueryResult, it should be reset.
WTExceptionQueryResult,
Iterated
public static EffectivityConfigSpec newEffectivityConfigSpec(Timestamp effectiveDate)
throws WTPropertyVetoException
effectiveDate -
WTPropertyVetoException
protected void initialize(Timestamp effectiveDate)
throws WTPropertyVetoException
effectiveDate -
WTPropertyVetoException
public static EffectivityConfigSpec newEffectivityConfigSpec(ConfigurationItem effectiveConfigItem,
Timestamp effectiveDate)
throws WTPropertyVetoException
effectiveConfigItem - effectiveDate -
WTPropertyVetoException
protected void initialize(ConfigurationItem effectiveConfigItem,
Timestamp effectiveDate)
throws WTPropertyVetoException
effectiveConfigItem - effectiveDate -
WTPropertyVetoException
public static EffectivityConfigSpec newEffectivityConfigSpec(ConfigurationItem effectiveConfigItem,
String effectiveUnit)
throws WTPropertyVetoException
effectiveConfigItem - effectiveUnit -
WTPropertyVetoException
protected void initialize(ConfigurationItem effectiveConfigItem,
String effectiveUnit)
throws WTPropertyVetoException
effectiveConfigItem - effectiveUnit -
WTPropertyVetoException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||