Uses of Interface
org.springframework.data.relational.core.mapping.RelationalPersistentEntity
Packages that use RelationalPersistentEntity
Package
Description
JDBC-specific conversion classes.
Schema creation and schema update integration with Liquibase.
Query derivation mechanism for JDBC specific repositories.
R2DBC-specific conversion and converter implementations.
Core domain types around DatabaseClient.
Query and update support.
Query support for R2DBC repositories.
Query support for relational database repositories.
Support infrastructure for query derivation of relational database repositories.
-
Uses of RelationalPersistentEntity in org.springframework.data.jdbc.core.convert
Methods in org.springframework.data.jdbc.core.convert that return types with arguments of type RelationalPersistentEntityModifier and TypeMethodDescriptionprotected MappingContext<? extends RelationalPersistentEntity<?>,RelationalPersistentProperty> QueryMapper.getMappingContext()Methods in org.springframework.data.jdbc.core.convert with parameters of type RelationalPersistentEntityModifier and TypeMethodDescriptionQueryMapper.getMappedObject(MapSqlParameterSource parameterSource, CriteriaDefinition criteria, Table table, @Nullable RelationalPersistentEntity<?> entity) QueryMapper.getMappedSort(Table table, Sort sort, @Nullable RelationalPersistentEntity<?> entity) Map theSortobject to apply field name mapping usingthe type to read.Constructors in org.springframework.data.jdbc.core.convert with parameters of type RelationalPersistentEntityModifierConstructorDescriptionEntityRowMapper(RelationalPersistentEntity<T> entity, JdbcConverter converter) protectedMetadataBackedField(SqlIdentifier name, RelationalPersistentEntity<?> entity, MappingContext<? extends RelationalPersistentEntity<?>, RelationalPersistentProperty> context, JdbcConverter converter) Creates a newQueryMapper.MetadataBackedFieldwith the given name,RelationalPersistentEntityandMappingContext.Constructor parameters in org.springframework.data.jdbc.core.convert with type arguments of type RelationalPersistentEntityModifierConstructorDescriptionIdGeneratingEntityCallback(MappingContext<RelationalPersistentEntity<?>, ? extends RelationalPersistentProperty> context, Dialect dialect, NamedParameterJdbcOperations operations) protectedMetadataBackedField(SqlIdentifier name, RelationalPersistentEntity<?> entity, MappingContext<? extends RelationalPersistentEntity<?>, RelationalPersistentProperty> context, JdbcConverter converter) Creates a newQueryMapper.MetadataBackedFieldwith the given name,RelationalPersistentEntityandMappingContext. -
Uses of RelationalPersistentEntity in org.springframework.data.jdbc.core.mapping
Methods in org.springframework.data.jdbc.core.mapping with parameters of type RelationalPersistentEntityModifier and TypeMethodDescriptionprotected RelationalPersistentPropertyJdbcMappingContext.createPersistentProperty(Property property, RelationalPersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder) -
Uses of RelationalPersistentEntity in org.springframework.data.jdbc.core.mapping.schema
Method parameters in org.springframework.data.jdbc.core.mapping.schema with type arguments of type RelationalPersistentEntityModifier and TypeMethodDescriptionvoidLiquibaseChangeSetWriter.setSchemaFilter(Predicate<RelationalPersistentEntity<?>> schemaFilter) Set the filter predicate to identify for which entities to create schema definitions.Constructor parameters in org.springframework.data.jdbc.core.mapping.schema with type arguments of type RelationalPersistentEntityModifierConstructorDescriptionLiquibaseChangeSetWriter(MappingContext<? extends RelationalPersistentEntity<?>, ? extends RelationalPersistentProperty> mappingContext) Use this to generate a ChangeSet that can be used on an empty database. -
Uses of RelationalPersistentEntity in org.springframework.data.jdbc.repository.query
Methods in org.springframework.data.jdbc.repository.query with parameters of type RelationalPersistentEntityModifier and TypeMethodDescriptionStatementFactory.count(RelationalPersistentEntity<?> entity) StatementFactory.exists(RelationalPersistentEntity<?> entity) StatementFactory.select(RelationalPersistentEntity<?> entity) StatementFactory.slice(RelationalPersistentEntity<?> entity) Constructor parameters in org.springframework.data.jdbc.repository.query with type arguments of type RelationalPersistentEntityModifierConstructorDescriptionJdbcQueryMethod(Method method, RepositoryMetadata metadata, ProjectionFactory factory, NamedQueries namedQueries, MappingContext<? extends RelationalPersistentEntity<?>, ? extends RelationalPersistentProperty> mappingContext) -
Uses of RelationalPersistentEntity in org.springframework.data.r2dbc.convert
Constructor parameters in org.springframework.data.r2dbc.convert with type arguments of type RelationalPersistentEntityModifierConstructorDescriptionIdGeneratingEntityCallback(MappingContext<RelationalPersistentEntity<?>, ? extends RelationalPersistentProperty> context, R2dbcDialect dialect, DatabaseClient databaseClient) MappingR2dbcConverter(MappingContext<? extends RelationalPersistentEntity<?>, ? extends RelationalPersistentProperty> context) Creates a newMappingR2dbcConvertergivenMappingContext.MappingR2dbcConverter(MappingContext<? extends RelationalPersistentEntity<?>, ? extends RelationalPersistentProperty> context, CustomConversions conversions) -
Uses of RelationalPersistentEntity in org.springframework.data.r2dbc.core
Methods in org.springframework.data.r2dbc.core that return types with arguments of type RelationalPersistentEntity -
Uses of RelationalPersistentEntity in org.springframework.data.r2dbc.query
Methods in org.springframework.data.r2dbc.query that return types with arguments of type RelationalPersistentEntityModifier and TypeMethodDescriptionprotected MappingContext<? extends RelationalPersistentEntity<?>,RelationalPersistentProperty> QueryMapper.getMappingContext()Methods in org.springframework.data.r2dbc.query with parameters of type RelationalPersistentEntityModifier and TypeMethodDescriptionQueryMapper.getMappedObject(Expression expression, @Nullable RelationalPersistentEntity<?> entity) Deprecated.QueryMapper.getMappedObject(BindMarkers markers, CriteriaDefinition criteria, Table table, @Nullable RelationalPersistentEntity<?> entity) UpdateMapper.getMappedObject(BindMarkers markers, Map<SqlIdentifier, ?> assignments, Table table, @Nullable RelationalPersistentEntity<?> entity) UpdateMapper.getMappedObject(BindMarkers markers, Update update, Table table, @Nullable RelationalPersistentEntity<?> entity) QueryMapper.getMappedObjects(Expression expression, @Nullable RelationalPersistentEntity<?> entity) Map theExpressionobject to apply field name mapping usingthe type to read.QueryMapper.getMappedSort(Table table, Sort sort, @Nullable RelationalPersistentEntity<?> entity) Map theSortobject to apply field name mapping usingthe type to read.Constructors in org.springframework.data.r2dbc.query with parameters of type RelationalPersistentEntityModifierConstructorDescriptionprotectedMetadataBackedField(SqlIdentifier name, RelationalPersistentEntity<?> entity, MappingContext<? extends RelationalPersistentEntity<?>, RelationalPersistentProperty> context) Creates a newQueryMapper.MetadataBackedFieldwith the given name,RelationalPersistentEntityandMappingContext.protectedMetadataBackedField(SqlIdentifier name, RelationalPersistentEntity<?> entity, MappingContext<? extends RelationalPersistentEntity<?>, RelationalPersistentProperty> context, @Nullable RelationalPersistentProperty property) Creates a newQueryMapper.MetadataBackedFieldwith the given name,RelationalPersistentEntityandMappingContextwith the givenRelationalPersistentProperty.Constructor parameters in org.springframework.data.r2dbc.query with type arguments of type RelationalPersistentEntityModifierConstructorDescriptionprotectedMetadataBackedField(SqlIdentifier name, RelationalPersistentEntity<?> entity, MappingContext<? extends RelationalPersistentEntity<?>, RelationalPersistentProperty> context) Creates a newQueryMapper.MetadataBackedFieldwith the given name,RelationalPersistentEntityandMappingContext.protectedMetadataBackedField(SqlIdentifier name, RelationalPersistentEntity<?> entity, MappingContext<? extends RelationalPersistentEntity<?>, RelationalPersistentProperty> context, @Nullable RelationalPersistentProperty property) Creates a newQueryMapper.MetadataBackedFieldwith the given name,RelationalPersistentEntityandMappingContextwith the givenRelationalPersistentProperty. -
Uses of RelationalPersistentEntity in org.springframework.data.r2dbc.repository.query
Constructor parameters in org.springframework.data.r2dbc.repository.query with type arguments of type RelationalPersistentEntityModifierConstructorDescriptionR2dbcQueryMethod(Method method, RepositoryMetadata metadata, ProjectionFactory projectionFactory, MappingContext<? extends RelationalPersistentEntity<?>, ? extends RelationalPersistentProperty> mappingContext) Creates a newR2dbcQueryMethodfrom the givenMethod. -
Uses of RelationalPersistentEntity in org.springframework.data.relational.core.conversion
Methods in org.springframework.data.relational.core.conversion that return types with arguments of type RelationalPersistentEntityModifier and TypeMethodDescriptionMappingContext<? extends RelationalPersistentEntity<?>,? extends RelationalPersistentProperty> RelationalConverter.getMappingContext()Returns the underlyingMappingContextused by the converter.Methods in org.springframework.data.relational.core.conversion with parameters of type RelationalPersistentEntityModifier and TypeMethodDescriptionstatic <T> IdValueSourceIdValueSource.forInstance(Object instance, RelationalPersistentEntity<T> persistentEntity) Returns the appropriateIdValueSourcefor the instance:IdValueSource.NONEwhen the entity has no id property,IdValueSource.PROVIDEDwhen the value of the id property is not null and when it is a primitive type, not zero, andIdValueSource.GENERATEDotherwise.static <S> @Nullable NumberRelationalEntityVersionUtils.getVersionNumberFromEntity(S instance, RelationalPersistentEntity<S> persistentEntity, RelationalConverter converter) Get the current value of the version property for an instance of a relational persistent entity.static <S> SRelationalEntityVersionUtils.setVersionNumberOnEntity(S instance, @Nullable Number version, RelationalPersistentEntity<S> persistentEntity, RelationalConverter converter) Set the version property on an instance of a relational persistent entity. -
Uses of RelationalPersistentEntity in org.springframework.data.relational.core.mapping
Methods in org.springframework.data.relational.core.mapping that return RelationalPersistentEntityModifier and TypeMethodDescriptionprotected <T> RelationalPersistentEntity<T>RelationalMappingContext.createPersistentEntity(TypeInformation<T> typeInformation) @Nullable RelationalPersistentEntity<?>AggregatePath.getLeafEntity()TheRelationalPersistentEntityassociated with the leaf of this path.BasicRelationalPersistentProperty.getOwner()RelationalPersistentProperty.getOwner()@Nullable RelationalPersistentEntity<?>RelationalMappingContext.getPersistentEntity(RelationalPersistentProperty persistentProperty) default RelationalPersistentEntity<?>AggregatePath.getRequiredLeafEntity()TheRelationalPersistentEntityassociated with the leaf of this path or throwIllegalStateExceptionif the leaf cannot be resolved.Methods in org.springframework.data.relational.core.mapping with parameters of type RelationalPersistentEntityModifier and TypeMethodDescriptionstatic PersistentPropertyTranslatorPersistentPropertyTranslator.create(@Nullable RelationalPersistentEntity<?> targetEntity) Create a newPersistentPropertyTranslator.static PersistentPropertyTranslatorPersistentPropertyTranslator.create(@Nullable RelationalPersistentEntity<?> targetEntity, Predicate<RelationalPersistentProperty> translationFilter) Create a newPersistentPropertyTranslatoraccepting afilter predicatewhether the translation should happen at all.protected RelationalPersistentPropertyRelationalMappingContext.createPersistentProperty(Property property, RelationalPersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder) OptimisticLockingUtils.deleteFailed(@Nullable Object id, @Nullable Object version, RelationalPersistentEntity<?> persistentEntity) Create anOptimisticLockingFailureExceptionfor a delete failure.OptimisticLockingUtils.deleteFailed(Object entity, RelationalPersistentEntity<?> persistentEntity) Create anOptimisticLockingFailureExceptionfor a delete failure.RelationalMappingContext.getAggregatePath(RelationalPersistentEntity<?> type) BasicRelationalPersistentProperty.getReverseColumnName(RelationalPersistentEntity<?> owner) DefaultNamingStrategy.getReverseColumnName(RelationalPersistentEntity<?> parent) default StringNamingStrategy.getReverseColumnName(RelationalPersistentEntity<?> owner) RelationalPersistentProperty.getReverseColumnName(RelationalPersistentEntity<?> owner) OptimisticLockingUtils.updateFailed(Object entity, @Nullable Object version, RelationalPersistentEntity<?> persistentEntity) Create anOptimisticLockingFailureExceptionfor an update failure. -
Uses of RelationalPersistentEntity in org.springframework.data.relational.core.sqlgeneration
Methods in org.springframework.data.relational.core.sqlgeneration with parameters of type RelationalPersistentEntityModifier and TypeMethodDescriptionSingleQuerySqlGenerator.findAll(RelationalPersistentEntity<?> aggregate, @Nullable Condition condition) default StringSqlGenerator.findAll(RelationalPersistentEntity<?> aggregate) SqlGenerator.findAll(RelationalPersistentEntity<?> aggregate, @Nullable Condition condition) -
Uses of RelationalPersistentEntity in org.springframework.data.relational.repository.query
Methods in org.springframework.data.relational.repository.query that return RelationalPersistentEntityModifier and TypeMethodDescriptionRelationalEntityMetadata.getTableEntity()Returns theRelationalPersistentEntitythat supposed to determine the table to be queried.SimpleRelationalEntityMetadata.getTableEntity()Constructors in org.springframework.data.relational.repository.query with parameters of type RelationalPersistentEntityModifierConstructorDescriptionSimpleRelationalEntityMetadata(Class<T> type, RelationalPersistentEntity<?> tableEntity) Creates a newSimpleRelationalEntityMetadatausing the given type andRelationalPersistentEntityto use for table lookups.SimpleRelationalEntityMetadata(RelationalPersistentEntity<?> tableEntity) Creates a newSimpleRelationalEntityMetadatausing the givenRelationalPersistentEntityto use for table lookups.Constructor parameters in org.springframework.data.relational.repository.query with type arguments of type RelationalPersistentEntityModifierConstructorDescriptionRelationalExampleMapper(MappingContext<? extends RelationalPersistentEntity<?>, ? extends RelationalPersistentProperty> mappingContext) -
Uses of RelationalPersistentEntity in org.springframework.data.relational.repository.support
Methods in org.springframework.data.relational.repository.support that return types with arguments of type RelationalPersistentEntityModifier and TypeMethodDescriptionMappingContext<? extends RelationalPersistentEntity<?>,? extends RelationalPersistentProperty> RelationalQueryLookupStrategy.getMappingContext()Constructors in org.springframework.data.relational.repository.support with parameters of type RelationalPersistentEntityModifierConstructorDescriptionCreates a newMappingRelationalEntityInformationfor the givenRelationalPersistentEntity.MappingRelationalEntityInformation(RelationalPersistentEntity<T> entity, @Nullable Class<ID> fallbackIdType) Creates a newMappingRelationalEntityInformationfor the givenRelationalPersistentEntityand fallback identifier type.MappingRelationalEntityInformation(RelationalPersistentEntity<T> entity, String customTableName) Creates a newMappingRelationalEntityInformationfor the givenRelationalPersistentEntityand custom table name.Constructor parameters in org.springframework.data.relational.repository.support with type arguments of type RelationalPersistentEntityModifierConstructorDescriptionprotectedRelationalQueryLookupStrategy(MappingContext<? extends RelationalPersistentEntity<?>, ? extends RelationalPersistentProperty> context, Dialect dialect)
QueryMapper.getMappedObjects(Expression, RelationalPersistentEntity)where usage ofembeddable propertiescan return more than one mapped result.