public class EnumerationManagerEJB extends ManagerEJB
| Constructor and Description |
|---|
EnumerationManagerEJB() |
ejbCreate, ejbPostCreate, getPersistencePool, initializeCreateObjects, initializeModifyTypes, initializeRemoveObjects, isReinitialization, notifyItemRemove, prepareItemRemovepublic int getTypecode()
public void initializeCreateTypes(Map props)
ManagerEJBManagerEJB.initializeModifyTypes(Map )!
override to create your own types here but dont forget to call super.initializeCreateTypes.
public void removeItem(ItemRemote item) throws ConsistencyCheckException
ManagerEJBManagerEJB.prepareItemRemove(ItemRemote )
| Productive | Stage |
|---|---|
|
|
|
removeItem in class ManagerEJBConsistencyCheckExceptionManagerEJB.prepareItemRemove(ItemRemote )public boolean canRemoveItem(ItemRemote item) throws ConsistencyCheckException
ManagerEJBcanRemoveItem in class ManagerEJBConsistencyCheckException - you can either throw an exception or return falsepublic ComposedTypeRemote createEnumerationType(PK pkBase, String code, ComposedTypeRemote valueType) throws EJBDuplicateCodeException, EJBInvalidParameterException
public ComposedTypeRemote getEnumerationType(String code) throws EJBItemNotFoundException
EJBItemNotFoundExceptionprotected EnumerationValueHome getEnumerationValueHome()
public ComposedTypeRemote getEnumerationMetaType()
protected String stringFor(ComposedTypeRemote type)
public EnumerationValueRemote createEnumerationValue(PK pkBase, ComposedTypeRemote enumerationType, String valueCode, int number) throws ConsistencyCheckException, EJBInvalidParameterException
public List getEnumerationValues(ComposedTypeRemote enumerationType) throws EJBInvalidParameterException
EJBInvalidParameterExceptionpublic EnumerationValueRemote getEnumerationValue(ComposedTypeRemote enumerationType, String code) throws EJBInvalidParameterException, EJBItemNotFoundException
public EnumerationValueRemote getEnumerationValue(String enumerationTypeCode, String code) throws EJBInvalidParameterException, EJBItemNotFoundException
public void sortEnumerationValues(List enumerationValues) throws EJBInvalidParameterException
EJBInvalidParameterExceptionCopyright © 2017 SAP SE. All Rights Reserved.