|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.services.StandardManager
wt.effectivity.StandardEffectivityService
Standard server-side implementation of the EffectivityService interfaces. The public, static methods in this class are accessed through the syntax:
EffectivityHelper.service.[method]
Use the newStandardEffectivityService
static factory method(s),
not the StandardEffectivityService
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: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private static String |
RESOURCE
|
Fields inherited from class wt.services.StandardManager |
|
Fields inherited from interface wt.services.Manager |
MANAGER_SERVICE, STARTUP_AUTOMATIC, STARTUP_MANUAL, STATUS_EMERGENCY_SHUTDOWN, STATUS_EMERGENCY_SHUTTING_DOWN, STATUS_SHUTDOWN, STATUS_SHUTDOWN_ERRORS, STATUS_SHUTDOWN_FAILURE, STATUS_SHUTTING_DOWN, STATUS_STARTED, STATUS_STARTED_ERRORS, STATUS_STARTING_UP, STATUS_STARTUP_FAILURE |
Constructor Summary | |
StandardEffectivityService()
|
Method Summary | |
ConfigurationItem |
findConfigurationItem(String configItemName)
Retrieve a Configuration Item by name. |
String |
getConceptualClassname()
Deprecated. |
QueryResult |
getEffectivities(ConfigurationItem configItem)
Retrieves the Effectivity objects which reference the given ConfigurationItem object. |
QueryResult |
getEffectivities(EffectivityHolder effectivityHolder)
Retrieves the Effectivity objects for the given EffectivityHolder object. |
WTProductInstance |
getWTProductInstance(String configItemName,
String serialNumber)
Returns the product instance for this configuration item and serial number, or null if it does not exist. |
static StandardEffectivityService |
newStandardEffectivityService()
Default factory for the class. |
TransactionResult |
persistEffectivityBatch(TransactionContainer aTran)
Perform Insert, Modify, or Delete operations on any number of Effectivity objects. |
private static void |
processAssertion(Assertion asser)
Helper method of persistEffectivityBatch for processing a single assertion from the TransactionBatchContainer. |
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
Constructor Detail |
public StandardEffectivityService()
Method Detail |
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
getConceptualClassname
in class StandardManager
public static StandardEffectivityService newStandardEffectivityService() throws WTException
WTException
public QueryResult getEffectivities(EffectivityHolder effectivityHolder) throws WTException
getEffectivities
in interface EffectivityService
effectivityHolder
- An object which implements the EffectivityHolder interface.
WTException
Effectivity
public TransactionResult persistEffectivityBatch(TransactionContainer aTran) throws WTException
TransactionContainer effectivityTransaction = BatchContainerFactory.instantiateTransactionContainer(); BatchContainer mainBatchContainer = BatchContainerFactory.instantiateGeneralBatchContainer(effectivityTransaction, "main"); // Create a new Serial Numbered Effectivity mainBatchContainer.add(aSerialNumberedEffectivity); // Modify an existing Lot Effectivity mainBatchContainer.replace(aLotEffectivity); // Delete an existing Dated Effectivity mainBatchContainer.populate(aDatedEffectivity); mainBatchContainer.remove(aDatedEffectivity);
persistEffectivityBatch
in interface EffectivityService
aTran
- A TransactionContainer containing any number of add, replace or delete assertions for Effectivity objects.
WTException
TransactionContainer
public ConfigurationItem findConfigurationItem(String configItemName) throws WTException, ConfigItemNotFoundException
findConfigurationItem
in interface EffectivityService
configItemName
- The name of the Configuration Item.
WTException
ConfigItemNotFoundException
ConfigurationItem
public QueryResult getEffectivities(ConfigurationItem configItem) throws WTException
getEffectivities
in interface EffectivityService
configItem
- A Configuration Item.
WTException
Effectivity
public WTProductInstance getWTProductInstance(String configItemName, String serialNumber) throws WTException
getWTProductInstance
in interface EffectivityService
configItemName
- serialNumber
-
WTException
private static void processAssertion(Assertion asser) throws WTException
asser
- An add, replace or delete assertion.
WTException
- If the assertion container is not a BatchContainer,
of if the assertion target is not an Effectivity object.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |