Class EnumerationManagerEJB
- java.lang.Object
-
- de.hybris.platform.persistence.ManagerEJB
-
- de.hybris.platform.persistence.enumeration.EnumerationManagerEJB
-
public class EnumerationManagerEJB extends ManagerEJB
-
-
Constructor Summary
Constructors Constructor Description EnumerationManagerEJB()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanRemoveItem(ItemRemote item)In case a manager wants to abort the removal of an Item this method should return false.ComposedTypeRemotecreateEnumerationType(PK pkBase, java.lang.String code, ComposedTypeRemote valueType)EnumerationValueRemotecreateEnumerationValue(PK pkBase, ComposedTypeRemote enumerationType, java.lang.String valueCode, int number)ComposedTypeRemotegetEnumerationMetaType()ComposedTypeRemotegetEnumerationType(java.lang.String code)EnumerationValueRemotegetEnumerationValue(ComposedTypeRemote enumerationType, java.lang.String code)EnumerationValueRemotegetEnumerationValue(java.lang.String enumerationTypeCode, java.lang.String code)protected EnumerationValueHomegetEnumerationValueHome()java.util.ListgetEnumerationValues(ComposedTypeRemote enumerationType)intgetTypecode()voidremoveItem(ItemRemote item)Removes an Item which is not stageable.voidsortEnumerationValues(java.util.List enumerationValues)protected java.lang.StringstringFor(ComposedTypeRemote type)-
Methods inherited from class de.hybris.platform.persistence.ManagerEJB
ejbCreate, ejbPostCreate, getPersistencePool, isReinitialization, notifyItemRemove, prepareItemRemove
-
-
-
-
Method Detail
-
getTypecode
public int getTypecode()
-
removeItem
public void removeItem(ItemRemote item) throws ConsistencyCheckException
Description copied from class:ManagerEJBRemoves an Item which is not stageable. The following tasks are done by this method:- Check if item is stageable; if it is, throw exception (we can
- call
ManagerEJB.prepareItemRemove(ItemRemote) - Depending on the given stagingMethod do:
Productive Stage - Remove staged copy (item.getStagedCopy()) of item, if it exist
- call NotifyManager.notifyItemRemove( item )
- Remove the entity
- Remove staged copy (item.getStagedCopy()) of item, if it exist
- Mark item as removed (item.setRemoved(true)
- Overrides:
removeItemin classManagerEJB- Throws:
ConsistencyCheckException- See Also:
ManagerEJB.prepareItemRemove(ItemRemote)
-
canRemoveItem
public boolean canRemoveItem(ItemRemote item) throws ConsistencyCheckException
Description copied from class:ManagerEJBIn case a manager wants to abort the removal of an Item this method should return false. Since all manager are asked before you can assume that no changes are made when one manager aborts.- Overrides:
canRemoveItemin classManagerEJB- Throws:
ConsistencyCheckException- you can either throw an exception or return false
-
createEnumerationType
public ComposedTypeRemote createEnumerationType(PK pkBase, java.lang.String code, ComposedTypeRemote valueType) throws EJBDuplicateCodeException, EJBInvalidParameterException
-
getEnumerationType
public ComposedTypeRemote getEnumerationType(java.lang.String code) throws EJBItemNotFoundException
- Throws:
EJBItemNotFoundException
-
getEnumerationValueHome
protected EnumerationValueHome getEnumerationValueHome()
-
getEnumerationMetaType
public ComposedTypeRemote getEnumerationMetaType()
-
stringFor
protected java.lang.String stringFor(ComposedTypeRemote type)
-
createEnumerationValue
public EnumerationValueRemote createEnumerationValue(PK pkBase, ComposedTypeRemote enumerationType, java.lang.String valueCode, int number) throws ConsistencyCheckException, EJBInvalidParameterException
-
getEnumerationValues
public java.util.List getEnumerationValues(ComposedTypeRemote enumerationType) throws EJBInvalidParameterException
- Throws:
EJBInvalidParameterException
-
getEnumerationValue
public EnumerationValueRemote getEnumerationValue(ComposedTypeRemote enumerationType, java.lang.String code) throws EJBInvalidParameterException, EJBItemNotFoundException
-
getEnumerationValue
public EnumerationValueRemote getEnumerationValue(java.lang.String enumerationTypeCode, java.lang.String code) throws EJBInvalidParameterException, EJBItemNotFoundException
-
sortEnumerationValues
public void sortEnumerationValues(java.util.List enumerationValues) throws EJBInvalidParameterException- Throws:
EJBInvalidParameterException
-
-