Class SpringDataCouchbaseSerializer
java.lang.Object
org.springframework.data.couchbase.querydsl.document.CouchbaseDocumentSerializer
org.springframework.data.couchbase.repository.support.SpringDataCouchbaseSerializer
Custom
CouchbaseDocumentSerializer
to take mapping information into account when building keys for
constraints.- Author:
- Michael Reiche
-
Constructor Summary
ConstructorDescriptionSpringDataCouchbaseSerializer
(CouchbaseConverter converter) Creates a newSpringDataCouchbaseSerializer
for the givenCouchbaseConverter
. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
asDBKey
(com.querydsl.core.types.Operation<?> expr, int index) protected QueryCriteriaDefinition
asDocument
(String key, Object value) protected DBRef
asReference
(Object constant) protected DBRef
asReference
(Object constant, com.querydsl.core.types.Path<?> path) protected Object
convert
(com.querydsl.core.types.Path<?> path, com.querydsl.core.types.Constant<?> constant) protected String
getKeyForPath
(com.querydsl.core.types.Path<?> expr, com.querydsl.core.types.PathMetadata metadata) protected boolean
isReference
(com.querydsl.core.types.Path<?> path) Methods inherited from class org.springframework.data.couchbase.querydsl.document.CouchbaseDocumentSerializer
asDBValue, asReferenceKey, handle, isId, isImplicitObjectIdConversion, toSort, visit, visit, visit, visit, visit, visit
-
Constructor Details
-
SpringDataCouchbaseSerializer
Creates a newSpringDataCouchbaseSerializer
for the givenCouchbaseConverter
.- Parameters:
converter
- must not be null.
-
-
Method Details
-
visit
- Specified by:
visit
in interfacecom.querydsl.core.types.Visitor<Object,
Void> - Overrides:
visit
in classCouchbaseDocumentSerializer
-
getKeyForPath
protected String getKeyForPath(com.querydsl.core.types.Path<?> expr, com.querydsl.core.types.PathMetadata metadata) - Overrides:
getKeyForPath
in classCouchbaseDocumentSerializer
-
asDocument
- Overrides:
asDocument
in classCouchbaseDocumentSerializer
-
isReference
- Specified by:
isReference
in classCouchbaseDocumentSerializer
-
asReference
- Specified by:
asReference
in classCouchbaseDocumentSerializer
-
asReference
-
asDBKey
- Overrides:
asDBKey
in classCouchbaseDocumentSerializer
-
convert
-