public class PersistGiftRegistryCmdImpl extends BusinessObjectDocumentCmdImpl implements PersistGiftRegistryCmd
PersistGiftRegistryCmd
. The following protocol will be used to
determine if a row has been created for a GiftRegistry
:
GiftRegistryVO
.
GiftRegistryVO
, the situation is a little complicated:
GiftRegistryVO
has neither externalId nor giftRegistryId, it is new.
GiftRegistryVO
has giftRegistryId, it is to be updated.
GiftRegistryVO
has only externalId, database will be searched for a
record with the externalId. If such record is found, the gift registry is to be updated.
Otherwise, it is new and its externalId is as given.
Verb
will be written to
database regardless of whether the indicated value is null or not.
PersistGiftRegistryCmd
,
Serialized FormModifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_NAME
The class name of this class
|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
PersistGiftRegistryCmdImpl() |
Modifier and Type | Method and Description |
---|---|
AccessVector |
getResources()
Returns a vector of AccessBeans to check authority against
|
void |
performExecute()
Persists all the data in a gift registry value object into database
|
getResultBOD, setRequestBOD
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getResultBOD, setRequestBOD
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASS_NAME
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- the exception is thrown when the persisting operation fails.public AccessVector getResources() throws ECException
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand
ECException
- _ERR_USER_AUTHORITY when no gift registry access bean can be found.