@Override
  public final InvItemTaxCategoryLine process(
    final Map<String, Object> pAddParam,
      final InvItemTaxCategoryLine pEntity,
        final IRequestData pRequestData) throws Exception {
    // Beige-Orm refresh:
    pEntity.setItsOwner(getSrvOrm()
      .retrieveEntity(pAddParam, pEntity.getItsOwner()));
    // optimistic locking (dirty check):
    Long ownerVersion = Long.valueOf(pRequestData
      .getParameter(InvItemTaxCategory.class.getSimpleName()
        + ".ownerVersion"));
    pEntity.getItsOwner().setItsVersion(ownerVersion);
    getSrvOrm().deleteEntity(pAddParam, pEntity);
    updateInvItemTaxCategory(pAddParam, pEntity.getItsOwner());
    pAddParam.put("nextEntity", pEntity.getItsOwner());
    pAddParam.put("nameOwnerEntity",
      InvItemTaxCategory.class.getSimpleName());
    return null;
  }
@ Override public final InvItemTaxCategoryLine process ( final Map < String , Object > pAddParam , final InvItemTaxCategoryLine pEntity , final IRequestData pRequestData ) throws Exception { pEntity . setItsOwner ( getSrvOrm ( ) . retrieveEntity ( pAddParam , pEntity . getItsOwner ( ) ) ) ; Long ownerVersion = Long . valueOf ( pRequestData . getParameter ( InvItemTaxCategory . class . getSimpleName ( ) + ".ownerVersion" ) ) ; pEntity . getItsOwner ( ) . setItsVersion ( ownerVersion ) ; getSrvOrm ( ) . deleteEntity ( pAddParam , pEntity ) ; updateInvItemTaxCategory ( pAddParam , pEntity . getItsOwner ( ) ) ; pAddParam . put ( "nextEntity" , pEntity . getItsOwner ( ) ) ; pAddParam . put ( "nameOwnerEntity" , InvItemTaxCategory . class . getSimpleName ( ) ) ; return null ; }
<p>Process entity request.</p>
@param pAddParam additional param, e.g. return this line's
document in "nextEntity" for farther process
@param pRequestData Request Data
@param pEntity Entity to process
@return Entity processed for farther process or null
@throws Exception - an exception