|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.part.WTPartEffectivityConfigSpec
public class WTPartEffectivityConfigSpec
A ConfigSpec used to filter WTParts based on their PDM Effectivity and membership in a view. This filtering can be done in different ways by populating various combinations of the class attributes. The following combinations are valid:
This ConfigSpec considers only versions (latest iterations), and returns at most one version per master (the latest eligible version).
Use the newWTPartEffectivityConfigSpec static factory method(s),
not the WTPartEffectivityConfigSpec 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
Effectivity,
Serialized Form| Field Summary | |
|---|---|
static String |
EFFECTIVE_CONFIG_ITEM
Label for the attribute; Effective revisions will have effectivity which specifies this ConfigurationItem; A derived attribute. |
static String |
EFFECTIVE_CONTEXT
Label for the attribute; Effective revisions will have effectivity which specifies this effectivity context. |
static String |
EFFECTIVE_DATE
Label for the attribute; Effective revisions will have an effective date range which includes this date. |
static String |
EFFECTIVE_PRODUCT
Label for the attribute; Effective revisions will have effectivity which specifies this ConfigurationItem; A derived attribute. |
static String |
EFFECTIVE_PRODUCT_INSTANCE
Label for the attribute; Effective revisions will have effectivity which specifies this ConfigurationItem; A derived attribute. |
static String |
EFFECTIVE_UNIT
Label for the attribute; Effective revisions will have a unit number range which inclues this number. |
static String |
EFFECTIVITY_TYPE
Label for the attribute; The EffectivityType of the effectiveConfigItem attribute; A derived attribute. |
static String |
VIEW
Label for the attribute; If set, only those objects assigned to the view or view-independent are returned. |
| Method Summary | |
|---|---|
QuerySpec |
appendSearchCriteria(QuerySpec querySpec)
Appends to the supplied QuerySpec additional search criteria to reduce the resulting iterations to only those that will be considered by this ConfigSpec. |
ConfigurationItem |
getEffectiveConfigItem()
Gets the value of the attribute: EFFECTIVE_CONFIG_ITEM. |
EffContext |
getEffectiveContext()
Gets the value of the attribute: EFFECTIVE_CONTEXT. |
Timestamp |
getEffectiveDate()
Gets the value of the attribute: EFFECTIVE_DATE. |
WTPartMaster |
getEffectiveProduct()
Gets the value of the attribute: EFFECTIVE_PRODUCT. |
wt.effectivity.WTProductInstance |
getEffectiveProductInstance()
Gets the value of the attribute: EFFECTIVE_PRODUCT_INSTANCE. |
String |
getEffectiveUnit()
Gets the value of the attribute: EFFECTIVE_UNIT. |
EffectivityType |
getEffectivityType()
Gets the value of the attribute: EFFECTIVITY_TYPE. |
View |
getView()
Gets the value of the attribute: VIEW. |
QueryResult |
process(QueryResult results)
Process the QueryResult of iterations, returning only those that "match" according to the algorithm. |
void |
setEffectiveConfigItem(ConfigurationItem a_EffectiveConfigItem)
Sets the value of the attribute: EFFECTIVE_CONFIG_ITEM. |
void |
setEffectiveContext(EffContext a_EffectiveContext)
Sets the value of the attribute: EFFECTIVE_CONTEXT. |
void |
setEffectiveDate(Timestamp a_EffectiveDate)
Sets the value of the attribute: EFFECTIVE_DATE. |
void |
setEffectiveProduct(WTPartMaster a_EffectiveProduct)
Sets the value of the attribute: EFFECTIVE_PRODUCT. |
void |
setEffectiveProductInstance(wt.effectivity.WTProductInstance a_EffectiveProductInstance)
Sets the value of the attribute: EFFECTIVE_PRODUCT_INSTANCE. |
void |
setEffectiveUnit(String a_EffectiveUnit)
Sets the value of the attribute: EFFECTIVE_UNIT. |
void |
setView(View a_View)
Sets the value of the attribute: VIEW. |
| 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
Effectivity,
Constant Field Valuespublic static final String EFFECTIVE_UNIT
Effectivity,
Constant Field Valuespublic static final String EFFECTIVITY_TYPE
Effectivity,
Constant Field Valuespublic static final String EFFECTIVE_CONTEXT
Effectivity,
Constant Field Valuespublic static final String EFFECTIVE_CONFIG_ITEM
Effectivity,
Constant Field Valuespublic static final String EFFECTIVE_PRODUCT_INSTANCE
Effectivity,
Constant Field Valuespublic static final String EFFECTIVE_PRODUCT
Effectivity,
Constant Field Valuespublic static final String VIEW
| Method Detail |
|---|
public Timestamp getEffectiveDate()
Effectivity
public void setEffectiveDate(Timestamp a_EffectiveDate)
throws WTPropertyVetoException
a_EffectiveDate -
WTPropertyVetoExceptionEffectivitypublic String getEffectiveUnit()
Effectivity
public void setEffectiveUnit(String a_EffectiveUnit)
throws WTPropertyVetoException
a_EffectiveUnit -
WTPropertyVetoExceptionEffectivitypublic EffectivityType getEffectivityType()
Effectivitypublic EffContext getEffectiveContext()
Effectivity
public void setEffectiveContext(EffContext a_EffectiveContext)
throws WTPropertyVetoException
a_EffectiveContext -
WTPropertyVetoExceptionEffectivitypublic ConfigurationItem getEffectiveConfigItem()
Effectivity
public void setEffectiveConfigItem(ConfigurationItem a_EffectiveConfigItem)
throws WTPropertyVetoException
a_EffectiveConfigItem -
WTPropertyVetoExceptionEffectivitypublic wt.effectivity.WTProductInstance getEffectiveProductInstance()
Effectivity
public void setEffectiveProductInstance(wt.effectivity.WTProductInstance a_EffectiveProductInstance)
throws WTPropertyVetoException
a_EffectiveProductInstance -
WTPropertyVetoExceptionEffectivitypublic WTPartMaster getEffectiveProduct()
Effectivity
public void setEffectiveProduct(WTPartMaster a_EffectiveProduct)
throws WTPropertyVetoException
a_EffectiveProduct -
WTPropertyVetoExceptionEffectivitypublic View getView()
public void setView(View a_View)
throws WTPropertyVetoException
a_View -
WTPropertyVetoException
public QuerySpec appendSearchCriteria(QuerySpec querySpec)
throws WTException,
QueryException
The QueryResult returned should be a copy of the passed in one (taking advantage of side-effects is not encouraged).
appendSearchCriteria in interface ConfigSpecquerySpec - A QuerySpec with a target class that is Iterated.
WTException
QueryExceptionQuerySpec,
SearchCondition
public QueryResult process(QueryResult results)
throws WTException
The QueryResult returned should be a copy of the passed-in QueryResult (side-effects should be avoided).
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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||