|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.esi.txn.ESITransactionUtility
Provides common services which are not intended to be available to remote
consumers. This class is not thread-safe. A separate instance must
be created if multiple threads are to use the services of the class.
Supported API: true
Extendable: false
Constructor Summary | |
ESITransactionUtility()
|
Method Summary | |
void |
abortTransaction(Persistable obj)
Remove a transaction. |
private void |
addPartMastersToQuery(QuerySpec qs,
Collection masters,
int pmIndex,
Class partMasterClass)
|
void |
addTransactionMessage(ESITransaction txn,
String text,
boolean txnRequired)
Adds a message to an ESITransaction. |
private void |
addTxnsForObjectsToVector(Vector v,
Vector qr)
|
private void |
addTxnsToVector(Vector v,
QueryResult qr)
|
private void |
addUniqueTransactions(Group g,
Vector v)
|
void |
adjustTargetAssignments(String ufids,
Group targetInfo)
Given a concatenated set of UFIDs (for WTParts) and a Collection of ESITarget UFIDs, make (or remove) any required assignments. |
static boolean |
checkReleaseActivity(Persistable obj,
ESITarget target,
String status,
String action)
|
private boolean |
checkTx(Persistable obj,
String status)
|
void |
commitDbTransaction()
|
void |
createReleaseActivity(Persistable persistable,
String description,
ESITransaction transaction,
boolean successful,
ESITarget target,
String message,
String timestamp,
String action,
String cls,
String user)
Create and save a new ReleaseActivity from the arguments Supported API: true |
private void |
createReleaseActivity(Persistable persistable,
String description,
ESITransaction transaction,
boolean successful,
ESITarget target,
String message,
String timestamp,
String action,
String cls,
String user,
boolean isTransactionRequired,
boolean isWarning)
|
private static void |
createSynchObject()
|
ESITransaction |
createTransaction(Persistable object)
Creates a new ESITransaction that is associated to the argument. |
ESITransaction |
createTransaction(Persistable object,
String userName)
Creates a new ESITransaction that is associated to the argument. |
void |
createWarning(Collection warningAssns,
String txnID)
ESIWarningSubTxnRequest Create a ReleaseActivity with status = Warning for each of the object - target pairs ESIWarningSubTxnRequest objects) in the warningAssns argument. |
protected String |
decodeUser(String userIn)
|
void |
deleteTargetAssociation(ESITargetAssignmentLink link)
Removes the argument from the database. |
void |
deleteTargetAssociation(Group links)
Deletes from the database the ESITargetAssignmentLink objects that are identified by the argument. |
private QueryResult |
findAbortedTx(ESITransaction tx)
|
private Vector |
findLatestReleaseBOMParts(Collection tgtAssns,
Collection parts)
|
private Vector |
findLatestReleaseParts(Collection tgtAssns,
Collection parts)
|
QueryResult |
findTransactions(Persistable obj)
Returns all ESITransactions for the given object. |
QueryResult |
findTransactions(Persistable obj,
String status)
Returns ESITransactions for the given object and status. |
private Vector |
findTransactionsForAssociatedObjects(Persistable obj)
|
private QueryResult |
findTransactionsForReleasedObjects(Persistable obj)
|
private void |
fixReleaseElement(Element elem,
ReleaseActivity ra)
|
private ReleaseActivityAction |
getActionCode(String action)
|
Collection |
getActivities(Persistable object)
This method will return a Collection of ReleaseActivities that are associated with the persisable object. |
Collection |
getActivities(String ufid)
Returns the ReleaseActivities associated with the ESITransaction identified by the UFID in the argument. |
private ReleaseActivityMessage |
getActivitiesMessage(String ufid)
|
Collection |
getAllActivities(Persistable object)
This method will return a Collection of ReleaseActivities that are associated with the persisable object. |
private Vector |
getAssociationsFromFromGroup(Group links)
|
Collection |
getBOMActivities(Collection parts)
Given a collection of parts returns a collection of ReleaseActivity objects where the release activity represents a BOM, for any iterations of the part's part master. |
private Class |
getClassFromObjects(Collection collection)
|
WTDocument |
getCurrentDocument(WTDocumentMaster master)
|
private ReleaseActivity |
getLatestActivityForEffectivity(Eff[] effs,
ESITarget target)
|
Collection |
getLatestUnreleasedDocuments(Collection docs,
Collection targets)
Given a collection of WTDocuments and targets this method returns a collection of ESITargetAssocations for documents that have not been exported to that target. |
(package private) int |
getMaxTransactionNumber()
Finds the maximum value for transaction number in the database. |
private Class |
getPersistableClassFromTargetAssociations(Collection collection)
|
Collection |
getRelatedTransactions(ESITransaction txn)
Returns all transactions that are related to the argument of the method. |
Group |
getReleaseActivities(String ufid)
Returns an Info*Engine Group of mapped ReleaseActivity objects given the ufid of the ESITransaction object. |
Group |
getReleaseActivitiesMessage(String ufid)
Returns an Info*Engine Group of mapped ReleaseActivityMessage object given the ufid of the ReleaseActivity object. |
private static Persistable |
getSynchObject()
|
private Class |
getTargetClassFromTargetAssociations(Collection collection)
|
private Collection |
getTargetHistories(Collection objects)
|
Group |
getTargetsWithHistory(Collection objects)
Returns an Info*Engine Group of mapped ESITargetHistory objects. |
Collection |
getTargetsWithHistory(Persistable object)
Returns a Collection of ESITargetHistory objects. |
private ESITargetUtility |
getTargetUtility()
|
ESITransaction |
getTransaction(String number)
Return the ESITransaction object whose number matches the method argument. |
Collection |
getTransactionActivities(String id)
Return a collection ReleaseActivities associated with the ESITransaction identified by the argument. |
Group |
getTransactionLogMessage(String ufid)
Returns an Info*Engine Group of mapped ESITransactionMessage object given the ufid of the ESITransaction object. |
Group |
getTransactions(Group ufids)
Returns an Info*Engine Group of ESITransaction objects that are associated with the objects in the argument. |
private ESITransactionMessage |
getTransactionsMessage(String ufid)
|
String |
getTransactionUfid(String tx_number)
Returns UFID of ESITransaction |
private Collection |
getUniqueMastersFromParts(Collection parts)
|
private Collection |
getUniqueMastersFromTargetAssociations(Collection parts)
|
boolean |
hasReleased(Persistable obj)
Check if the given object has been released successfully. |
boolean |
hasReleased(Persistable obj,
ESITarget target)
Check if the object has been released successfully for the given target. |
boolean |
hasTxFailed(Persistable obj)
Returns true if find a related transaction failed for a given object, otherwise return false. |
boolean |
hasTxSucceed(Persistable obj)
Returns true if find a transaction is SUCCEED for the given object, otherwise returns false. |
private boolean |
hasWarningMessages(String txnID)
|
void |
hideTransaction(String ufid)
Hide an ESITransaction from the user interface. |
private boolean |
isBOMRelease(Persistable part,
String cls)
|
boolean |
isInRelease(Persistable obj)
This is to check if the releasable object is in ESI release . |
private boolean |
isIterationInRelease(Master master)
|
boolean |
isNewerThan(Versioned v1,
Versioned v2)
|
private boolean |
isObjInRelease(Persistable obj)
|
boolean |
isPartNewerThan(WTPart current,
WTPart other)
This method checks two different part versions and returns true if the current iteration is newer than the other version. |
boolean |
isPartReleaseNeeded(Collection assns)
Given a collection of ESITargetAssociations, returns true if any of the persistable objects have not been published to the ESI target identified in the target association. |
private boolean |
isReleaseBlocked(ESITransactionObjectLink link)
|
private boolean |
isReleaseBlocked(Persistable object,
ESITarget target)
|
static boolean |
isReleaseFailedChange(Persistable obj,
ESITarget target)
|
private boolean |
isRequestedTarget(ESITargetAssociation assn,
Collection assns)
|
boolean |
isTxnPending(Persistable object)
Determines whether a transaction containing the argument is already active. |
boolean |
isTxPending(Persistable obj)
Returns true if ESI transaction for the given object is in pending status, otherwise return false. |
boolean |
isTxProcessing(Persistable obj)
Returns true if the ESI transaction is in processing for the given object, otherwise return false. |
Collection |
latestBOMExport(Collection parts)
|
Eff |
latestEffExport(EffManagedVersion part,
ESITarget target)
Returns the last exported Eff for the supplied part and target. |
Collection |
latestExport(Collection targetAssociations)
This method will return a collection of latest exported objects. |
Collection |
latestPartExport(Collection parts)
Returns a collection of ESITargetAssociations Supported API: true |
private static void |
lockSynchObject()
|
private void |
mapReleaseActivities(Collection collection,
Group grp)
|
private void |
mapReleaseActivitiesMessage(ReleaseActivityMessage activiyMessage,
Group grp)
|
private void |
mapTargetHistory(Collection collection,
Group grp)
|
private void |
mapTransactionMessage(ESITransactionMessage transactionMessage,
Group grp)
|
void |
markPending(Collection tgtAssns,
String txnID)
Create a ReleaseActivity with status = PENDING for each of the object - target pairs (ESIPendingTxnRequest objects) in the tgtAssns argument. |
static void |
performStartupProcess()
Performs the necessary startup logic for the Transaction Utility. |
void |
postEvent(String objectID,
String transaction,
boolean isSuccessful,
String message)
Process postEvent RPC requests Supported API: true |
void |
postResult(String objectID,
String description,
String txnID,
boolean isSuccessful,
boolean isSubtran,
String targetSystem,
String message,
String timestamp,
String action,
String cls,
String user)
Process postResult RPC requests Supported API: true |
private void |
postResultSubtransaction(ESITransaction transaction,
String objectID,
String description,
String message,
String timestamp,
String action,
String cls,
String user,
boolean isSuccessful,
String targetSystem)
|
private void |
postResultTransaction(ESITransaction transaction,
String timestamp,
boolean isSuccessful,
String msg)
|
private void |
purgePending(Persistable p,
ESITarget tgt,
String cls)
|
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
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(ESITransactionUtility thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
recordExport(Persistable obj,
ESITarget org,
String releaseClass)
Mark a persistable as exported to an organization Supported API: true |
void |
removePending(ESITransaction txn)
Deletes all ReleaseActivities that have a status of PENDING and are associated with the argument. The method does not create a database transaction. |
void |
removePending(ESITransaction txn,
boolean txnNeeded)
|
void |
removeTransactionMessage(ESITransaction txn)
Removes any ESITransactionMessage that is associated with an ESITransaction. |
private QueryResult |
retrieveIterations(Class iterationClass,
Master master)
|
void |
rollbackDbTransaction()
|
void |
startDbTransaction()
|
(package private) void |
updateTransaction(ESITransaction txn)
Save a transaction in the database Supported API: true |
void |
validateDelete(ESITarget tgt)
Deprecated. |
void |
validateDelete(ESITransaction txn)
Deprecated. |
void |
validateDelete(WTPart part)
Deprecated at X05/R8.0, replaced by by calling isInRelease
and referential integrity exception delegate. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
public static final String REFERENCE_LINK_RA_CLASS
public static final boolean autofailLineNumbers
private static final int EVENT_MESSAGE_LENGTH
private static final int RESULT_MESSAGE_LENGTH
private static final String NULL_STRING
private static final String SEPARATOR_STRING
private static final String STANDARD_RELEASE_CLASS
private static boolean isSuccessLoggingSuppressed
private static boolean isFailureLoggingSuppressed
private ESITargetUtility targetUtility
private TaskHelper taskHelper
private Transaction dbTransaction
private static final int VECTOR_SIZE_MULTIPLIER
private static final String XML_META_NAME
private static final String TARGET_HISTORY_MAP_NAME
private static final String RELEASE_ACTIVITIES_MAP_NAME
private static final String RELEASE_ACTIVITIES_MESSAGE_MAP_NAME
private static final String TRANSACTION_MESSAGE_MAP_NAME
private static final String DEFAULT_ADMIN_USER
private static boolean TRUNCATE_EXCESS_MESSAGE_TEXT
private static boolean checkIterations
private static int SYNCH_ID
static final String RELEASE_ACTIVITY
static final String PART_RELEASE_CLASS
Constructor Detail |
public ESITransactionUtility()
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(ESITransactionUtility 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 final void abortTransaction(Persistable obj)
Note : This method can ONLY be called on
ESI workflow if any system errors (e.g. JMS server not available )
occured during release, means that unable to send messages to com.ptc.windchill.esi.Event
queue.
Supported API: true
obj
- public final void addTransactionMessage(ESITransaction txn, String text, boolean txnRequired) throws WTException
txn
- The transaction to which an message is to be added.text
- The text of the message to add.txnRequired
- Should this request be wrapped in a database transaction. Should be false if caller has started a transaction.
WTException
public final void adjustTargetAssignments(String ufids, Group targetInfo) throws WTException
ufids
- A concatenated list of UFIDs of the objects to operate on.targetInfo
- A collection of Info*Engine elements containing the UFIDs of the ESITargets to assign/remove and the operation to perform.
WTException
public final void createReleaseActivity(Persistable persistable, String description, ESITransaction transaction, boolean successful, ESITarget target, String message, String timestamp, String action, String cls, String user) throws WTException
persistable
- The object being flagged as releaseddescription
- A textual description of the release typetransaction
- The transaction associated with this activity.successful
- Was the transaction successful?target
- The destination where this object was releasedmessage
- An optional message to associate with the ReleaseActivitytimestamp
- The time when the ReleaseActivity occurred. Must resolve to a java.sql.TimeStamp. If it doesn't the current time will be used.action
- must be "create", "change", or "delete" (case insensitive)cls
- The ESI logical class of the object being flaggeduser
- The user who requested the activity
WTException
public final ESITransaction createTransaction(Persistable object) throws WTException
object
- The object that is to be associated with the ESITransaction.
WTException
public final ESITransaction createTransaction(Persistable object, String userName) throws WTException
object
- The object that is to be associated with the ESITransaction.userName
- The name of the user responsible for initiating the transaction.
WTException
public void createWarning(Collection warningAssns, String txnID) throws WTException
warningAssns
- txnID
-
WTException
public final void deleteTargetAssociation(ESITargetAssignmentLink link) throws WTException
link
- The ESITargetAssignmentLink that is to be deleted.
WTException
public final void deleteTargetAssociation(Group links) throws WTException
links
- An Info*Engine group of Element objects. Each element has an Att object that contains the UFID of an ESITargetAssignmentLink that is to be deleted.
WTException
public final QueryResult findTransactions(Persistable obj) throws ESIException
obj
-
ESIException
public final QueryResult findTransactions(Persistable obj, String status) throws ESIException
obj
- status
-
ESIException
public final Collection getActivities(String ufid) throws WTException
ufid
- The UFID of an ESITransaction.
WTException
public final Collection getActivities(Persistable object) throws WTException
object
- Persistable object whose history is to be retrieved.
WTException
public final Collection getAllActivities(Persistable object) throws WTException
object
- Persistable object whose history is to be retrieved.
WTException
public final Collection getBOMActivities(Collection parts) throws WTException
parts
- A collection of WTPart instances to examine.
WTException
public final Collection getLatestUnreleasedDocuments(Collection docs, Collection targets) throws WTException
docs
- This is a collection of WTDocuments. The persistables must all be objects of the same class.targets
- Collection of ESITargets associated with the documents.
WTException
final int getMaxTransactionNumber() throws WTException
WTException
public final Collection getRelatedTransactions(ESITransaction txn) throws WTException
txn
-
WTException
public final Group getReleaseActivities(String ufid) throws WTException
ufid
- The ufid of the ESITransaction object.
WTException
public final Group getReleaseActivitiesMessage(String ufid) throws WTException
ufid
- ufid of the ReleaseActivity object.
WTException
public final Group getTargetsWithHistory(Collection objects) throws WTException
objects
- A collection of persistable objects. The objects must all be instances of the same class.
WTException
public final Collection getTargetsWithHistory(Persistable object) throws WTException
object
- The Persistable whose target assignments are to be queried.
WTException
public final ESITransaction getTransaction(String number) throws WTException
number
- The transaction number of the desired ESITransaction object.
WTException
public final Group getTransactions(Group ufids) throws WTException
ufids
- An Info*Engine Group containing Elements that have been create by (or resemble the output of) a Query-Objects webject.
WTException
public final Collection getTransactionActivities(String id) throws WTException
id
- the id of the transaction of interest.
WTException
public final Group getTransactionLogMessage(String ufid) throws WTException
ufid
- ufid of the ESITransaction object.
WTException
public final boolean hasReleased(Persistable obj, ESITarget target) throws ESIException
obj
- target
-
ESIException
public final boolean hasTxFailed(Persistable obj) throws ESIException
obj
-
ESIException
public final boolean hasTxSucceed(Persistable obj) throws ESIException
obj
-
ESIException
public final void hideTransaction(String ufid) throws WTException
ufid
-
WTException
public boolean isInRelease(Persistable obj) throws ESIException
obj
- The persistable object.
ESIException
public final boolean isPartNewerThan(WTPart current, WTPart other)
current
- current part iteration to testother
- previous part iteration.
public final boolean isPartReleaseNeeded(Collection assns) throws WTException
assns
- A Collection of ESITargetAssociations.
WTException
public final boolean isTxPending(Persistable obj) throws ESIException
obj
-
ESIException
public final boolean isTxnPending(Persistable object) throws WTException
object
- The object of interest
WTException
public final boolean isTxProcessing(Persistable obj) throws ESIException
obj
-
ESIException
public Eff latestEffExport(EffManagedVersion part, ESITarget target) throws WTException
part
- The part iteration for which effectivity is defined.target
- The ERP target system.
WTException
public final Collection latestExport(Collection targetAssociations) throws WTException
targetAssociations
-
WTException
public final Collection latestPartExport(Collection parts) throws WTException
parts
- A collection of ESITargetAssociations with WTParts as the pesistable object.
WTException
public void markPending(Collection tgtAssns, String txnID) throws WTException
tgtAssns
- A collection of ESITargetAssociationstxnID
- The id of the ESITransaction that is to be associated to the ReleaseActivity objects that are created by this method.
WTException
public static void performStartupProcess() throws WTException
WTException
public final void postEvent(String objectID, String transaction, boolean isSuccessful, String message) throws WTException
objectID
- The object which is associated with the Windchill event that this RPC will create. It is expected to be the value supplied in the transaction
- The transaction number that is associated with this eventisSuccessful
- Did the request succeed?message
- An optional message to pass to the Windchill workflow that is suspended and waiting for this event.
WTException
public final void postResult(String objectID, String description, String txnID, boolean isSuccessful, boolean isSubtran, String targetSystem, String message, String timestamp, String action, String cls, String user) throws WTException
objectID
- The UFID of the object being trackeddescription
- A user-friendly description of the objecttxnID
- The transaction number related to this requestisSuccessful
- Did the request succeed?isSubtran
- If false, this is the end of the transaction messages. If true, it is a transaction line item.targetSystem
- The ESITarget system id associated with this request.message
- An optional textual description. Generally used for error messages, but not restricted to errors.timestamp
- Optional parameter. If supplied must be a string that can be converted to a java.sql.timestamp.action
- The action that was requested. Must be one of the values defined by ReleaseActivityAction.cls
- The ESI logical class of the object being tracked. This value came from the ESI RPC response that generated the ESI transaction.user
- The user who requested the transaction.
WTException
public final void recordExport(Persistable obj, ESITarget org, String releaseClass) throws WTException
obj
- the object being flaggedorg
- The ESIOrganization which received the objectreleaseClass
- the type of release activity.
WTException
public final void removePending(ESITransaction txn) throws WTException
txn
- The ESITranaction that has completed.
WTException
public final void removeTransactionMessage(ESITransaction txn) throws WTException
txn
- The transaction from which all messages are to be removed.
WTException
final void updateTransaction(ESITransaction txn) throws WTException
txn
- The transaction to be saved
WTException
public final void validateDelete(ESITarget tgt) throws WTException
Supported API: false
tgt
- The ESI target whose associations are to be checked.
WTException
public final void validateDelete(ESITransaction txn) throws WTException
Throws a WTException if the argument is not eligible for deletion.
Supported API: false
txn
- The ESITransaction to validate.
WTException
public final void validateDelete(WTPart part) throws WTException
isInRelease
and referential integrity exception delegate.
Throws an exception if the argument is not eligible to be deleted.
Supported API: true
part
- The part to evaluate.
WTException
private ReleaseActivityAction getActionCode(String action) throws WTException
WTException
protected String decodeUser(String userIn) throws WTException
WTException
private Class getPersistableClassFromTargetAssociations(Collection collection) throws WTException
WTException
private Class getTargetClassFromTargetAssociations(Collection collection) throws WTException
WTException
private Class getClassFromObjects(Collection collection) throws WTException
WTException
private Collection getUniqueMastersFromParts(Collection parts)
private Collection getUniqueMastersFromTargetAssociations(Collection parts)
private void addPartMastersToQuery(QuerySpec qs, Collection masters, int pmIndex, Class partMasterClass) throws WTException
WTException
private Vector findLatestReleaseParts(Collection tgtAssns, Collection parts) throws WTException
WTException
private boolean isRequestedTarget(ESITargetAssociation assn, Collection assns)
private void mapTargetHistory(Collection collection, Group grp) throws WTException
WTException
private void mapReleaseActivities(Collection collection, Group grp) throws WTException
WTException
private void fixReleaseElement(Element elem, ReleaseActivity ra) throws WTException
WTException
private void mapReleaseActivitiesMessage(ReleaseActivityMessage activiyMessage, Group grp) throws WTException
WTException
private void mapTransactionMessage(ESITransactionMessage transactionMessage, Group grp) throws WTException
WTException
private ReleaseActivityMessage getActivitiesMessage(String ufid) throws WTException
WTException
private ESITransactionMessage getTransactionsMessage(String ufid) throws WTException
WTException
private Collection getTargetHistories(Collection objects) throws WTException
WTException
private boolean isReleaseBlocked(ESITransactionObjectLink link)
private void postResultTransaction(ESITransaction transaction, String timestamp, boolean isSuccessful, String msg) throws WTException
WTException
private void postResultSubtransaction(ESITransaction transaction, String objectID, String description, String message, String timestamp, String action, String cls, String user, boolean isSuccessful, String targetSystem) throws WTException
WTException
private ESITargetUtility getTargetUtility()
public WTDocument getCurrentDocument(WTDocumentMaster master) throws WTException
WTException
private boolean isReleaseBlocked(Persistable object, ESITarget target) throws WTException
WTException
private ReleaseActivity getLatestActivityForEffectivity(Eff[] effs, ESITarget target) throws WTException
WTException
public String getTransactionUfid(String tx_number) throws WTException
WTException
public boolean hasReleased(Persistable obj) throws ESIException
ESIException
private boolean isBOMRelease(Persistable part, String cls) throws WTException
WTException
public final void removePending(ESITransaction txn, boolean txnNeeded) throws WTException
WTException
public void startDbTransaction() throws WTException
WTException
public void commitDbTransaction() throws WTException
WTException
public void rollbackDbTransaction() throws WTException
WTException
public final Collection latestBOMExport(Collection parts) throws WTException
WTException
private Vector findLatestReleaseBOMParts(Collection tgtAssns, Collection parts) throws WTException
WTException
private boolean checkTx(Persistable obj, String status) throws ESIException
ESIException
private QueryResult findAbortedTx(ESITransaction tx) throws ESIException
ESIException
public boolean isNewerThan(Versioned v1, Versioned v2) throws WTException
WTException
private void createReleaseActivity(Persistable persistable, String description, ESITransaction transaction, boolean successful, ESITarget target, String message, String timestamp, String action, String cls, String user, boolean isTransactionRequired, boolean isWarning) throws WTException
WTException
private void purgePending(Persistable p, ESITarget tgt, String cls) throws WTException
WTException
private void addTxnsToVector(Vector v, QueryResult qr) throws WTException
WTException
private void addUniqueTransactions(Group g, Vector v) throws WTException
WTException
private static Persistable getSynchObject() throws WTException
WTException
private static void createSynchObject() throws WTException
WTException
private static void lockSynchObject() throws WTException
WTException
private Vector getAssociationsFromFromGroup(Group links) throws WTException
WTException
private boolean hasWarningMessages(String txnID) throws WTException
WTException
private Vector findTransactionsForAssociatedObjects(Persistable obj) throws WTException
WTException
private QueryResult findTransactionsForReleasedObjects(Persistable obj) throws WTException
WTException
private void addTxnsForObjectsToVector(Vector v, Vector qr) throws WTException
WTException
private boolean isIterationInRelease(Master master) throws ESIException
ESIException
private boolean isObjInRelease(Persistable obj) throws ESIException
ESIException
private QueryResult retrieveIterations(Class iterationClass, Master master) throws WTException
WTException
public static boolean checkReleaseActivity(Persistable obj, ESITarget target, String status, String action)
public static boolean isReleaseFailedChange(Persistable obj, ESITarget target)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |