public class LocalDateTimeProperty extends Property implements ESPropertyInfo, SQLPropertyInfo
LocalDateTime
.Modifier and Type | Class and Description |
---|---|
static class |
LocalDateTimeProperty.Factory
Factory for generating properties based on their field type
|
accessPath, alternativePropertyKey, defaultValue, descriptor, field, label, length, name, nameAsMapping, nullable, propertyKey, propertyName
Modifier | Constructor and Description |
---|---|
protected |
LocalDateTimeProperty(EntityDescriptor descriptor,
AccessPath accessPath,
Field field) |
Modifier and Type | Method and Description |
---|---|
void |
contributeToTable(Table table)
Appends columns, keys and foreign keys to the given table to match the settings specified by
this property
|
void |
describeProperty(com.alibaba.fastjson.JSONObject description)
Creates the mapping description for this property into the given JSON.
|
protected Object |
transformFromElastic(sirius.kernel.commons.Value object)
Loads a value from an Elasticsearch database.
|
protected Object |
transformFromJDBC(sirius.kernel.commons.Value object)
Loads a value from a JDBC datasource.
|
protected Object |
transformFromMongo(sirius.kernel.commons.Value object)
Loads a value from a MongoDB datasource.
|
protected Object |
transformToElastic(Object object)
Generates a value for an Elasticsearch database.
|
protected Object |
transformToJDBC(Object object)
Generates a value for a JDBC datasource.
|
protected Object |
transformToMongo(Object object)
Generates a value for a MongoDB datasource.
|
Object |
transformValue(sirius.kernel.commons.Value value)
Converts the given value, which most probably contains user input as string into the target type of this
property.
|
checkNullability, checkUniqueness, determineDefaultValue, determineLengths, determineNullability, equals, getAnnotation, getDefaultValue, getDefinition, getDescriptor, getField, getLabel, getLength, getName, getPropertyName, getValue, getValueAsCopy, getValueForDatasource, getValueFromField, hashCode, illegalFieldValue, isNullable, link, onAfterDelete, onAfterSave, onBeforeDelete, onBeforeSave, onBeforeSaveChecks, parseValue, setValue, setValueFromDatasource, setValueToField, toString, transformFromDatasource, transformToDatasource
is, makeNewInstance, tryAs
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
transferOption
protected LocalDateTimeProperty(EntityDescriptor descriptor, AccessPath accessPath, Field field)
public Object transformValue(sirius.kernel.commons.Value value)
Property
transformValue
in class Property
value
- the value to convertprotected Object transformFromJDBC(sirius.kernel.commons.Value object)
Property
transformFromJDBC
in class Property
object
- the database valueprotected Object transformFromElastic(sirius.kernel.commons.Value object)
Property
transformFromElastic
in class Property
object
- the database valueprotected Object transformFromMongo(sirius.kernel.commons.Value object)
Property
transformFromMongo
in class Property
object
- the database valueprotected Object transformToJDBC(Object object)
Property
transformToJDBC
in class Property
object
- the database valueprotected Object transformToElastic(Object object)
Property
transformToElastic
in class Property
object
- the database valueprotected Object transformToMongo(Object object)
Property
transformToMongo
in class Property
object
- the database valuepublic void describeProperty(com.alibaba.fastjson.JSONObject description)
ESPropertyInfo
describeProperty
in interface ESPropertyInfo
description
- the target JSON to fillpublic void contributeToTable(Table table)
SQLPropertyInfo
contributeToTable
in interface SQLPropertyInfo
table
- the table to add schema infos toCopyright © 2018. All rights reserved.