Package org.apache.ofbiz.base.conversion
Class DateTimeConverters.TimestampToDate
java.lang.Object
org.apache.ofbiz.base.conversion.AbstractConverter<Timestamp,Date>
org.apache.ofbiz.base.conversion.DateTimeConverters.TimestampToDate
- All Implemented Interfaces:
Converter<Timestamp,
,Date> ConverterLoader
- Enclosing class:
- DateTimeConverters
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.ofbiz.base.conversion.AbstractConverter
convert, getSourceClass, getTargetClass, loadConverters
-
Constructor Details
-
TimestampToDate
public TimestampToDate()
-
-
Method Details
-
canConvert
Description copied from interface:Converter
Returnstrue
if this object can convertsourceClass
totargetClass
.Implementations can accomodate class hierarchy ranges by converting super classes or interfaces.
- Specified by:
canConvert
in interfaceConverter<Timestamp,
Date> - Overrides:
canConvert
in classAbstractConverter<Timestamp,
Date> - Parameters:
sourceClass
- The sourceClass
targetClass
- The targetClass
- Returns:
true
if this object can convertsourceClass
totargetClass
.
-
convert
Description copied from interface:Converter
Convertsobj
toT
.- Parameters:
obj
- The sourceObject
to convert- Returns:
- The converted
Object
- Throws:
ConversionException
-