|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for DAO plugins that perform additional processing of data from result set columns just before they get set into DM fields during a DAO fetch call.
Multiple ResultSetFieldProcessor
plugins can be installed
for one DAO. In this case they will be called in the order, in which their
<plugin>
elements appear in the DAO configuration. Each
processor gets at its input value returned by the previous one.
Note, that one instance of the processor can be shared by multiple threads at the same time.
Method Summary | |
java.lang.Object |
processResultSetField(java.lang.String fieldName,
java.lang.Class fieldClass,
java.lang.Object value)
This method is called by the DAO just before a value from a result set column gets set into a DM field. |
Methods inherited from interface com.boylesoftware.cb2.DAOPlugin |
setApplicationContext |
Method Detail |
public java.lang.Object processResultSetField(java.lang.String fieldName, java.lang.Class fieldClass, java.lang.Object value) throws BLException
Note, that if this method returns an object, which has type
incomaptible with the target DM field, the DAO will throw an
IllegalArgumentException
runtime exception when it tries to
actually set it.
fieldName
- name of the target DM field.fieldClass
- type of the target DM field. When the DM is a
DynamicDataModel
, generic Object
class is
passed from the DAO.value
- the original value intended to be set into the DM field.
BLException
- if an unexpected error happens.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |