public class JdkOptionalProperty<ENTITY,FROM,TO> extends AbstractProperty<ENTITY,Optional<FROM>,TO>
| Type | Property and Description |
|---|---|
boolean |
containsUDT |
fieldInfo, fieldName, schemaNameProvider, valueFromTypeToken, valueToTypeToken| Constructor and Description |
|---|
JdkOptionalProperty(FieldInfo<ENTITY,Optional<FROM>> fieldInfo,
AbstractProperty<ENTITY,FROM,TO> aProperty) |
| Modifier and Type | Method and Description |
|---|---|
DataType |
buildType(Optional<CassandraOptions> cassandraOptions)
Build the Java driver DataType of this column given a CassandraOptions
containing a runtime SchemaNameProvider.
|
boolean |
containsUDTProperty() |
void |
encodeFieldToUdt(ENTITY entity,
UDTValue udtValue,
Optional<CassandraOptions> cassandraOptions)
First extract all the values from the given entity
Then encode each of the extracted value into CQL-compatible value using Achilles codec system and a CassandraOptions
containing a runtime SchemaNameProvider.
|
void |
encodeToSettable(TO a,
SettableData<?> settableData)
Encode the given Java value to CQL-compatible value using Achilles codec system into the given SettableData (Row, UDTValue ...)
|
List<AbstractUDTClassProperty<?>> |
getUDTClassProperties() |
void |
inject(info.archinnov.achilles.type.factory.BeanFactory factory) |
void |
inject(com.fasterxml.jackson.databind.ObjectMapper mapper) |
void |
inject(info.archinnov.achilles.type.SchemaNameProvider schemaNameProvider) |
void |
inject(UserTypeFactory userTypeFactory,
TupleTypeFactory tupleTypeFactory) |
void |
injectKeyspace(String keyspace) |
void |
injectRuntimeCodecs(Map<info.archinnov.achilles.type.codec.CodecSignature<?,?>,info.archinnov.achilles.type.codec.Codec<?,?>> runtimeCodecs) |
decodeField, decodeFromGettable, decodeFromRaw, encodeField, encodeField, encodeFieldToUdt, encodeFromJava, encodeFromJava, encodeFromRaw, encodeFromRaw, equals, getColumnForSelect, getDataType, getFieldValue, getJavaValue, hashCode, setField, toStringpublic boolean containsUDTProperty
containsUDTProperty in class AbstractProperty<ENTITY,Optional<FROM>,TO>public void encodeToSettable(TO a, SettableData<?> settableData)
AbstractPropertyencodeToSettable in class AbstractProperty<ENTITY,Optional<FROM>,TO>public DataType buildType(Optional<CassandraOptions> cassandraOptions)
AbstractProperty
CassandraOptions.withSchemaNameProvider(SchemaNameProvider provider)
public void encodeFieldToUdt(ENTITY entity, UDTValue udtValue, Optional<CassandraOptions> cassandraOptions)
AbstractProperty
CassandraOptions.withSchemaNameProvider(SchemaNameProvider provider)
static method to build such a CassandraOptions instanceencodeFieldToUdt in class AbstractProperty<ENTITY,Optional<FROM>,TO>public boolean containsUDTProperty()
containsUDTProperty in class AbstractProperty<ENTITY,Optional<FROM>,TO>public List<AbstractUDTClassProperty<?>> getUDTClassProperties()
getUDTClassProperties in class AbstractProperty<ENTITY,Optional<FROM>,TO>public void inject(info.archinnov.achilles.type.factory.BeanFactory factory)
public void inject(com.fasterxml.jackson.databind.ObjectMapper mapper)
public void injectRuntimeCodecs(Map<info.archinnov.achilles.type.codec.CodecSignature<?,?>,info.archinnov.achilles.type.codec.Codec<?,?>> runtimeCodecs)
public void inject(UserTypeFactory userTypeFactory, TupleTypeFactory tupleTypeFactory)
public void injectKeyspace(String keyspace)
public void inject(info.archinnov.achilles.type.SchemaNameProvider schemaNameProvider)
inject in interface InjectSchemaStrategyinject in class AbstractProperty<ENTITY,Optional<FROM>,TO>Copyright © 2012-2021. All Rights Reserved.