Package | Description |
---|---|
com.datastax.oss.driver.api.mapper |
Modifier and Type | Method and Description |
---|---|
MapperBuilder<MapperT> |
MapperBuilder.withCustomState(Object key,
Object value)
Stores custom state that will be propagated to
MapperContext.getCustomState() . |
MapperBuilder<MapperT> |
MapperBuilder.withDefaultExecutionProfile(DriverExecutionProfile executionProfile)
Specifies a default execution profile name that will be used for all DAOs built with this
mapper (unless they specify their own execution profile).
|
MapperBuilder<MapperT> |
MapperBuilder.withDefaultExecutionProfileName(String executionProfileName)
Specifies a default execution profile name that will be used for all DAOs built with this
mapper (unless they specify their own execution profile).
|
MapperBuilder<MapperT> |
MapperBuilder.withDefaultKeyspace(CqlIdentifier keyspaceId)
Specifies a default keyspace that will be used for all DAOs built with this mapper (unless they
specify their own keyspace).
|
MapperBuilder<MapperT> |
MapperBuilder.withDefaultKeyspace(String keyspaceName)
Shortcut for
withDefaultKeyspace(CqlIdentifier.fromCql(keyspaceName)) . |
MapperBuilder<MapperT> |
MapperBuilder.withSchemaValidationEnabled(boolean enableSchemaValidation)
When the new instance of a class annotated with
@Dao is created an automatic check for
schema validation is performed. |
Copyright © 2017–2020. All rights reserved.