Uses of Interface
org.springframework.data.couchbase.core.mapping.CouchbasePersistentProperty
Packages that use CouchbasePersistentProperty
Package
Description
This package contains classes used for entity-to-JSON conversions, type mapping and writing.
This package contains interfaces and annotations relative to object-json mapping and the notion of a Couchbase
Storable.
This package contains the support classes to configure repositories in the context of Couchbase.
This package contains classes related to query derivation and concrete ways of querying couchbase.
This package contains support classes for query derivation and other ways of querying couchbase (helper classes).
-
Uses of CouchbasePersistentProperty in org.springframework.data.couchbase.core.convert
Fields in org.springframework.data.couchbase.core.convert with type parameters of type CouchbasePersistentPropertyModifier and TypeFieldDescriptionprotected final MappingContext<? extends CouchbasePersistentEntity<?>,
CouchbasePersistentProperty> MappingCouchbaseConverter.mappingContext
The generic mapping context.Methods in org.springframework.data.couchbase.core.convert that return CouchbasePersistentPropertyMethods in org.springframework.data.couchbase.core.convert that return types with arguments of type CouchbasePersistentPropertyMethods in org.springframework.data.couchbase.core.convert with parameters of type CouchbasePersistentPropertyModifier and TypeMethodDescriptionAbstractCouchbaseConverter.convertForWriteIfNeeded
(CouchbasePersistentProperty prop, ConvertingPropertyAccessor<Object> accessor, boolean processValueConverter) This convertForWriteIfNeeded takes a property and accessor so that the annotations can be accessed (ie.CouchbaseConverter.convertForWriteIfNeeded
(CouchbasePersistentProperty source, ConvertingPropertyAccessor<Object> accessor, boolean processValueConverter) Convert the value if necessary to the class that would actually be stored, or leave it as is if no conversion needed.protected Object
MappingCouchbaseConverter.getPotentiallyConvertedSimpleRead
(Object value, CouchbasePersistentProperty target) Potentially convert simple values like ENUMs.MappingCouchbaseConverter.getPotentiallyConvertedSimpleWrite
(CouchbasePersistentProperty value, ConvertingPropertyAccessor<Object> accessor) Deprecated.MappingCouchbaseConverter.getPotentiallyConvertedSimpleWrite
(CouchbasePersistentProperty property, ConvertingPropertyAccessor<Object> accessor, boolean processValueConverter) This does process PropertyValueConversionsprotected Object
MappingCouchbaseConverter.getValueInternal
(CouchbasePersistentProperty property, CouchbaseDocument source, Object parent, PersistentEntity entity) Loads the property value through the value provider.<R> R
MappingCouchbaseConverter.readValue
(Object value, CouchbasePersistentProperty prop, Object parent, boolean noDecrypt) Helper method to read the value based on the PersistentPropertyMappingCouchbaseConverter.writeCollectionInternal
(Collection<?> source, CouchbaseList target, TypeInformation<?> type, CouchbasePersistentProperty prop, ConvertingPropertyAccessor accessor) Helper method to write the internal collection.protected void
MappingCouchbaseConverter.writeInternalEntity
(Object source, CouchbaseDocument target, CouchbasePersistentEntity<?> entity, boolean withId, CouchbasePersistentProperty prop, boolean processValueConverter) Internal helper method to write the source object into the target document.void
MappingCouchbaseConverter.writeInternalRoot
(Object source, CouchbaseDocument target, TypeInformation<?> typeHint, boolean withId, CouchbasePersistentProperty property, boolean processValueConverter) Convert a source object into aCouchbaseDocument
target.protected void
MappingCouchbaseConverter.writePropertyInternal
(Object source, CouchbaseDocument target, CouchbasePersistentProperty prop, ConvertingPropertyAccessor accessor) Helper method to write a non-simple property into the target document.Method parameters in org.springframework.data.couchbase.core.convert with type arguments of type CouchbasePersistentPropertyModifier and TypeMethodDescriptionCouchbaseCustomConversions.CouchbaseConverterConfigurationAdapter.configurePropertyConversions
(Consumer<PropertyValueConverterRegistrar<CouchbasePersistentProperty>> configurationAdapter) Gateway to register property specific converters.Constructors in org.springframework.data.couchbase.core.convert with parameters of type CouchbasePersistentPropertyModifierConstructorDescriptionCouchbaseConversionContext
(CouchbasePersistentProperty persistentProperty, MappingCouchbaseConverter couchbaseConverter, ConvertingPropertyAccessor accessor) Constructor parameters in org.springframework.data.couchbase.core.convert with type arguments of type CouchbasePersistentPropertyModifierConstructorDescriptionMappingCouchbaseConverter
(MappingContext<? extends CouchbasePersistentEntity<?>, CouchbasePersistentProperty> mappingContext) Create a newMappingCouchbaseConverter
.MappingCouchbaseConverter
(MappingContext<? extends CouchbasePersistentEntity<?>, CouchbasePersistentProperty> mappingContext, String typeKey) Create a newMappingCouchbaseConverter
that will store class name for complex types in the typeKey attribute. -
Uses of CouchbasePersistentProperty in org.springframework.data.couchbase.core.index
Methods in org.springframework.data.couchbase.core.index with parameters of type CouchbasePersistentPropertyModifier and TypeMethodDescriptionCouchbasePersistentEntityIndexResolver.createCompositeQueryIndexDefinitions
(CouchbasePersistentEntity<?> entity, CouchbasePersistentProperty property) CouchbasePersistentEntityIndexResolver.createFieldQueryIndexDefinition
(CouchbasePersistentEntity<?> entity, CouchbasePersistentProperty property) Method parameters in org.springframework.data.couchbase.core.index with type arguments of type CouchbasePersistentPropertyModifier and TypeMethodDescriptionstatic QueryIndexResolver
QueryIndexResolver.create
(MappingContext<? extends CouchbasePersistentEntity<?>, CouchbasePersistentProperty> mappingContext, CouchbaseOperations operations) Creates a newQueryIndexResolver
givenCouchbaseMappingContext
.Constructor parameters in org.springframework.data.couchbase.core.index with type arguments of type CouchbasePersistentPropertyModifierConstructorDescriptionCouchbasePersistentEntityIndexResolver
(MappingContext<? extends CouchbasePersistentEntity<?>, CouchbasePersistentProperty> mappingContext, CouchbaseOperations operations) -
Uses of CouchbasePersistentProperty in org.springframework.data.couchbase.core.mapping
Classes in org.springframework.data.couchbase.core.mapping that implement CouchbasePersistentPropertyModifier and TypeClassDescriptionclass
Implements annotated property representations of a givenField
instance.Methods in org.springframework.data.couchbase.core.mapping that return CouchbasePersistentPropertyModifier and TypeMethodDescriptionprotected CouchbasePersistentProperty
CouchbaseMappingContext.createPersistentProperty
(Property property, BasicCouchbasePersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder) Creates a concrete property based on the field information and entity.BasicCouchbasePersistentEntity.getTextScoreProperty()
CouchbasePersistentEntity.getTextScoreProperty()
protected CouchbasePersistentProperty
BasicCouchbasePersistentEntity.returnPropertyIfBetterIdPropertyCandidateOrNull
(CouchbasePersistentProperty property) Methods in org.springframework.data.couchbase.core.mapping that return types with arguments of type CouchbasePersistentPropertyModifier and TypeMethodDescriptionprotected Association<CouchbasePersistentProperty>
BasicCouchbasePersistentProperty.createAssociation()
Creates a new Association.Methods in org.springframework.data.couchbase.core.mapping with parameters of type CouchbasePersistentPropertyModifier and TypeMethodDescriptionprotected CouchbasePersistentProperty
BasicCouchbasePersistentEntity.returnPropertyIfBetterIdPropertyCandidateOrNull
(CouchbasePersistentProperty property) -
Uses of CouchbasePersistentProperty in org.springframework.data.couchbase.repository.config
Methods in org.springframework.data.couchbase.repository.config that return types with arguments of type CouchbasePersistentPropertyModifier and TypeMethodDescriptionReactiveRepositoryOperationsMapping.getMappingContext()
Get theMappingContext
to use in repositories.RepositoryOperationsMapping.getMappingContext()
Get theMappingContext
to use in repositories. -
Uses of CouchbasePersistentProperty in org.springframework.data.couchbase.repository.query
Methods in org.springframework.data.couchbase.repository.query with parameters of type CouchbasePersistentPropertyModifier and TypeMethodDescriptionstatic N1QLExpression
N1qlQueryCreator.addMetaIfRequired
(String bucketName, PersistentPropertyPath<CouchbasePersistentProperty> persistentPropertyPath, CouchbasePersistentProperty property, PersistentEntity entity) Translate meta-fields to META(bucketName).id, cas, expiry.
If bucketName is null, META().id etc,
If not a meta-field, just create the corresponding pathMethod parameters in org.springframework.data.couchbase.repository.query with type arguments of type CouchbasePersistentPropertyModifier and TypeMethodDescriptionstatic N1QLExpression
N1qlQueryCreator.addMetaIfRequired
(String bucketName, PersistentPropertyPath<CouchbasePersistentProperty> persistentPropertyPath, CouchbasePersistentProperty property, PersistentEntity entity) Translate meta-fields to META(bucketName).id, cas, expiry.
If bucketName is null, META().id etc,
If not a meta-field, just create the corresponding pathConstructor parameters in org.springframework.data.couchbase.repository.query with type arguments of type CouchbasePersistentPropertyModifierConstructorDescriptionCouchbaseQueryMethod
(Method method, RepositoryMetadata metadata, ProjectionFactory factory, MappingContext<? extends CouchbasePersistentEntity<?>, CouchbasePersistentProperty> mappingContext) ReactiveCouchbaseQueryMethod
(Method method, RepositoryMetadata metadata, ProjectionFactory projectionFactory, MappingContext<? extends CouchbasePersistentEntity<?>, CouchbasePersistentProperty> mappingContext) Creates a newReactiveCouchbaseQueryMethod
from the givenMethod
. -
Uses of CouchbasePersistentProperty in org.springframework.data.couchbase.repository.query.support
Fields in org.springframework.data.couchbase.repository.query.support with type parameters of type CouchbasePersistentPropertyModifier and TypeFieldDescriptionstatic final Converter<? super CouchbasePersistentProperty,
String> N1qlUtils.FIELD_NAME_ESCAPED
A converter that can be used to extract thefieldName
, eg. when one wants a path fromPersistentPropertyPath.toDotPath(Converter)
made of escaped field names.Methods in org.springframework.data.couchbase.repository.query.support that return types with arguments of type CouchbasePersistentPropertyModifier and TypeMethodDescriptionN1qlUtils.getPathWithAlternativeFieldNames
(CouchbaseConverter converter, PropertyPath property) Given a commonPropertyPath
, returns the correspondingPersistentPropertyPath
ofCouchbasePersistentProperty
which will allow to discover alternative naming for fields.Method parameters in org.springframework.data.couchbase.repository.query.support with type arguments of type CouchbasePersistentPropertyModifier and TypeMethodDescriptionstatic String
N1qlUtils.getDottedPathWithAlternativeFieldNames
(PersistentPropertyPath<CouchbasePersistentProperty> path) Given aPersistentPropertyPath
ofCouchbasePersistentProperty
(seeN1qlUtils.getPathWithAlternativeFieldNames(CouchbaseConverter, PropertyPath)
), obtain a String representation of the path, separated with dots and using alternative field names.