public class ModeAwareProductPersistTransformer<P extends Product> extends ProductPersistTransformer<P> implements ModeAware
Modifier and Type | Field and Description |
---|---|
protected javax.persistence.EntityManager |
em |
allowMultipleParents, productService
exceptions, 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
Mode s supported by the instance |
protected boolean |
saveProductAlias(P p)
Handle the process of creating/updating a
ProductAlias
Create 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, write
close, getExceptions, getMessages, handleException, init, isExecuteUnderTransaction, isFailFast, isInitialized, setExceptions, setExecuteUnderTransaction, setFailFast, setMessages
public Object transform(Object input)
transform
in interface org.apache.commons.collections.Transformer
transform
in class EntityPersistTransformer<P extends Product>
@Transactional(readOnly=false) protected boolean saveProductAlias(P p)
ProductPersistTransformer
ProductAlias
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()
ModeAware
Copyright © 2018. All rights reserved.