Uses of Interface
org.springframework.data.relational.core.mapping.RelationalPersistentEntity
Packages that use RelationalPersistentEntity
Package
Description
Query support for relational database repositories.
Support infrastructure for query derivation of relational database repositories.
-
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
Subclasses with type arguments of type RelationalPersistentEntity in org.springframework.data.relational.core.mappingMethods 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)