Uses of Interface
org.springframework.data.couchbase.core.mapping.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
Modifier and TypeFieldDescriptionprotected final MappingContext<? extends CouchbasePersistentEntity<?>,
CouchbasePersistentProperty> MappingCouchbaseConverter.mappingContext
The generic mapping context.Modifier 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.Modifier and TypeMethodDescriptionCouchbaseCustomConversions.CouchbaseConverterConfigurationAdapter.configurePropertyConversions
(Consumer<PropertyValueConverterRegistrar<CouchbasePersistentProperty>> configurationAdapter) Gateway to register property specific converters.ModifierConstructorDescriptionCouchbaseConversionContext
(CouchbasePersistentProperty persistentProperty, MappingCouchbaseConverter couchbaseConverter, ConvertingPropertyAccessor accessor) ModifierConstructorDescriptionMappingCouchbaseConverter
(MappingContext<? extends CouchbasePersistentEntity<?>, CouchbasePersistentProperty> mappingContext) Create a newMappingCouchbaseConverter
.MappingCouchbaseConverter
(MappingContext<? extends CouchbasePersistentEntity<?>, CouchbasePersistentProperty> mappingContext, String typeKey) Create a newMappingCouchbaseConverter
MappingCouchbaseConverter
(MappingContext<? extends CouchbasePersistentEntity<?>, CouchbasePersistentProperty> mappingContext, String typeKey, CustomConversions customConversions) 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
Modifier and TypeMethodDescriptionCouchbasePersistentEntityIndexResolver.createCompositeQueryIndexDefinitions
(CouchbasePersistentEntity<?> entity, CouchbasePersistentProperty property) CouchbasePersistentEntityIndexResolver.createFieldQueryIndexDefinition
(CouchbasePersistentEntity<?> entity, CouchbasePersistentProperty property) Modifier and TypeMethodDescriptionstatic QueryIndexResolver
QueryIndexResolver.create
(MappingContext<? extends CouchbasePersistentEntity<?>, CouchbasePersistentProperty> mappingContext, CouchbaseOperations operations) Creates a newQueryIndexResolver
givenCouchbaseMappingContext
.ModifierConstructorDescriptionCouchbasePersistentEntityIndexResolver
(MappingContext<? extends CouchbasePersistentEntity<?>, CouchbasePersistentProperty> mappingContext, CouchbaseOperations operations) -
Uses of CouchbasePersistentProperty in org.springframework.data.couchbase.core.mapping
Modifier and TypeClassDescriptionclass
Implements annotated property representations of a givenField
instance.Modifier 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) Modifier and TypeMethodDescriptionprotected Association<CouchbasePersistentProperty>
BasicCouchbasePersistentProperty.createAssociation()
Creates a new Association.Modifier and TypeMethodDescriptionprotected CouchbasePersistentProperty
BasicCouchbasePersistentEntity.returnPropertyIfBetterIdPropertyCandidateOrNull
(CouchbasePersistentProperty property) -
Uses of CouchbasePersistentProperty in org.springframework.data.couchbase.repository.config
Modifier 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
Modifier 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 pathModifier 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 pathModifierConstructorDescriptionCouchbaseQueryMethod
(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
Modifier 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.Modifier and TypeMethodDescriptionN1qlUtils.getPathWithAlternativeFieldNames
(CouchbaseConverter converter, PropertyPath property) Given a commonPropertyPath
, returns the correspondingPersistentPropertyPath
ofCouchbasePersistentProperty
which will allow to discover alternative naming for fields.Modifier 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.