public class ObjectMapperCqlStatementMapperBuilder extends Object implements CQLStatementBuilder<ObjectMapperCqlStatementMapper>, Serializable
Builds a tuple mapper that is able to map objects annotated with com.datastax.driver.mapping.annotations.Table
to CQL statements.
Needs at least
operationFieldand
valueField. Writetime, TTL and consistency level can be specified in optional tuple fields.
Constructor and Description |
---|
ObjectMapperCqlStatementMapperBuilder(String operationField,
String valueField) |
Modifier and Type | Method and Description |
---|---|
ObjectMapperCqlStatementMapper |
build()
Builds an ObjectMapperCqlStatementMapper.
|
ObjectMapperCqlStatementMapperBuilder |
withCodecs(List<SerializableCallable<com.datastax.driver.core.TypeCodec<?>>> codecProducer) |
ObjectMapperCqlStatementMapperBuilder |
withConsistencyLevelField(String consistencyLevelField) |
ObjectMapperCqlStatementMapperBuilder |
withTimestampField(String timestampField) |
ObjectMapperCqlStatementMapperBuilder |
withTtlField(String ttlField) |
ObjectMapperCqlStatementMapperBuilder |
withUdtCodecs(List<Class<?>> udtClass) |
public ObjectMapperCqlStatementMapper build()
Builds an ObjectMapperCqlStatementMapper.
build
in interface CQLStatementBuilder<ObjectMapperCqlStatementMapper>
public ObjectMapperCqlStatementMapperBuilder withCodecs(List<SerializableCallable<com.datastax.driver.core.TypeCodec<?>>> codecProducer)
public ObjectMapperCqlStatementMapperBuilder withUdtCodecs(List<Class<?>> udtClass)
public ObjectMapperCqlStatementMapperBuilder withTimestampField(String timestampField)
public ObjectMapperCqlStatementMapperBuilder withTtlField(String ttlField)
public ObjectMapperCqlStatementMapperBuilder withConsistencyLevelField(String consistencyLevelField)
Copyright © 2019 The Apache Software Foundation. All rights reserved.