Class DateTimeDatatype
java.lang.Object
io.jmix.core.metamodel.datatype.impl.DateTimeDatatype
- All Implemented Interfaces:
Datatype<Date>,ParameterizedDatatype,TimeZoneAwareDatatype
public class DateTimeDatatype
extends Object
implements Datatype<Date>, ParameterizedDatatype, TimeZoneAwareDatatype
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConverts value to String.Converts value to String taking into account local formats.Converts value to String taking into account local formats and timezone.Parses value from StringParses value from String taking into account local formatsvoidsetFormatStringsRegistry(FormatStringsRegistry formatStringsRegistry) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.jmix.core.metamodel.datatype.Datatype
getId, getJavaClass
-
Field Details
-
formatStringsRegistry
-
-
Constructor Details
-
DateTimeDatatype
public DateTimeDatatype()
-
-
Method Details
-
setFormatStringsRegistry
-
format
Description copied from interface:DatatypeConverts value to String. Returns an empty string for null value. -
format
Description copied from interface:DatatypeConverts value to String taking into account local formats. Returns an empty string for null value. -
format
Description copied from interface:TimeZoneAwareDatatypeConverts value to String taking into account local formats and timezone. Returns an empty string for null value.- Specified by:
formatin interfaceTimeZoneAwareDatatype
-
parse
Description copied from interface:DatatypeParses value from String- Specified by:
parsein interfaceDatatype<Date>- Throws:
ParseException
-
parse
Description copied from interface:DatatypeParses value from String taking into account local formats- Specified by:
parsein interfaceDatatype<Date>- Throws:
ParseException
-
parse
@Nullable public Date parse(@Nullable String value, Locale locale, @Nullable TimeZone timeZone) throws ParseException - Throws:
ParseException
-
getParameters
- Specified by:
getParametersin interfaceParameterizedDatatype
-
toString
-