Class DatePropertyHandler
java.lang.Object
org.apache.commons.dbutils.handlers.properties.DatePropertyHandler
- All Implemented Interfaces:
PropertyHandler
PropertyHandler for date fields. Will convert Date, Time, and
Timestamp from SQL types to java types.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DatePropertyHandler
public DatePropertyHandler()
-
-
Method Details
-
match
Description copied from interface:PropertyHandlerTest whether thisPropertyHandlerwants to handle settingvalueinto something of typeparameter.- Specified by:
matchin interfacePropertyHandler- Parameters:
parameter- The type of the target parameter.value- The value to be set.- Returns:
- true is this property handler can/wants to handle this value; false otherwise.
-
apply
Description copied from interface:PropertyHandlerDo the work required to storevalueinto something of typeparameter. This method is called only if this handler respondedtrueafter a call toPropertyHandler.match(Class, Object).- Specified by:
applyin interfacePropertyHandler- Parameters:
parameter- The type of the target parameter.value- The value to be set.- Returns:
- The converted value or the original value if something doesn't work out.
-