Package org.apache.ofbiz.base.conversion
Class DateTimeConverters.SqlTimeToString
java.lang.Object
org.apache.ofbiz.base.conversion.AbstractConverter<S,T>
org.apache.ofbiz.base.conversion.AbstractLocalizedConverter<S,T>
org.apache.ofbiz.base.conversion.DateTimeConverters.GenericLocalizedConverter<Time,String>
org.apache.ofbiz.base.conversion.DateTimeConverters.SqlTimeToString
- All Implemented Interfaces:
Converter<Time,
,String> ConverterLoader
,LocalizedConverter<Time,
String>
- Enclosing class:
- DateTimeConverters
public static class DateTimeConverters.SqlTimeToString
extends DateTimeConverters.GenericLocalizedConverter<Time,String>
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.ofbiz.base.conversion.DateTimeConverters.GenericLocalizedConverter
convert, convert
Methods inherited from class org.apache.ofbiz.base.conversion.AbstractLocalizedConverter
convert, convert
Methods inherited from class org.apache.ofbiz.base.conversion.AbstractConverter
canConvert, convert, getSourceClass, getTargetClass, loadConverters
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.ofbiz.base.conversion.Converter
canConvert, convert, getSourceClass, getTargetClass
-
Constructor Details
-
SqlTimeToString
public SqlTimeToString()
-
-
Method Details
-
convert
public String convert(Time obj, Locale locale, TimeZone timeZone, String formatString) throws ConversionException Description copied from interface:LocalizedConverter
Convertsobj
toT
.- Parameters:
obj
- The sourceObject
to convertlocale
- The locale used for conversion - must not benull
timeZone
- The time zone used for conversion - must not benull
formatString
- Optional formatting string- Returns:
- The converted
Object
- Throws:
ConversionException
-