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 boolean
canRemoveItem(ItemRemote item)
In case a manager wants to abort the removal of an Item this method should return false.ComposedTypeRemote
createEnumerationType(PK pkBase, java.lang.String code, ComposedTypeRemote valueType)
EnumerationValueRemote
createEnumerationValue(PK pkBase, ComposedTypeRemote enumerationType, java.lang.String valueCode, int number)
ComposedTypeRemote
getEnumerationMetaType()
ComposedTypeRemote
getEnumerationType(java.lang.String code)
EnumerationValueRemote
getEnumerationValue(ComposedTypeRemote enumerationType, java.lang.String code)
EnumerationValueRemote
getEnumerationValue(java.lang.String enumerationTypeCode, java.lang.String code)
protected EnumerationValueHome
getEnumerationValueHome()
java.util.List
getEnumerationValues(ComposedTypeRemote enumerationType)
int
getTypecode()
void
removeItem(ItemRemote item)
Removes an Item which is not stageable.void
sortEnumerationValues(java.util.List enumerationValues)
protected java.lang.String
stringFor(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:ManagerEJB
Removes 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:
removeItem
in classManagerEJB
- Throws:
ConsistencyCheckException
- See Also:
ManagerEJB.prepareItemRemove(ItemRemote)
-
canRemoveItem
public boolean canRemoveItem(ItemRemote item) throws ConsistencyCheckException
Description copied from class:ManagerEJB
In 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:
canRemoveItem
in 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
-
-