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
ConstructorsConstructorDescriptionSpringDataCouchbaseSerializer(CouchbaseConverter converter) Creates a newSpringDataCouchbaseSerializerfor the givenCouchbaseConverter. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringasDBKey(@Nullable com.querydsl.core.types.Operation<?> expr, int index) protected QueryCriteriaDefinitionasDocument(@Nullable String key, @Nullable Object value) protected DBRefasReference(@Nullable Object constant) protected DBRefasReference(Object constant, com.querydsl.core.types.Path<?> path) protected Objectconvert(@Nullable com.querydsl.core.types.Path<?> path, @Nullable com.querydsl.core.types.Constant<?> constant) protected StringgetKeyForPath(com.querydsl.core.types.Path<?> expr, com.querydsl.core.types.PathMetadata metadata) protected booleanisReference(@Nullable com.querydsl.core.types.Path<?> path) Methods inherited from class CouchbaseDocumentSerializer
asDBValue, asReferenceKey, handle, isId, isImplicitObjectIdConversion, toSort, visit, visit, visit, visit, visit, visit
-
Constructor Details
-
SpringDataCouchbaseSerializer
Creates a newSpringDataCouchbaseSerializerfor the givenCouchbaseConverter.- Parameters:
converter- must not be null.
-
-
Method Details
-
visit
-
getKeyForPath
protected String getKeyForPath(com.querydsl.core.types.Path<?> expr, com.querydsl.core.types.PathMetadata metadata) - Overrides:
getKeyForPathin classCouchbaseDocumentSerializer
-
asDocument
- Overrides:
asDocumentin classCouchbaseDocumentSerializer
-
isReference
protected boolean isReference(@Nullable com.querydsl.core.types.Path<?> path) - Specified by:
isReferencein classCouchbaseDocumentSerializer
-
asReference
- Specified by:
asReferencein classCouchbaseDocumentSerializer
-
asReference
-
asDBKey
- Overrides:
asDBKeyin classCouchbaseDocumentSerializer
-
convert
protected Object convert(@Nullable com.querydsl.core.types.Path<?> path, @Nullable com.querydsl.core.types.Constant<?> constant)
-