Package | Description |
---|---|
org.springframework.data.jdbc.core.convert |
JDBC-specific conversion classes.
|
org.springframework.data.jdbc.core.mapping | |
org.springframework.data.jdbc.repository.query |
Query derivation mechanism for JDBC specific repositories.
|
org.springframework.data.relational.core.conversion | |
org.springframework.data.relational.core.mapping | |
org.springframework.data.relational.repository.query |
Query support for relational database repositories.
|
org.springframework.data.relational.repository.support |
Support infrastructure for query derivation of relational database repositories.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
JdbcConverter.mapRow(RelationalPersistentEntity<T> entity,
ResultSet resultSet,
Object key)
Read the current row from
ResultSet to an entity . |
<T> T |
BasicJdbcConverter.mapRow(RelationalPersistentEntity<T> entity,
ResultSet resultSet,
Object key) |
Constructor and Description |
---|
EntityRowMapper(RelationalPersistentEntity<T> entity,
JdbcConverter converter) |
Constructor and Description |
---|
BasicJdbcConverter(org.springframework.data.mapping.context.MappingContext<? extends RelationalPersistentEntity<?>,? extends RelationalPersistentProperty> context,
RelationResolver relationResolver)
Creates a new
BasicRelationalConverter given MappingContext and a
no-op type factory throwing UnsupportedOperationException on type
creation. |
BasicJdbcConverter(org.springframework.data.mapping.context.MappingContext<? extends RelationalPersistentEntity<?>,? extends RelationalPersistentProperty> context,
RelationResolver relationResolver,
org.springframework.data.convert.CustomConversions conversions,
JdbcTypeFactory typeFactory,
IdentifierProcessing identifierProcessing)
Creates a new
BasicRelationalConverter given MappingContext . |
Modifier and Type | Method and Description |
---|---|
protected <T> RelationalPersistentEntity<T> |
JdbcMappingContext.createPersistentEntity(org.springframework.data.util.TypeInformation<T> typeInformation) |
Modifier and Type | Method and Description |
---|---|
protected RelationalPersistentProperty |
JdbcMappingContext.createPersistentProperty(org.springframework.data.mapping.model.Property property,
RelationalPersistentEntity<?> owner,
org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder) |
Constructor and Description |
---|
JdbcQueryMethod(Method method,
org.springframework.data.repository.core.RepositoryMetadata metadata,
org.springframework.data.projection.ProjectionFactory factory,
org.springframework.data.repository.core.NamedQueries namedQueries,
org.springframework.data.mapping.context.MappingContext<? extends RelationalPersistentEntity<?>,? extends RelationalPersistentProperty> mappingContext) |
Modifier and Type | Method and Description |
---|---|
org.springframework.data.mapping.context.MappingContext<? extends RelationalPersistentEntity<?>,? extends RelationalPersistentProperty> |
BasicRelationalConverter.getMappingContext() |
org.springframework.data.mapping.context.MappingContext<? extends RelationalPersistentEntity<?>,? extends RelationalPersistentProperty> |
RelationalConverter.getMappingContext()
Returns the underlying
MappingContext used by the converter. |
Modifier and Type | Method and Description |
---|---|
static <T> IdValueSource |
IdValueSource.forInstance(Object instance,
RelationalPersistentEntity<T> persistentEntity)
Returns the appropriate
IdValueSource 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, and IdValueSource.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.
|
Constructor and Description |
---|
BasicRelationalConverter(org.springframework.data.mapping.context.MappingContext<? extends RelationalPersistentEntity<?>,? extends RelationalPersistentProperty> context)
Creates a new
BasicRelationalConverter given MappingContext . |
BasicRelationalConverter(org.springframework.data.mapping.context.MappingContext<? extends RelationalPersistentEntity<?>,? extends RelationalPersistentProperty> context,
org.springframework.data.convert.CustomConversions conversions)
|
Modifier and Type | Method and Description |
---|---|
protected <T> RelationalPersistentEntity<T> |
RelationalMappingContext.createPersistentEntity(org.springframework.data.util.TypeInformation<T> typeInformation) |
RelationalPersistentEntity<?> |
PersistentPropertyPathExtension.getLeafEntity()
The
RelationalPersistentEntity associated with the leaf of this path. |
RelationalPersistentEntity<?> |
BasicRelationalPersistentProperty.getOwner() |
RelationalPersistentEntity<?> |
RelationalPersistentProperty.getOwner() |
Modifier and Type | Method and Description |
---|---|
protected RelationalPersistentProperty |
RelationalMappingContext.createPersistentProperty(org.springframework.data.mapping.model.Property property,
RelationalPersistentEntity<?> owner,
org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder) |
Constructor and Description |
---|
PersistentPropertyPathExtension(org.springframework.data.mapping.context.MappingContext<? extends RelationalPersistentEntity<?>,? extends RelationalPersistentProperty> context,
RelationalPersistentEntity<?> entity)
Creates the empty path referencing the root itself.
|
Constructor and Description |
---|
PersistentPropertyPathExtension(org.springframework.data.mapping.context.MappingContext<? extends RelationalPersistentEntity<?>,? extends RelationalPersistentProperty> context,
org.springframework.data.mapping.PersistentPropertyPath<? extends RelationalPersistentProperty> path)
Creates a non-empty path.
|
PersistentPropertyPathExtension(org.springframework.data.mapping.context.MappingContext<? extends RelationalPersistentEntity<?>,? extends RelationalPersistentProperty> context,
RelationalPersistentEntity<?> entity)
Creates the empty path referencing the root itself.
|
Modifier and Type | Method and Description |
---|---|
RelationalPersistentEntity<?> |
SimpleRelationalEntityMetadata.getTableEntity() |
RelationalPersistentEntity<?> |
RelationalEntityMetadata.getTableEntity()
Returns the
RelationalPersistentEntity that supposed to determine the table to be queried. |
Constructor and Description |
---|
SimpleRelationalEntityMetadata(Class<T> type,
RelationalPersistentEntity<?> tableEntity)
Creates a new
SimpleRelationalEntityMetadata using the given type and RelationalPersistentEntity to
use for table lookups. |
Constructor and Description |
---|
RelationalExampleMapper(org.springframework.data.mapping.context.MappingContext<? extends RelationalPersistentEntity<?>,? extends RelationalPersistentProperty> mappingContext) |
Constructor and Description |
---|
MappingRelationalEntityInformation(RelationalPersistentEntity<T> entity)
Creates a new
MappingRelationalEntityInformation for the given RelationalPersistentEntity . |
MappingRelationalEntityInformation(RelationalPersistentEntity<T> entity,
Class<ID> fallbackIdType)
Creates a new
MappingRelationalEntityInformation for the given RelationalPersistentEntity and
fallback identifier type. |
MappingRelationalEntityInformation(RelationalPersistentEntity<T> entity,
String customTableName)
Creates a new
MappingRelationalEntityInformation for the given RelationalPersistentEntity and
custom table name. |
Copyright © 2017–2023 Pivotal Software, Inc.. All rights reserved.