Package org.eclnt.ccee.db.dofw
Interface ISimpleDataTypeExtensionDOFW
- All Superinterfaces:
org.eclnt.util.valuemgmt.ISimpleDataTypeExtension
public interface ISimpleDataTypeExtensionDOFW
extends org.eclnt.util.valuemgmt.ISimpleDataTypeExtension
Extended functions for simple data type mapping - so that own simple data
types can be directly bound to data base operations.
At runtime all instances of
At runtime all instances of
ISimpleDataTypeExtension
that are
registered in ValueManager
are checked if they implement this
interface in addition. There can be multiple extensions each one taking over
responsibility for certain simple data types.-
Method Summary
Modifier and TypeMethodDescriptionconvertResultSetValueIntoSimpleDataTypeValue
(Object value, DOFWProperty property, ResultSet rs, int columnIndex, Class propType) void
passSimpleDataTypeValueIntoPreparedStatement
(Object value, DOFWProperty property, PreparedStatement ps, int columnIndex) Methods inherited from interface org.eclnt.util.valuemgmt.ISimpleDataTypeExtension
checkIfClassIsSimpleDataType, convertSimpleDataTypeObjectIntoString, convertStringIntoSimpleDataTypeObject
-
Method Details
-
convertResultSetValueIntoSimpleDataTypeValue
Object convertResultSetValueIntoSimpleDataTypeValue(Object value, DOFWProperty property, ResultSet rs, int columnIndex, Class propType) - Parameters:
value
- The value of the result set as returned by "rs.getObject(columnIndex)". This method is already executed by the caller - so you do not have to call a second time.
Pay attention: null values may be passed!property
- meta information about the property that is currently processedrs
- Result set that is currently processed.columnIndex
- Column of the result set that is currently processed.propType
- The class that the value from the result set must be converted to.- Returns:
- Object that is instance of propType that is passed as parameter - or null if this extension is not responsible for resolving this data type.
-
passSimpleDataTypeValueIntoPreparedStatement
void passSimpleDataTypeValueIntoPreparedStatement(Object value, DOFWProperty property, PreparedStatement ps, int columnIndex) throws SQLException - Parameters:
value
- The simple data type value that needs to be stored in the database.
Pay attention: also null values are passed!property
- Meta information about the property.ps
- The prepared statement that is currently processed.columnIndex
- The index into which the converted value hat to be set by using one of the ps.set*(...) methods.- Throws:
SQLException
-