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)
|
<T> T |
BasicJdbcConverter.mapRow(RelationalPersistentEntity<T> entity,
ResultSet resultSet,
Object key) |
Constructor and Description |
---|
EntityRowMapper(RelationalPersistentEntity<T> entity,
JdbcConverter converter) |
Constructor and Description |
---|
BasicJdbcConverter(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(MappingContext<? extends RelationalPersistentEntity<?>,? extends RelationalPersistentProperty> context,
RelationResolver relationResolver,
CustomConversions conversions,
JdbcTypeFactory typeFactory,
IdentifierProcessing identifierProcessing)
Creates a new
BasicRelationalConverter given MappingContext . |
Modifier and Type | Method and Description |
---|---|
protected <T> RelationalPersistentEntity<T> |
JdbcMappingContext.createPersistentEntity(TypeInformation<T> typeInformation) |
Modifier and Type | Method and Description |
---|---|
protected RelationalPersistentProperty |
JdbcMappingContext.createPersistentProperty(Property property,
RelationalPersistentEntity<?> owner,
SimpleTypeHolder simpleTypeHolder) |
Constructor and Description |
---|
JdbcQueryMethod(Method method,
RepositoryMetadata metadata,
ProjectionFactory factory,
NamedQueries namedQueries,
MappingContext<? extends RelationalPersistentEntity<?>,? extends RelationalPersistentProperty> mappingContext) |
Modifier and Type | Method and Description |
---|---|
MappingContext<? extends RelationalPersistentEntity<?>,? extends RelationalPersistentProperty> |
RelationalConverter.getMappingContext()
Returns the underlying
MappingContext used by the converter. |
MappingContext<? extends RelationalPersistentEntity<?>,? extends RelationalPersistentProperty> |
BasicRelationalConverter.getMappingContext() |
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(MappingContext<? extends RelationalPersistentEntity<?>,? extends RelationalPersistentProperty> context)
Creates a new
BasicRelationalConverter given MappingContext . |
BasicRelationalConverter(MappingContext<? extends RelationalPersistentEntity<?>,? extends RelationalPersistentProperty> context,
CustomConversions conversions)
|
Modifier and Type | Method and Description |
---|---|
protected <T> RelationalPersistentEntity<T> |
RelationalMappingContext.createPersistentEntity(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(Property property,
RelationalPersistentEntity<?> owner,
SimpleTypeHolder simpleTypeHolder) |
Constructor and Description |
---|
PersistentPropertyPathExtension(MappingContext<? extends RelationalPersistentEntity<?>,? extends RelationalPersistentProperty> context,
RelationalPersistentEntity<?> entity)
Creates the empty path referencing the root itself.
|
Constructor and Description |
---|
PersistentPropertyPathExtension(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.
|
Modifier and Type | Method and Description |
---|---|
RelationalPersistentEntity<?> |
RelationalEntityMetadata.getTableEntity()
Returns the
RelationalPersistentEntity that supposed to determine the table to be queried. |
RelationalPersistentEntity<?> |
SimpleRelationalEntityMetadata.getTableEntity() |
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(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–2022 Pivotal Software, Inc.. All rights reserved.