public class ModeAwareProductPersistTransformer<P extends Product> extends ProductPersistTransformer<P> implements ModeAware
| Modifier and Type | Field and Description | 
|---|---|
| protected javax.persistence.EntityManager | em | 
allowMultipleParents, productServiceexceptions, failFast, messages, tm| Constructor and Description | 
|---|
| ModeAwareProductPersistTransformer() | 
| Modifier and Type | Method and Description | 
|---|---|
| Mode | getMode()The processing logic of the Reader may differ based n the fact it is intended to Update or Insert or Delete
  | 
| List<Mode> | getModesSupported()Get the  Modes supported by the instance | 
| protected boolean | saveProductAlias(P p)Handle the process of creating/updating a  ProductAliasCreate an Alias for a request of parent Hierarchy that is different that an existing one only else reject the request | 
| void | setMode(Mode mode) | 
| Object | transform(Object input) | 
getId, getNewProduct, getProductService, getTransactionDef, isAllowMultipleParents, setAllowMultipleParents, setProductService, setTransactionDef, write, writeclose, getExceptions, getMessages, handleException, init, isExecuteUnderTransaction, isFailFast, isInitialized, setExceptions, setExecuteUnderTransaction, setFailFast, setMessagespublic Object transform(Object input)
transform in interface org.apache.commons.collections.Transformertransform in class EntityPersistTransformer<P extends Product>@Transactional(readOnly=false) protected boolean saveProductAlias(P p)
ProductPersistTransformerProductAlias
 saveProductAlias in class ProductPersistTransformer<P extends Product>p - as Product; non-committed version from the ETL. It may not have an Product.getId() and it may have a different parent need than the one existing alreadypublic Mode getMode()
ModeAwareCopyright © 2018. All rights reserved.