Package wt.part
Class PlantEffConfigSpecGroup
java.lang.Object
wt.fc._WTObject
wt.fc.WTObject
wt.enterprise._Simple
wt.enterprise.Simple
wt.eff._EffConfigSpecGroup
wt.eff.EffConfigSpecGroup
wt.part._PlantEffConfigSpecGroup
wt.part.PlantEffConfigSpecGroup
- All Implemented Interfaces:
Externalizable,Serializable,wt.access._AccessControlled,wt.access._PolicyAccessControlled,wt.access._SecurityLabeled,AccessControlled,wt.access.PolicyAccessControlled,SecurityLabeled,wt.admin._DomainAdministered,DomainAdministered,wt.fc._NetFactor,wt.fc._ObjectMappable,wt.fc._Persistable,wt.fc.adminlock._AdministrativelyLockable,AdministrativelyLockable,wt.fc.BusinessInformation,NetFactor,ObjectMappable,Persistable,DisplayIdentification,wt.notify._Notifiable,Notifiable,wt.ownership._Ownable,wt.ownership.Ownable,ConfigSpec
@GenAsPersistable(superClass=EffConfigSpecGroup.class)
public class PlantEffConfigSpecGroup
extends wt.part._PlantEffConfigSpecGroup
A container config spec allowing multiple PlantPersistableEffConfigSpecs to be considered. It is currently used in
WTPartEffectivityConfigSpec.appendSearchCriteria(wt.query.QuerySpec) when the user has not selected a specific type of
config spec (i. e. Date, Serial or Lot), because this means there can be any of these config spec types and so there
is a need for several config specs to be applied together.
At one time it was thought that for a product structure, for example, with a lot of configuration items, this config
spec could be used to navigate the entire structure by specifying a PlantPersistableEffConfigSpec for each configuration
item. Now it looks as though the 6.0 revamping of effectivity will make this usage unnecessary.
Use the newPlantEffConfigSpecGroup static factory method(s), not the PlantEffConfigSpecGroup
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
- See Also:
-
Field Summary
Fields inherited from class wt.part._PlantEffConfigSpecGroup
EXTERNALIZATION_VERSION_UIDFields inherited from class wt.eff._EffConfigSpecGroup
EFF_CONFIG_SPEC_VECTOR, VARIATION1, VARIATION2, VIEW, VIEW_CONFIG_SPECFields inherited from class wt.fc._WTObject
CREATE_TIMESTAMP, MODIFY_TIMESTAMPFields inherited from interface wt.fc.adminlock._AdministrativelyLockable
ADMINISTRATIVE_LOCKFields inherited from interface wt.admin._DomainAdministered
DOMAIN_REF, INHERITED_DOMAINFields inherited from interface wt.notify._Notifiable
EVENT_SETFields inherited from interface wt.ownership._Ownable
OWNERSHIPFields inherited from interface wt.fc._Persistable
PERSIST_INFOFields inherited from interface wt.access._SecurityLabeled
SECURITY_LABELSFields inherited from interface wt.fc.BusinessInformation
BUSINESS_TYPE, IDENTITYFields inherited from interface wt.identity.DisplayIdentification
DISPLAY_IDENTIFIER, DISPLAY_IDENTITY, DISPLAY_TYPEFields inherited from interface wt.fc.Persistable
IDENTITY, TYPEFields inherited from interface wt.access.SecurityLabeled
SECURITY_LABELS_INTERNAL_VALUE -
Method Summary
Modifier and TypeMethodDescriptionappendSearchCriteria(QuerySpec querySpec) For WTPartEFF Config Spec : - SELECT classnameA2A2,idA2A2 FROM wt.part.WTPart A0 WHERE (A0.idA3masterReference = 157644) AND (A0.classnamekeycontainerReferen invalid input: '<'> 'wt.projmgmt.admin.Project2') AND ((A0.statecheckoutInfo invalid input: '<'> 'wrk-p') AND (A0.idA3view = 156040) OR (A0.idA3view = 28596) OR (A0.viewIsNull IS NULL )) AND (A0.variation1 IS NULL ) AND (A0.variation2 IS NULL ) AND ((A0.latestiterationInfo = 1) AND ( 1 != 1 ) OR (A0.latestiterationInfo = 1) AND (EXISTS (SELECT E0.branchIdA3targetReference FROM WTDatedEffectivity E0 WHERE (((E0.idA3deletionReference IS NULL ) OR (E0.idA3deletionReference = 0)) AND ((E0.branchIdA3targetReference = A0.branchIditerationInfo) AND ((E0.idA3effContextReference = 156097)) AND ((E0.startrange invalid input: '<'= TO_DATE('2019:02:04:23:59:00','YYYY:MM:DD:HH24:MI:SS')) AND ((E0.endrange >= TO_DATE('2019:02:04:00:00:00','YYYY:MM:DD:HH24:MI:SS')) OR (E0.endrange IS NULL ))))))))process(QueryResult results) Returns the latest effective version for each master.Methods inherited from class wt.part._PlantEffConfigSpecGroup
getClassInfo, getConceptualClassname, getType, readExternal, readExternal, readVersion, super_readExternal_PlantEffConfigSpecGroup, super_readVersion_PlantEffConfigSpecGroup, super_writeExternal_PlantEffConfigSpecGroup, writeExternal, writeExternalMethods inherited from class wt.eff.EffConfigSpecGroup
add, clear, contains, getRelationalConfigSpec, getViewConfigSpec, initialize, initialize, initialize, initialize, initialize, initialize, initialize, newEffConfigSpecGroup, newEffConfigSpecGroup, newEffConfigSpecGroup, newEffConfigSpecGroup, newEffConfigSpecGroup, newEffConfigSpecGroup, newEffConfigSpecGroup, persistableEffConfigSpecs, remove, setViewMethods inherited from class wt.eff._EffConfigSpecGroup
getEffConfigSpecVector, getOwnership, getVariation1, getVariation2, getView, readVersion, setEffConfigSpecVector, setOwnership, setVariation1, setVariation2, setViewConfigSpec, super_readExternal_EffConfigSpecGroup, super_readVersion_EffConfigSpecGroup, super_writeExternal_EffConfigSpecGroupMethods inherited from class wt.enterprise.Simple
getBusinessType, getIdentityMethods inherited from class wt.enterprise._Simple
getAdministrativeLock, getDomainRef, getEventSet, getSecurityLabels, isInheritedDomain, readVersion, setAdministrativeLock, setDomainRef, setEventSet, setInheritedDomain, setSecurityLabels, super_readExternal_Simple, super_readVersion_Simple, super_writeExternal_SimpleMethods inherited from class wt.fc.WTObject
checkAttributes, duplicate, getDisplayIdentifier, getDisplayIdentity, getDisplayType, toStringMethods inherited from class wt.fc._WTObject
equals, getCreateTimestamp, getModifyTimestamp, getPersistInfo, hashCode, readVersion, setPersistInfoMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface wt.fc._Persistable
getPersistInfo, setPersistInfoMethods inherited from interface wt.fc.Persistable
checkAttributes, getIdentity
-
Method Details
-
appendSearchCriteria
For WTPartEFF Config Spec : - SELECT classnameA2A2,idA2A2 FROM wt.part.WTPart A0 WHERE (A0.idA3masterReference = 157644) AND (A0.classnamekeycontainerReferen invalid input: '<'> 'wt.projmgmt.admin.Project2') AND ((A0.statecheckoutInfo invalid input: '<'> 'wrk-p') AND (A0.idA3view = 156040) OR (A0.idA3view = 28596) OR (A0.viewIsNull IS NULL )) AND (A0.variation1 IS NULL ) AND (A0.variation2 IS NULL ) AND ((A0.latestiterationInfo = 1) AND ( 1 != 1 ) OR (A0.latestiterationInfo = 1) AND (EXISTS (SELECT E0.branchIdA3targetReference FROM WTDatedEffectivity E0 WHERE (((E0.idA3deletionReference IS NULL ) OR (E0.idA3deletionReference = 0)) AND ((E0.branchIdA3targetReference = A0.branchIditerationInfo) AND ((E0.idA3effContextReference = 156097)) AND ((E0.startrange invalid input: '<'= TO_DATE('2019:02:04:23:59:00','YYYY:MM:DD:HH24:MI:SS')) AND ((E0.endrange >= TO_DATE('2019:02:04:00:00:00','YYYY:MM:DD:HH24:MI:SS')) OR (E0.endrange IS NULL ))))))))For Plant Eff Config Spec :- SELECT classnameA2A2,idA2A2 FROM wt.part.WTPart A0,com.ptc.windchill.enterprise.data.EnterpriseData A1,com.ptc.windchill.enterprise.data.EnterpriseDataLink A2 WHERE (A0.idA3masterReference = 157644) AND (A0.classnamekeycontainerReferen invalid input: '<'> 'wt.projmgmt.admin.Project2') AND (A1.latestiterationInfo = 1) AND (A0.statecheckoutInfo invalid input: '<'> 'wrk-p') AND ((A0.statecheckoutInfo invalid input: '<'> 'wrk') OR (A0.idA3A2ownership = 11)) AND (A1.idA3view = 156040) AND (A1.idA2A2 = A2.idA3B5) AND (A2.idA3A5 = A0.idA2A2) AND (( 1 != 1 ) OR (EXISTS (SELECT E0.branchIdA3targetReference FROM WTDatedEffectivity E0 WHERE (((E0.idA3deletionReference IS NULL ) OR (E0.idA3deletionReference = 0)) AND ((E0.branchIdA3targetReference = A1.branchIditerationInfo) AND ((E0.idA3effContextReference = 156097)) AND ((E0.startrange invalid input: '<'= TO_DATE('2019:02:04:23:59:00','YYYY:MM:DD:HH24:MI:SS')) AND ((E0.endrange >= TO_DATE('2019:02:04:00:00:00','YYYY:MM:DD:HH24:MI:SS')) OR (E0.endrange IS NULL ))))))))
Supported API: true- Specified by:
appendSearchCriteriain interfaceConfigSpec- Overrides:
appendSearchCriteriain classEffConfigSpecGroup- Parameters:
querySpec- A QuerySpec with a target class that is Iterated.- Returns:
- QuerySpec
- Throws:
WTExceptionQueryException- See Also:
-
process
Returns the latest effective version for each master.
Supported API: true- Specified by:
processin interfaceConfigSpec- Overrides:
processin classEffConfigSpecGroup- Parameters:
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.- Returns:
- QueryResult
- Throws:
WTException- See Also:
-