public abstract class AbstractGetBusinessObjectDocumentCmdImpl extends com.ibm.commerce.command.MeasuredCacheableCommandImpl implements BusinessObjectDocumentCmd
Constructor and Description |
---|
AbstractGetBusinessObjectDocumentCmdImpl()
Creates an instance of the get business object document command.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFetchCommandInterface()
This method returns the fetch command interface that has been specified
on the command configuration.
|
java.lang.String |
getInsertMoreDataCommandInterface()
This method returns the insert more data command interface to instantiate the
command implementation.
|
BusinessObjectDocumentType |
getResultBusinessObjectDocument()
This method returns the response business object document that represents
the result of executing the request.
|
SearchExpression |
getSearchExpression()
Gets the
SearchExpression object created in the validateExpression() |
java.util.Collection |
getUniqueID()
This method returns a collection of unique IDs of the nouns involved with this change
request.
|
void |
handleException(java.lang.Exception exception)
This method sets the exception as the result of executing the request.
|
boolean |
isReadyToCallExecute()
This method always indicates the command is ready to execute.
|
void |
performExecute()
This method will execute the get command by calling
validateExpression
and performExpression . |
void |
setFetchCommandInterface(java.lang.String fetchCommandInterface)
This method sets the fetch command interface that is used to
resolve the fetch command implementation.
|
void |
setInsertMoreDataCommandInterface(java.lang.String insertMoreDataCommand)
This method sets the insert more data command interface which is used to instantiate the
insert more data command.
|
void |
setOutputProperties(com.ibm.websphere.command.TargetableCommand targetableCommand)
This method is used for setting the command response variables from the specified target command.
|
void |
setRequestBusinessObjectDocument(BusinessObjectDocumentType businessObjectDocument)
This method sets the request business object document of the business
logic to execute.
|
void |
setUniqueIDXPath(java.lang.String uniqueIDXPath)
This method sets the XPath expression from the noun to use to retrieve the unique ID of the noun.
|
executeFromCache, getCaller, getEntryInfo, getId, getObjectSize, getSharingPolicy, postExecute, preExecute, reset, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setTargetPolicy
public AbstractGetBusinessObjectDocumentCmdImpl()
public BusinessObjectDocumentType getResultBusinessObjectDocument()
getResultBusinessObjectDocument
in interface BusinessObjectDocumentCmd
public void setRequestBusinessObjectDocument(BusinessObjectDocumentType businessObjectDocument)
setRequestBusinessObjectDocument
in interface BusinessObjectDocumentCmd
businessObjectDocument
- The request business object document.public boolean isReadyToCallExecute()
isReadyToCallExecute
in interface com.ibm.websphere.command.Command
isReadyToCallExecute
in class com.ibm.websphere.command.TargetableCommandImpl
Command.isReadyToCallExecute()
public final void performExecute() throws java.lang.Exception
validateExpression
and performExpression
. This method controls the steps required
when executing the get verb.performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class com.ibm.websphere.command.TargetableCommandImpl
java.lang.Exception
- Can occur if the validation of the business object document
fails or a problem occur when performing the expression.TargetableCommand.performExecute()
public void handleException(java.lang.Exception exception)
getResultBusinessObjectDocument()
will still be used to return the
result, this call out will indicate that exception information is required to be
populated.handleException
in interface BusinessObjectDocumentCmd
exception
- The application exception that occurred when executing the
business object document.public java.lang.String getFetchCommandInterface()
public void setFetchCommandInterface(java.lang.String fetchCommandInterface)
fetchCommandInterface
- The fetch command interface.public java.lang.String getInsertMoreDataCommandInterface()
public void setInsertMoreDataCommandInterface(java.lang.String insertMoreDataCommand)
insertMoreDataCommand
- The insert more data command interface.public SearchExpression getSearchExpression()
SearchExpression
object created in the validateExpression() method.
SearchExpression
object.public java.util.Collection getUniqueID()
This method returns a collection of unique IDs of the nouns involved with this change request. This list of unique IDs is to indicate which nouns have been involved with the request and requires to be invalidated. An example of defining the invalidation configuration is as follows.
<invalidation>catalog <component id="getUniqueID" type="method" multipleIDs="true"> <required>true</required> </component> </invalidation>
public void setUniqueIDXPath(java.lang.String uniqueIDXPath)
uniqueIDXPath
- The XPath expression to get the uniqueID of the noun.public void setOutputProperties(com.ibm.websphere.command.TargetableCommand targetableCommand)
setOutputProperties
in interface com.ibm.websphere.command.TargetableCommand
setOutputProperties
in class com.ibm.websphere.command.TargetableCommandImpl
targetableCommand
- The targetable command to extract the response variables from.