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:
  • Method Details

    • appendSearchCriteria

      public QuerySpec appendSearchCriteria(QuerySpec querySpec) throws WTException, QueryException
      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:
      appendSearchCriteria in interface ConfigSpec
      Overrides:
      appendSearchCriteria in class EffConfigSpecGroup
      Parameters:
      querySpec - A QuerySpec with a target class that is Iterated.
      Returns:
      QuerySpec
      Throws:
      WTException
      QueryException
      See Also:
    • process

      public QueryResult process(QueryResult results) throws WTException
      Returns the latest effective version for each master.

      Supported API: true
      Specified by:
      process in interface ConfigSpec
      Overrides:
      process in class EffConfigSpecGroup
      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: