java.lang.Object
com.flexstor.flexdbserver.services.asset.AssetsInProcessUpdate
- public class AssetsInProcessUpdate
- extends java.lang.Object
This class contains the necessary code to update the ASSETS_INPROCESS table.
|
Field Summary |
private java.util.Hashtable |
htAssets
key = AssetRecordData, value = DisguiseAssetRecordData || AssetRecordData
This hashatble will be used to construct the returning vector of objects in case
of failures in addToAssetsCopySource(). |
static java.lang.String |
IDENTIFIER
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IDENTIFIER
public static final java.lang.String IDENTIFIER
- See Also:
- Constant Field Values
htAssets
private java.util.Hashtable htAssets
- key = AssetRecordData, value = DisguiseAssetRecordData || AssetRecordData
This hashatble will be used to construct the returning vector of objects in case
of failures in addToAssetsCopySource().
AssetsInProcessUpdate
public AssetsInProcessUpdate()
addToAssetsInProcess
public java.util.Vector addToAssetsInProcess(java.util.Vector vAssets,
int nTransId,
java.lang.String sServiceName)
- Adds a row to the ASSETS_INPROCESS table for each asset passed in the argument Vector.
deleteAssetsInProcess
public boolean deleteAssetsInProcess(int nTransId)
- Remove from the ASSETS_INPROCESS those asets that failed to process in a service.
This method will log an error for assets that could not be rolled back.
UpdateAssetsInProcess
public java.util.Vector UpdateAssetsInProcess(java.util.Vector vAssets,
int nTransId,
java.lang.String sServiceName)
- Update the ASSETS_INPROCESS table for each asset passed in the argument Vector.
createActionData
private com.flexstor.common.data.ActionData createActionData(java.util.Vector vAssets,
int nTransId,
java.lang.String sServiceName,
boolean bPopulateHashtable)
createBadAssetsList
private java.util.Vector createBadAssetsList(java.util.Vector vBadAssets)
- This method will get the list of bad AssetRecordData objects returned by the bean
and will create a result vector containing their respective objects (which is what
the caller of this class is expecting).
createAssetsList
private java.util.Vector createAssetsList(java.util.Vector vAssets)
- This method will get the list of AssetRecordData objects returned by the bean
and will create a result vector containing their respective objects (which is what
the caller of this class is expecting).