Uses of Interface
org.springframework.data.relational.core.mapping.RelationalPersistentEntity
Package
Description
JDBC-specific conversion classes.
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
.<T> T
BasicJdbcConverter.mapRow
(RelationalPersistentEntity<T> entity, ResultSet resultSet, Object key) <T> T
JdbcConverter.mapRow
(RelationalPersistentEntity<T> entity, ResultSet resultSet, Object key) 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
.ModifierConstructorDescriptionBasicJdbcConverter
(MappingContext<? extends RelationalPersistentEntity<?>, ? extends RelationalPersistentProperty> context, RelationResolver relationResolver) Creates a newBasicRelationalConverter
givenMappingContext
and ano-op type factory
throwingUnsupportedOperationException
on type creation.BasicJdbcConverter
(MappingContext<? extends RelationalPersistentEntity<?>, ? extends RelationalPersistentProperty> context, RelationResolver relationResolver, CustomConversions conversions, JdbcTypeFactory typeFactory, IdentifierProcessing identifierProcessing) Creates a newBasicRelationalConverter
givenMappingContext
.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
. -
Uses of RelationalPersistentEntity in org.springframework.data.jdbc.core.mapping
Modifier and TypeMethodDescriptionprotected <T> RelationalPersistentEntity<T>
JdbcMappingContext.createPersistentEntity
(TypeInformation<T> typeInformation) Modifier and TypeMethodDescriptionprotected RelationalPersistentProperty
JdbcMappingContext.createPersistentProperty
(Property property, RelationalPersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder) -
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
Modifier and TypeMethodDescriptionMappingContext<? extends RelationalPersistentEntity<?>,
? extends RelationalPersistentProperty> R2dbcConverter.getMappingContext()
Returns the underlyingMappingContext
used by the converter.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) Map theSort
object to apply field name mapping usingthe type to read
.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> BasicRelationalConverter.getMappingContext()
MappingContext<? 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.ModifierConstructorDescriptionBasicRelationalConverter
(MappingContext<? extends RelationalPersistentEntity<?>, ? extends RelationalPersistentProperty> context) Creates a newBasicRelationalConverter
givenMappingContext
.BasicRelationalConverter
(MappingContext<? extends RelationalPersistentEntity<?>, ? extends RelationalPersistentProperty> context, CustomConversions conversions) -
Uses of RelationalPersistentEntity in org.springframework.data.relational.core.mapping
Modifier and TypeMethodDescriptionprotected <T> RelationalPersistentEntity<T>
RelationalMappingContext.createPersistentEntity
(TypeInformation<T> typeInformation) PersistentPropertyPathExtension.getLeafEntity()
TheRelationalPersistentEntity
associated with the leaf of this path.BasicRelationalPersistentProperty.getOwner()
RelationalPersistentProperty.getOwner()
PersistentPropertyPathExtension.getRequiredLeafEntity()
TheRelationalPersistentEntity
associated with the leaf of this path or throwIllegalStateException
if the leaf cannot be resolved.Modifier and TypeMethodDescriptionprotected RelationalPersistentProperty
RelationalMappingContext.createPersistentProperty
(Property property, RelationalPersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder) ModifierConstructorDescriptionPersistentPropertyPathExtension
(MappingContext<? extends RelationalPersistentEntity<?>, ? extends RelationalPersistentProperty> context, RelationalPersistentEntity<?> entity) Creates the empty path referencing the root itself.ModifierConstructorDescriptionPersistentPropertyPathExtension
(MappingContext<? extends RelationalPersistentEntity<?>, ? extends RelationalPersistentProperty> context, PersistentPropertyPath<? extends RelationalPersistentProperty> path) Creates a non-empty path.PersistentPropertyPathExtension
(MappingContext<? extends RelationalPersistentEntity<?>, ? extends RelationalPersistentProperty> context, RelationalPersistentEntity<?> entity) Creates the empty path referencing the root itself. -
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.