|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface for the DAO plugin, which is responsible for getting column values from the result set during a DAO fetch call. The DAO calls this plugin whenever it needs a column's value from a result set to be set into a DM.
Only one plugin of this type can be installed in a DAO configuration.
If none installed, the DAO will use a simple internal implementation, which
calls getObject on the java.sql.ResultSet.
Note, that one instance of the plugin can be shared by multiple threads at the same time.
| Method Summary | |
java.lang.Object |
getResultSetField(java.sql.ResultSet rs,
int columnIndex,
java.lang.String dmFieldName,
java.lang.Class dmFieldClass)
Gets the specified column's value from the result set. |
| Methods inherited from interface com.boylesoftware.cb2.DAOPlugin |
setApplicationContext |
| Method Detail |
public java.lang.Object getResultSetField(java.sql.ResultSet rs,
int columnIndex,
java.lang.String dmFieldName,
java.lang.Class dmFieldClass)
throws java.sql.SQLException
rs - the result set.columnIndex - the column index.dmFieldName - name of the target DM field.dmFieldClass - type of the target DM field. When the DM is a
DynamicDataModel, generic Object class is
passed from the DAO.
null.
java.sql.SQLException - if an error happens.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||