Uses of Interface
org.springframework.data.relational.core.mapping.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
Modifier and TypeMethodDescriptionprotected MappingContext<? extends RelationalPersistentEntity<?>,
RelationalPersistentProperty> QueryMapper.getMappingContext()
Modifier and TypeMethodDescriptionQueryMapper.getMappedObject
(MapSqlParameterSource parameterSource, CriteriaDefinition criteria, Table table, RelationalPersistentEntity<?> entity) QueryMapper.getMappedSort
(Table table, Sort sort, RelationalPersistentEntity<?> entity) Map theSort
object to apply field name mapping usingthe type to read
.default <T> T
JdbcConverter.mapRow
(RelationalPersistentEntity<T> entity, ResultSet resultSet, Object key) Deprecated.ModifierConstructorDescriptionEntityRowMapper
(RelationalPersistentEntity<T> entity, JdbcConverter converter) protected
MetadataBackedField
(SqlIdentifier name, RelationalPersistentEntity<?> entity, MappingContext<? extends RelationalPersistentEntity<?>, RelationalPersistentProperty> context, JdbcConverter converter) Creates a newQueryMapper.MetadataBackedField
with the given name,RelationalPersistentEntity
andMappingContext
.protected
MetadataBackedField
(SqlIdentifier name, RelationalPersistentEntity<?> entity, MappingContext<? extends RelationalPersistentEntity<?>, RelationalPersistentProperty> context, RelationalPersistentProperty property, JdbcConverter converter) Creates a newQueryMapper.MetadataBackedField
with the given name,RelationalPersistentEntity
andMappingContext
with the givenRelationalPersistentProperty
.ModifierConstructorDescriptionprotected
MetadataBackedField
(SqlIdentifier name, RelationalPersistentEntity<?> entity, MappingContext<? extends RelationalPersistentEntity<?>, RelationalPersistentProperty> context, JdbcConverter converter) Creates a newQueryMapper.MetadataBackedField
with the given name,RelationalPersistentEntity
andMappingContext
.protected
MetadataBackedField
(SqlIdentifier name, RelationalPersistentEntity<?> entity, MappingContext<? extends RelationalPersistentEntity<?>, RelationalPersistentProperty> context, RelationalPersistentProperty property, JdbcConverter converter) Creates a newQueryMapper.MetadataBackedField
with the given name,RelationalPersistentEntity
andMappingContext
with the givenRelationalPersistentProperty
. -
Uses of RelationalPersistentEntity in org.springframework.data.jdbc.core.mapping
Modifier and TypeMethodDescriptionprotected RelationalPersistentProperty
JdbcMappingContext.createPersistentProperty
(Property property, RelationalPersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder) -
Uses of RelationalPersistentEntity in org.springframework.data.jdbc.core.mapping.schema
Modifier and TypeMethodDescriptionvoid
LiquibaseChangeSetWriter.setSchemaFilter
(Predicate<RelationalPersistentEntity<?>> schemaFilter) Set the filter predicate to identify for which entities to create schema definitions.ModifierConstructorDescriptionLiquibaseChangeSetWriter
(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
ModifierConstructorDescriptionJdbcQueryMethod
(Method method, RepositoryMetadata metadata, ProjectionFactory factory, NamedQueries namedQueries, MappingContext<? extends RelationalPersistentEntity<?>, ? extends RelationalPersistentProperty> mappingContext) -
Uses of RelationalPersistentEntity in org.springframework.data.r2dbc.convert
ModifierConstructorDescriptionMappingR2dbcConverter
(MappingContext<? extends RelationalPersistentEntity<?>, ? extends RelationalPersistentProperty> context) Creates a newMappingR2dbcConverter
givenMappingContext
.MappingR2dbcConverter
(MappingContext<? extends RelationalPersistentEntity<?>, ? extends RelationalPersistentProperty> context, CustomConversions conversions) -
Uses of RelationalPersistentEntity in org.springframework.data.r2dbc.core
-
Uses of RelationalPersistentEntity in org.springframework.data.r2dbc.query
Modifier and TypeMethodDescriptionprotected MappingContext<? extends RelationalPersistentEntity<?>,
RelationalPersistentProperty> QueryMapper.getMappingContext()
Modifier and TypeMethodDescriptionQueryMapper.getMappedObject
(Sort sort, RelationalPersistentEntity<?> entity) Deprecated, for removal: This API element is subject to removal in a future version.without replacement.QueryMapper.getMappedObject
(Expression expression, RelationalPersistentEntity<?> entity) Map theExpression
object to apply field name mapping usingthe type to read
.QueryMapper.getMappedObject
(BindMarkers markers, CriteriaDefinition criteria, Table table, RelationalPersistentEntity<?> entity) QueryMapper.getMappedObject
(BindMarkers markers, Criteria criteria, Table table, RelationalPersistentEntity<?> entity) Deprecated.since 1.1.UpdateMapper.getMappedObject
(BindMarkers markers, Map<SqlIdentifier, ? extends Object> assignments, Table table, RelationalPersistentEntity<?> entity) UpdateMapper.getMappedObject
(BindMarkers markers, Update update, Table table, RelationalPersistentEntity<?> entity) QueryMapper.getMappedSort
(Table table, Sort sort, RelationalPersistentEntity<?> entity) Map theSort
object to apply field name mapping usingthe type to read
.ModifierConstructorDescriptionprotected
MetadataBackedField
(SqlIdentifier name, RelationalPersistentEntity<?> entity, MappingContext<? extends RelationalPersistentEntity<?>, RelationalPersistentProperty> context) Creates a newQueryMapper.MetadataBackedField
with the given name,RelationalPersistentEntity
andMappingContext
.protected
MetadataBackedField
(SqlIdentifier name, RelationalPersistentEntity<?> entity, MappingContext<? extends RelationalPersistentEntity<?>, RelationalPersistentProperty> context, RelationalPersistentProperty property) Creates a newQueryMapper.MetadataBackedField
with the given name,RelationalPersistentEntity
andMappingContext
with the givenRelationalPersistentProperty
.ModifierConstructorDescriptionprotected
MetadataBackedField
(SqlIdentifier name, RelationalPersistentEntity<?> entity, MappingContext<? extends RelationalPersistentEntity<?>, RelationalPersistentProperty> context) Creates a newQueryMapper.MetadataBackedField
with the given name,RelationalPersistentEntity
andMappingContext
.protected
MetadataBackedField
(SqlIdentifier name, RelationalPersistentEntity<?> entity, MappingContext<? extends RelationalPersistentEntity<?>, RelationalPersistentProperty> context, RelationalPersistentProperty property) Creates a newQueryMapper.MetadataBackedField
with the given name,RelationalPersistentEntity
andMappingContext
with the givenRelationalPersistentProperty
. -
Uses of RelationalPersistentEntity in org.springframework.data.r2dbc.repository.query
ModifierConstructorDescriptionR2dbcQueryMethod
(Method method, RepositoryMetadata metadata, ProjectionFactory projectionFactory, MappingContext<? extends RelationalPersistentEntity<?>, ? extends RelationalPersistentProperty> mappingContext) Creates a newR2dbcQueryMethod
from the givenMethod
. -
Uses of RelationalPersistentEntity in org.springframework.data.relational.core.conversion
Modifier and TypeMethodDescriptionMappingContext<? extends RelationalPersistentEntity<?>,
? extends RelationalPersistentProperty> RelationalConverter.getMappingContext()
Returns the underlyingMappingContext
used by the converter.Modifier and TypeMethodDescriptionstatic <T> IdValueSource
IdValueSource.forInstance
(Object instance, RelationalPersistentEntity<T> persistentEntity) Returns the appropriateIdValueSource
for the instance:IdValueSource.NONE
when the entity has no id property,IdValueSource.PROVIDED
when the value of the id property is not null and when it is a primitive type, not zero, andIdValueSource.GENERATED
otherwise.static <S> Number
RelationalEntityVersionUtils.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> S
RelationalEntityVersionUtils.setVersionNumberOnEntity
(S instance, 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
Modifier and TypeMethodDescriptionprotected <T> RelationalPersistentEntity<T>
RelationalMappingContext.createPersistentEntity
(TypeInformation<T> typeInformation) AggregatePath.getLeafEntity()
TheRelationalPersistentEntity
associated with the leaf of this path.PersistentPropertyPathExtension.getLeafEntity()
Deprecated, for removal: This API element is subject to removal in a future version.TheRelationalPersistentEntity
associated with the leaf of this path.BasicRelationalPersistentProperty.getOwner()
RelationalPersistentProperty.getOwner()
RelationalMappingContext.getPersistentEntity
(RelationalPersistentProperty persistentProperty) default RelationalPersistentEntity<?>
AggregatePath.getRequiredLeafEntity()
TheRelationalPersistentEntity
associated with the leaf of this path or throwIllegalStateException
if the leaf cannot be resolved.PersistentPropertyPathExtension.getRequiredLeafEntity()
Deprecated, for removal: This API element is subject to removal in a future version.TheRelationalPersistentEntity
associated with the leaf of this path or throwIllegalStateException
if the leaf cannot be resolved.Modifier and TypeMethodDescriptionstatic PersistentPropertyTranslator
PersistentPropertyTranslator.create
(RelationalPersistentEntity<?> targetEntity) Create a newPersistentPropertyTranslator
.static PersistentPropertyTranslator
PersistentPropertyTranslator.create
(RelationalPersistentEntity<?> targetEntity, Predicate<RelationalPersistentProperty> translationFilter) Create a newPersistentPropertyTranslator
accepting afilter predicate
whether the translation should happen at all.protected RelationalPersistentProperty
RelationalMappingContext.createPersistentProperty
(Property property, RelationalPersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder) RelationalMappingContext.getAggregatePath
(RelationalPersistentEntity<?> type) BasicRelationalPersistentProperty.getReverseColumnName
(RelationalPersistentEntity<?> owner) DefaultNamingStrategy.getReverseColumnName
(RelationalPersistentEntity<?> parent) default String
NamingStrategy.getReverseColumnName
(RelationalPersistentEntity<?> owner) RelationalPersistentProperty.getReverseColumnName
(RelationalPersistentEntity<?> owner) ModifierConstructorDescriptionPersistentPropertyPathExtension
(MappingContext<? extends RelationalPersistentEntity<?>, ? extends RelationalPersistentProperty> context, RelationalPersistentEntity<?> entity) Deprecated, for removal: This API element is subject to removal in a future version.Creates the empty path referencing the root itself.ModifierConstructorDescriptionPersistentPropertyPathExtension
(MappingContext<? extends RelationalPersistentEntity<?>, ? extends RelationalPersistentProperty> context, PersistentPropertyPath<? extends RelationalPersistentProperty> path) Deprecated, for removal: This API element is subject to removal in a future version.Creates a non-empty path.PersistentPropertyPathExtension
(MappingContext<? extends RelationalPersistentEntity<?>, ? extends RelationalPersistentProperty> context, RelationalPersistentEntity<?> entity) Deprecated, for removal: This API element is subject to removal in a future version.Creates the empty path referencing the root itself. -
Uses of RelationalPersistentEntity in org.springframework.data.relational.core.sqlgeneration
Modifier and TypeMethodDescriptionSingleQuerySqlGenerator.findAll
(RelationalPersistentEntity<?> aggregate, Condition condition) default String
SqlGenerator.findAll
(RelationalPersistentEntity<?> aggregate) SqlGenerator.findAll
(RelationalPersistentEntity<?> aggregate, Condition condition) -
Uses of RelationalPersistentEntity in org.springframework.data.relational.repository.query
Modifier and TypeMethodDescriptionRelationalEntityMetadata.getTableEntity()
Returns theRelationalPersistentEntity
that supposed to determine the table to be queried.SimpleRelationalEntityMetadata.getTableEntity()
ModifierConstructorDescriptionSimpleRelationalEntityMetadata
(Class<T> type, RelationalPersistentEntity<?> tableEntity) Creates a newSimpleRelationalEntityMetadata
using the given type andRelationalPersistentEntity
to use for table lookups.ModifierConstructorDescriptionRelationalExampleMapper
(MappingContext<? extends RelationalPersistentEntity<?>, ? extends RelationalPersistentProperty> mappingContext) -
Uses of RelationalPersistentEntity in org.springframework.data.relational.repository.support
ModifierConstructorDescriptionCreates a newMappingRelationalEntityInformation
for the givenRelationalPersistentEntity
.MappingRelationalEntityInformation
(RelationalPersistentEntity<T> entity, Class<ID> fallbackIdType) Creates a newMappingRelationalEntityInformation
for the givenRelationalPersistentEntity
and fallback identifier type.MappingRelationalEntityInformation
(RelationalPersistentEntity<T> entity, String customTableName) Creates a newMappingRelationalEntityInformation
for the givenRelationalPersistentEntity
and custom table name.
JdbcConverter.readAndResolve(Class, RowDocument, Identifier)
instead.