|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bsf.commons.ejb.GenericAdapterBean
org.bsf.commons.ejb.SessionAdapterBean
org.bsf.listOfValues.LovServiceBean
This stateless ejb provides access to the list of values features. It provides a way to access and update a LOV.
LovBean
,
LovValue
,
LovBusinessInterface
,
Serialized FormField Summary | |
private LOVLocalHome |
_lovEntityLocalHome
|
private java.lang.String |
JNDI_DATABASE_NAME
|
private static java.lang.String |
TABLE_NAME_FROM_LOV_OID_STATEMENT
|
Fields inherited from class org.bsf.commons.ejb.SessionAdapterBean |
_ejbContext |
Fields inherited from class org.bsf.commons.ejb.GenericAdapterBean |
|
Constructor Summary | |
LovServiceBean()
|
Method Summary | |
void |
ejbCreate()
|
java.util.List |
getListOfValues(java.lang.Long p_lovOID)
Returns, in the order of the executed SQL, the list of LovValues corresponding to the given p_lovOID. |
private LOVLocal |
getLov(java.lang.Long p_lovOID)
Utility method to provide access to the desired LOV. |
java.util.List |
getLOVMetaData(java.lang.Long p_lovOID)
Provides access to the metadata for a given list of values. |
LovValue |
getLovValue(java.lang.Long p_lovOID,
java.lang.Long p_lovValueOID)
Returns the LovValue having the oid p_lovValueOID in the LOV whose oid is p_lovOID. |
java.util.Map |
getLovValues(java.lang.Long p_lovOID)
Returns a map (LovValueOID, LovValue) of LovValues corresponding to the given p_lovOID. |
void |
resynchronizeListOfValues(java.lang.Long p_lovOID)
Ensures that the LOVs using the same TABLE_NAME as the LOV identified by the given OID are reloaded (in general due to a data update). |
void |
resynchronizeListOfValues(java.lang.String p_tableName)
Ensures that the LOVs referencing the TABLE_NAME are reseted. |
Methods inherited from class org.bsf.commons.ejb.SessionAdapterBean |
ejbActivate, ejbPassivate, ejbRemove, getEJBContext, getUserName, setSessionContext |
Methods inherited from class org.bsf.commons.ejb.GenericAdapterBean |
getConnection, getEJBClassName, getEJBToolBox, getHome, handleCreateSessionException, handleExceptionAsSystemException, handleFinderException, handleRemoteException, handleSQLException, logDebug, logError, logError, logFatal, logFatal, logGraphBegin, logGraphEnd, logInfo, logWarn |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String TABLE_NAME_FROM_LOV_OID_STATEMENT
private LOVLocalHome _lovEntityLocalHome
private final java.lang.String JNDI_DATABASE_NAME
Constructor Detail |
public LovServiceBean()
Method Detail |
public java.util.List getLOVMetaData(java.lang.Long p_lovOID) throws javax.ejb.FinderException
p_lovOID
- The OID of the list of values for which we want the
metadata.
java.lang.IllegalArgumentException
- if the given oid is null.
javax.ejb.FinderException
- if a lov with the given oid isn't found.LovBean
,
LovValue
,
LovMetaDataItem
public LovValue getLovValue(java.lang.Long p_lovOID, java.lang.Long p_lovValueOID) throws NoSuchLovException, NoSuchLovValueException
p_lovOID
- The oid of the LOV that we want to parse.p_lovValueOID
- The oid that we want to find in the selected LOV.
NoSuchLovException
- if no LOV is found for the given p_lovOID.
NoSuchLovValueException
- if no LovValue is found having the
p_lovValueOID in the selected LOV.
java.lang.IllegalArgumentException
- if the given p_lovOID or p_lovValueOID
is (are) null.LovValue
public java.util.List getListOfValues(java.lang.Long p_lovOID) throws NoSuchLovException
p_lovOID
- The oid of the LOV that we want to retrieve.
java.lang.IllegalArgumentException
- if the given lovOID is null.
NoSuchLovException
- if no LOV is having the given oid.LovBean
,
LovValue
public java.util.Map getLovValues(java.lang.Long p_lovOID) throws NoSuchLovException
p_lovOID
- The oid of the LOV that we want to retrieve.
java.lang.IllegalArgumentException
- if the given p_lovOID is null.
NoSuchLovException
- if no LOV is having the given oid.LovBean
,
LovValue
public void resynchronizeListOfValues(java.lang.Long p_lovOID) throws NoSuchLovException
p_lovOID
- The oid of the LOV whose TABLE_NAME will be used to
refresh the LOVs.
java.lang.IllegalArgumentException
- if the given p_lovOID is null.
NoSuchLovException
- if there is no LOV having the given lovOID.LovBean
,
resynchronizeListOfValues(String p_tableName)
public void resynchronizeListOfValues(java.lang.String p_tableName)
p_tableName
- The oid of the LOV whose TABLE_NAME will be used to
refresh the LOVs. Does nothing if the name is invalid (null, no match).LovBean
,
resynchronizeListOfValues(Long p_lovOID)
private LOVLocal getLov(java.lang.Long p_lovOID) throws NoSuchLovException
p_lovOID
- The oid of the desired LOV.
NoSuchLovException
- if no LOV is found having the given oid.public void ejbCreate() throws javax.ejb.CreateException
javax.ejb.CreateException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |