public class DateBcProperty extends BcProperty<ZonedDateTime>
BcPropertyBase.RawConverter| Constructor and Description |
|---|
DateBcProperty(String key) |
| Modifier and Type | Method and Description |
|---|---|
ZonedDateTime |
getFirstPropertyValueDateTime(Element element,
ZoneId zoneId) |
ZonedDateTime |
getFirstPropertyValueDateTimeUtc(Element element) |
ZonedDateTime |
getPropertyValueDateTime(Element element,
String propertyKey,
ZoneId zoneId) |
ZonedDateTime |
getPropertyValueDateTimeUtc(Element element,
String propertyKey) |
ZonedDateTime |
unwrap(Value value)
Convert the Ge value to its original raw type.
|
<T extends Element> |
updateProperty(ElementUpdateContext<T> ctx,
String propertyKey,
OffsetDateTime newValue,
PropertyMetadata metadata) |
<T extends Element> |
updateProperty(ElementUpdateContext<T> ctx,
String propertyKey,
OffsetDateTime newValue,
PropertyMetadata metadata,
Long timestamp) |
<T extends Element> |
updateProperty(ElementUpdateContext<T> ctx,
String propertyKey,
ZonedDateTime newValue,
PropertyMetadata metadata) |
<T extends Element> |
updateProperty(ElementUpdateContext<T> ctx,
String propertyKey,
ZonedDateTime newValue,
PropertyMetadata metadata,
Long timestamp) |
<T extends Element> |
updatePropertyIfValueIsNewer(ElementUpdateContext<T> ctx,
String propertyKey,
ZonedDateTime newValue,
PropertyMetadata metadata)
Updates the element with the new property value if the property value is newer than the existing property value
or the update does not have an existing element (for example a new element or a blind write mutation)
|
<T extends Element> |
updatePropertyIfValueIsNewer(ElementUpdateContext<T> ctx,
String propertyKey,
ZonedDateTime newValue,
PropertyMetadata metadata,
Long timestamp)
Updates the element with the new property value if the property value is newer than the existing property value
or the update does not have an existing element (for example a new element or a blind write mutation)
|
<T extends Element> |
updatePropertyIfValueIsOlder(ElementUpdateContext<T> ctx,
String propertyKey,
ZonedDateTime newValue,
PropertyMetadata metadata)
Updates the element with the new property value if the property value is older than the existing property value
or the update does not have an existing element (for example a new element or a blind write mutation)
|
<T extends Element> |
updatePropertyIfValueIsOlder(ElementUpdateContext<T> ctx,
String propertyKey,
ZonedDateTime newValue,
PropertyMetadata metadata,
Long timestamp)
Updates the element with the new property value if the property value is older than the existing property value
or the update does not have an existing element (for example a new element or a blind write mutation)
|
Value |
wrap(ZonedDateTime value)
Convert the raw value to an appropriate value for storage
in Ge.
|
addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, alterVisibility, getFirstProperty, getFirstPropertyValue, getOnlyProperty, getOnlyPropertyValue, getOnlyPropertyValueRequired, getProperties, getProperty, getPropertyValue, getPropertyValue, getPropertyValues, hasProperty, hasProperty, hideProperty, removeProperty, removeProperty, removeProperty, removeProperty, updateProperty, updateProperty, updateProperty, updateProperty, updateProperty, updateProperty, updateProperty, updatePropertygetPropertyName, getRawConverter, isEquals, isSameName, isSameName, toStringpublic DateBcProperty(String key)
public Value wrap(ZonedDateTime value)
BcPropertyBasewrap in class BcPropertyBase<ZonedDateTime>public ZonedDateTime unwrap(Value value)
BcPropertyBaseunwrap in class BcPropertyBase<ZonedDateTime>public <T extends Element> void updateProperty(ElementUpdateContext<T> ctx, String propertyKey, OffsetDateTime newValue, PropertyMetadata metadata)
public <T extends Element> void updateProperty(ElementUpdateContext<T> ctx, String propertyKey, OffsetDateTime newValue, PropertyMetadata metadata, Long timestamp)
public <T extends Element> void updateProperty(ElementUpdateContext<T> ctx, String propertyKey, ZonedDateTime newValue, PropertyMetadata metadata)
updateProperty in class BcProperty<ZonedDateTime>public <T extends Element> void updateProperty(ElementUpdateContext<T> ctx, String propertyKey, ZonedDateTime newValue, PropertyMetadata metadata, Long timestamp)
updateProperty in class BcProperty<ZonedDateTime>public <T extends Element> void updatePropertyIfValueIsNewer(ElementUpdateContext<T> ctx, String propertyKey, ZonedDateTime newValue, PropertyMetadata metadata, Long timestamp)
public <T extends Element> void updatePropertyIfValueIsNewer(ElementUpdateContext<T> ctx, String propertyKey, ZonedDateTime newValue, PropertyMetadata metadata)
public <T extends Element> void updatePropertyIfValueIsOlder(ElementUpdateContext<T> ctx, String propertyKey, ZonedDateTime newValue, PropertyMetadata metadata, Long timestamp)
public <T extends Element> void updatePropertyIfValueIsOlder(ElementUpdateContext<T> ctx, String propertyKey, ZonedDateTime newValue, PropertyMetadata metadata)
public ZonedDateTime getPropertyValueDateTimeUtc(Element element, String propertyKey)
public ZonedDateTime getPropertyValueDateTime(Element element, String propertyKey, ZoneId zoneId)
public ZonedDateTime getFirstPropertyValueDateTimeUtc(Element element)
public ZonedDateTime getFirstPropertyValueDateTime(Element element, ZoneId zoneId)
Copyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.