Package com.aerospike.mapper.tools
Class AbstractBuilder<T extends IBaseAeroMapper>
java.lang.Object
com.aerospike.mapper.tools.AbstractBuilder<T>
- Direct Known Subclasses:
AeroMapper.Builder
,ReactiveAeroMapper.Builder
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Method Summary
Modifier and TypeMethodDescriptionaddConverter
(Object converter) Add in a custom type converter.build()
getPackageName
(Class<?> clazz) preLoadClass
(Class<?> clazz) preLoadClasses
(Class<?>... clazzes) preLoadClassesFromPackage
(Class<?> classInPackage) preLoadClassesFromPackage
(String thePackage) withBatchPolicy
(com.aerospike.client.policy.BatchPolicy policy) withClassConfigurations
(ClassConfig classConfig, ClassConfig... classConfigs) withConfiguration
(String configurationYaml) withConfiguration
(String configurationYaml, boolean allowsInvalid) withConfigurationFile
(File file) withConfigurationFile
(File file, boolean allowsInvalid) withConfigurationFile
(InputStream ios, boolean allowsInvalid) withQueryPolicy
(com.aerospike.client.policy.QueryPolicy policy) withReadPolicy
(com.aerospike.client.policy.Policy policy) withScanPolicy
(com.aerospike.client.policy.ScanPolicy policy) withWritePolicy
(com.aerospike.client.policy.Policy policy)
-
Method Details
-
addConverter
Add in a custom type converter. The converter must have methods which implement the ToAerospike and FromAerospike annotation.- Parameters:
converter
- The custom converter- Returns:
- this object
-
preLoadClasses
-
getPackageName
-
preLoadClassesFromPackage
-
preLoadClassesFromPackage
-
preLoadClass
-
withConfigurationFile
- Throws:
IOException
-
withConfigurationFile
public AbstractBuilder<T> withConfigurationFile(File file, boolean allowsInvalid) throws IOException - Throws:
IOException
-
withConfigurationFile
- Throws:
IOException
-
withConfigurationFile
public AbstractBuilder<T> withConfigurationFile(InputStream ios, boolean allowsInvalid) throws IOException - Throws:
IOException
-
withConfiguration
public AbstractBuilder<T> withConfiguration(String configurationYaml) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
withConfiguration
public AbstractBuilder<T> withConfiguration(String configurationYaml, boolean allowsInvalid) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
withClassConfigurations
public AbstractBuilder<T> withClassConfigurations(ClassConfig classConfig, ClassConfig... classConfigs) -
withReadPolicy
public AbstractBuilder.AeroPolicyMapper<T> withReadPolicy(com.aerospike.client.policy.Policy policy) -
withWritePolicy
public AbstractBuilder.AeroPolicyMapper<T> withWritePolicy(com.aerospike.client.policy.Policy policy) -
withBatchPolicy
public AbstractBuilder.AeroPolicyMapper<T> withBatchPolicy(com.aerospike.client.policy.BatchPolicy policy) -
withScanPolicy
public AbstractBuilder.AeroPolicyMapper<T> withScanPolicy(com.aerospike.client.policy.ScanPolicy policy) -
withQueryPolicy
public AbstractBuilder.AeroPolicyMapper<T> withQueryPolicy(com.aerospike.client.policy.QueryPolicy policy) -
build
-