Interface ArangoConfiguration
public interface ArangoConfiguration
Defines methods to customize the Java-based configuration for Spring Data
ArangoDB.
- Author:
- Mark Vollmary
-
Method Summary
Modifier and TypeMethodDescriptioncom.arangodb.ArangoDB.Builder
arango()
default ArangoConverter
default ArangoMappingContext
default ArangoOperations
default ArangoTypeMapper
default com.arangodb.ContentType
Override to set the data format to use inserde()
.default CustomConversions
default Collection<Converter<?,
?>> database()
default FieldNamingStrategy
default String[]
default ResolverFactory
default boolean
Configures the behaviour ofCrudRepository.save(Object)
andCrudRepository.saveAll(Iterable)
to either return the original entities (updated where possible) or new ones.default com.arangodb.serde.ArangoSerde
serde()
default String
typeKey()
-
Method Details
-
arango
com.arangodb.ArangoDB.Builder arango() -
database
String database() -
returnOriginalEntities
default boolean returnOriginalEntities()Configures the behaviour ofCrudRepository.save(Object)
andCrudRepository.saveAll(Iterable)
to either return the original entities (updated where possible) or new ones. Set tofalse
to use immutable entity classes or java records. -
contentType
default com.arangodb.ContentType contentType()Override to set the data format to use inserde()
. It must match the content-type required by the protocol used in the driver, e.g. set toContentType.VPACK
for protocolsProtocol.VST
,Protocol.HTTP_VPACK
andProtocol.HTTP2_VPACK
, or set toContentType.VPACK
otherwise.- Returns:
- the content-type to use in
serde()
-
arangoTemplate
- Throws:
Exception
-
serde
- Throws:
Exception
-
arangoMappingContext
- Throws:
Exception
-
arangoConverter
- Throws:
Exception
-
customConversions
-
customConverters
-
getInitialEntitySet
- Throws:
ClassNotFoundException
-
getEntityBasePackages
-
fieldNamingStrategy
-
typeKey
-
arangoTypeMapper
- Throws:
Exception
-
resolverFactory
-