Class EnumerationManagerEJB
java.lang.Object
de.hybris.platform.persistence.ManagerEJB
de.hybris.platform.persistence.enumeration.EnumerationManagerEJB
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanRemoveItem(ItemRemote item) In case a manager wants to abort the removal of an Item this method should return false.createEnumerationType(PK pkBase, String code, ComposedTypeRemote valueType) createEnumerationValue(PK pkBase, ComposedTypeRemote enumerationType, String valueCode, int number) getEnumerationType(String code) getEnumerationValue(ComposedTypeRemote enumerationType, String code) getEnumerationValue(String enumerationTypeCode, String code) protected EnumerationValueHomegetEnumerationValues(ComposedTypeRemote enumerationType) intvoidremoveItem(ItemRemote item) Removes an Item which is not stageable.voidsortEnumerationValues(List enumerationValues) protected StringstringFor(ComposedTypeRemote type) Methods inherited from class de.hybris.platform.persistence.ManagerEJB
ejbCreate, ejbPostCreate, getPersistencePool, isReinitialization, notifyItemRemove, prepareItemRemove
-
Constructor Details
-
EnumerationManagerEJB
public EnumerationManagerEJB()
-
-
Method Details
-
getTypecode
public int getTypecode() -
removeItem
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:
-
canRemoveItem
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, String code, ComposedTypeRemote valueType) throws EJBDuplicateCodeException, EJBInvalidParameterException -
getEnumerationType
- Throws:
EJBItemNotFoundException
-
getEnumerationValueHome
-
getEnumerationMetaType
-
stringFor
-
createEnumerationValue
public EnumerationValueRemote createEnumerationValue(PK pkBase, ComposedTypeRemote enumerationType, String valueCode, int number) throws ConsistencyCheckException, EJBInvalidParameterException -
getEnumerationValues
public List getEnumerationValues(ComposedTypeRemote enumerationType) throws EJBInvalidParameterException - Throws:
EJBInvalidParameterException
-
getEnumerationValue
public EnumerationValueRemote getEnumerationValue(ComposedTypeRemote enumerationType, String code) throws EJBInvalidParameterException, EJBItemNotFoundException -
getEnumerationValue
public EnumerationValueRemote getEnumerationValue(String enumerationTypeCode, String code) throws EJBInvalidParameterException, EJBItemNotFoundException -
sortEnumerationValues
- Throws:
EJBInvalidParameterException
-