|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.part.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 FormField Summary | |
private static String |
CLASSNAME
|
private static DateEffGroupRangeDelegate |
degrd
|
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. |
private static int |
EFFECTIVE_UNIT_UPPER_LIMIT
|
private ObjectReference |
effectiveContextRef
|
private Timestamp |
effectiveDate
|
private String |
effectiveUnit
|
static String |
EFFECTIVITY_TYPE
Label for the attribute; The EffectivityType of the effectiveConfigItem attribute; A derived attribute. |
private static String |
EFFECTIVITYRESOURCE
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private static boolean |
VERBOSE
|
static String |
VIEW
Label for the attribute; If set, only those objects assigned to the view or view-independent are returned. |
private ViewReference |
viewRef
|
Constructor Summary | |
WTPartEffectivityConfigSpec()
|
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. |
void |
checkAttributes(ConfigSpec configSpec)
Validate the state of this instance of WTPartEffectivityConfigSpec prior to persisting WTPartConfigSpec. |
private void |
effectiveUnitValidate(String a_EffectiveUnit)
|
ClassInfo |
getClassInfo()
Returns the ClassInfo object for this class. |
String |
getConceptualClassname()
Deprecated. |
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. |
WTProductMaster |
getEffectiveProduct()
Gets the value of the attribute: EFFECTIVE_PRODUCT. |
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. |
protected void |
initialize()
Supports initialization, following construction of an instance. |
protected void |
initialize(ConfigurationItem an_EffectiveConfigItem,
String a_Unit,
Timestamp an_EffectiveDate)
Supports initialization, following construction of an instance. |
protected void |
initialize(Timestamp an_EffectiveDate)
Supports initialization, following construction of an instance. |
protected void |
initialize(WTProductInstance a_ProductInstance,
Timestamp an_EffectiveDate)
Supports initialization, following construction of an instance. |
protected void |
initialize(WTProductMaster an_EffectiveProduct,
String a_Unit,
Timestamp an_EffectiveDate)
Supports initialization, following construction of an instance. |
static WTPartEffectivityConfigSpec |
newWTPartEffectivityConfigSpec()
Supported API: false |
static WTPartEffectivityConfigSpec |
newWTPartEffectivityConfigSpec(ConfigurationItem an_EffectiveConfigItem,
String a_Unit,
Timestamp an_EffectiveDate)
Supported API: false |
static WTPartEffectivityConfigSpec |
newWTPartEffectivityConfigSpec(Timestamp an_EffectiveDate)
Supported API: false |
static WTPartEffectivityConfigSpec |
newWTPartEffectivityConfigSpec(WTProductInstance a_ProductInstance,
Timestamp an_EffectiveDate)
Supported API: false |
static WTPartEffectivityConfigSpec |
newWTPartEffectivityConfigSpec(WTProductMaster an_EffectiveProduct,
String a_Unit,
Timestamp an_EffectiveDate)
Supported API: false |
QueryResult |
process(QueryResult results)
Process the QueryResult of iterations, returning only those that "match" according to the algorithm. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
void |
readExternal(PersistentRetrieveIfc input)
Used by Persistent Data Service to populate the persistent attributes of this class from a persistent store. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(WTPartEffectivityConfigSpec thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
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(WTProductMaster a_EffectiveProduct)
Sets the value of the attribute: EFFECTIVE_PRODUCT. |
void |
setEffectiveProductInstance(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. |
String |
toString()
Returns the conceptual (modeled) name for the class. |
private void |
validateInstance()
Helper method of appendSearchCriteria to validate the state of this instance of WTPartEffectivityConfigSpec prior to appending search criteria. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
void |
writeExternal(PersistentStoreIfc output)
Used by Persistent Data Service to obtain the values of the persistent attributes of this class, so they can be written to a persistent store. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public static final String EFFECTIVE_DATE
Effectivity
,
Constant Field Valuesprivate Timestamp effectiveDate
public static final String EFFECTIVE_UNIT
Effectivity
,
Constant Field Valuesprivate static int EFFECTIVE_UNIT_UPPER_LIMIT
private String effectiveUnit
public 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 Valuesprivate ObjectReference effectiveContextRef
public static final String VIEW
private ViewReference viewRef
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static final String EFFECTIVITYRESOURCE
private static final DateEffGroupRangeDelegate degrd
private static final boolean VERBOSE
Constructor Detail |
public WTPartEffectivityConfigSpec()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(WTPartEffectivityConfigSpec thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public void writeExternal(PersistentStoreIfc output) throws SQLException, DatastoreException
(Not intended for general use.)
Supported API: false
writeExternal
in interface ObjectMappable
output
-
SQLException
DatastoreException
public void readExternal(PersistentRetrieveIfc input) throws SQLException, DatastoreException
(Not intended for general
use.)
Supported API: false
readExternal
in interface ObjectMappable
input
-
SQLException
DatastoreException
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
public String toString()
public ClassInfo getClassInfo() throws WTIntrospectionException
getClassInfo
in interface NetFactor
WTIntrospectionException
public Timestamp getEffectiveDate()
Effectivity
public void setEffectiveDate(Timestamp a_EffectiveDate) throws WTPropertyVetoException
a_EffectiveDate
-
WTPropertyVetoException
Effectivity
public String getEffectiveUnit()
Effectivity
public void setEffectiveUnit(String a_EffectiveUnit) throws WTPropertyVetoException
a_EffectiveUnit
-
WTPropertyVetoException
Effectivity
private void effectiveUnitValidate(String a_EffectiveUnit) throws WTPropertyVetoException
a_EffectiveUnit
-
WTPropertyVetoException
public EffectivityType getEffectivityType()
Effectivity
public EffContext getEffectiveContext()
Effectivity
public void setEffectiveContext(EffContext a_EffectiveContext) throws WTPropertyVetoException
a_EffectiveContext
-
WTPropertyVetoException
Effectivity
public ConfigurationItem getEffectiveConfigItem()
Effectivity
public void setEffectiveConfigItem(ConfigurationItem a_EffectiveConfigItem) throws WTPropertyVetoException
a_EffectiveConfigItem
-
WTPropertyVetoException
Effectivity
public WTProductInstance getEffectiveProductInstance()
Effectivity
public void setEffectiveProductInstance(WTProductInstance a_EffectiveProductInstance) throws WTPropertyVetoException
a_EffectiveProductInstance
-
WTPropertyVetoException
Effectivity
public WTProductMaster getEffectiveProduct()
Effectivity
public void setEffectiveProduct(WTProductMaster a_EffectiveProduct) throws WTPropertyVetoException
a_EffectiveProduct
-
WTPropertyVetoException
Effectivity
public View getView()
public void setView(View a_View) throws WTPropertyVetoException
a_View
-
WTPropertyVetoException
public static WTPartEffectivityConfigSpec newWTPartEffectivityConfigSpec() throws WTException
WTException
protected void initialize() throws WTException
WTException
public static WTPartEffectivityConfigSpec newWTPartEffectivityConfigSpec(Timestamp an_EffectiveDate) throws WTException
an_EffectiveDate
-
WTException
protected void initialize(Timestamp an_EffectiveDate) throws WTException
an_EffectiveDate
-
WTException
public static WTPartEffectivityConfigSpec newWTPartEffectivityConfigSpec(ConfigurationItem an_EffectiveConfigItem, String a_Unit, Timestamp an_EffectiveDate) throws WTException
an_EffectiveConfigItem
- a_Unit
- an_EffectiveDate
-
WTException
protected void initialize(ConfigurationItem an_EffectiveConfigItem, String a_Unit, Timestamp an_EffectiveDate) throws WTException
an_EffectiveConfigItem
- a_Unit
- an_EffectiveDate
-
WTException
public static WTPartEffectivityConfigSpec newWTPartEffectivityConfigSpec(WTProductMaster an_EffectiveProduct, String a_Unit, Timestamp an_EffectiveDate) throws WTException
an_EffectiveProduct
- a_Unit
- an_EffectiveDate
-
WTException
protected void initialize(WTProductMaster an_EffectiveProduct, String a_Unit, Timestamp an_EffectiveDate) throws WTException
an_EffectiveProduct
- a_Unit
- an_EffectiveDate
-
WTException
public static WTPartEffectivityConfigSpec newWTPartEffectivityConfigSpec(WTProductInstance a_ProductInstance, Timestamp an_EffectiveDate) throws WTException
a_ProductInstance
- an_EffectiveDate
-
WTException
protected void initialize(WTProductInstance a_ProductInstance, Timestamp an_EffectiveDate) throws WTException
a_ProductInstance
- an_EffectiveDate
-
WTException
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 ConfigSpec
querySpec
- A QuerySpec with a target class that is Iterated.
WTException
QueryException
QuerySpec
,
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 ConfigSpec
results
- 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.
WTException
QueryResult
,
Iterated
private void validateInstance() throws WTException
WTException
- If the instance is not valid.public void checkAttributes(ConfigSpec configSpec) throws InvalidAttributeException
WTException
- If the instance is not valid.
InvalidAttributeException
WTPartConfigSpec
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |