Module com.legyver.utils.mapqua
Class MapBackedLocalDateTime
- java.lang.Object
-
- com.legyver.utils.mapqua.mapbacked.MapBackedProperty<java.time.LocalDateTime>
-
- com.legyver.utils.mapqua.mapbacked.MapBackedLocalDateTime
-
public class MapBackedLocalDateTime extends MapBackedProperty<java.time.LocalDateTime>
A LocalDateTime variable that can be represented as a key-value pair in the POJO internal Map
-
-
Field Summary
-
Fields inherited from class com.legyver.utils.mapqua.mapbacked.MapBackedProperty
property, sourceMap, valueIfMissing
-
-
Constructor Summary
Constructors Constructor Description MapBackedLocalDateTime(java.util.Map sourceMap, java.lang.String property)Construct a MapBackedLocalDateTime with a certain property name.MapBackedLocalDateTime(java.util.Map sourceMap, java.lang.String property, java.time.LocalDateTime valueIfMissing)Construct a MapBackedLocalDateTime with a certain property name and default value
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Optional<java.time.LocalDateTime>queryOption()Hook to allow the LocalDateTime to be queryable-
Methods inherited from class com.legyver.utils.mapqua.mapbacked.MapBackedProperty
get, set
-
-
-
-
Constructor Detail
-
MapBackedLocalDateTime
public MapBackedLocalDateTime(java.util.Map sourceMap, java.lang.String property, java.time.LocalDateTime valueIfMissing)Construct a MapBackedLocalDateTime with a certain property name and default value- Parameters:
sourceMap- Map to store the LocalDateTime value inproperty- Key name of the propertyvalueIfMissing- value to set if missing
-
MapBackedLocalDateTime
public MapBackedLocalDateTime(java.util.Map sourceMap, java.lang.String property)Construct a MapBackedLocalDateTime with a certain property name. Uses the current LocalDateTime as the default value- Parameters:
sourceMap- Map to store the LocalDateTime value inproperty- Key name of the property
-
-
Method Detail
-
queryOption
protected java.util.Optional<java.time.LocalDateTime> queryOption() throws com.legyver.core.exception.CoreExceptionHook to allow the LocalDateTime to be queryable- Specified by:
queryOptionin classMapBackedProperty<java.time.LocalDateTime>- Returns:
- the query option to use
- Throws:
com.legyver.core.exception.CoreException- if there is a problem marshalling to/from JSON
-
-