Interface RelationalPersistentProperty
- All Superinterfaces:
PersistentProperty<RelationalPersistentProperty>
- All Known Implementing Classes:
BasicJdbcPersistentProperty,BasicRelationalPersistentProperty
public interface RelationalPersistentProperty
extends PersistentProperty<RelationalPersistentProperty>
A
PersistentProperty with methods for additional RDBMS related metadata based on columns.- Author:
- Jens Schauder, Oliver Gierke, Bastian Wilhelm, Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the column backing this property.default String@Nullable SqlIdentifiergetOwner()Class<?>@Nullable SqlIdentifierbooleanReturns whether the property uses an annotated field name throughColumn.default booleandefault booleanbooleanReturns whether this property is only to be used during inserts and read.booleanReturns whether this property is an ordered property.booleanReturns if this property is a qualified property, i.e. a property referencing multiple elements that can get picked by a key or an index.booleanReturns whether an empty embedded object is supposed to be created for this property.Methods inherited from interface org.springframework.data.mapping.PersistentProperty
findAnnotation, findPropertyOrOwnerAnnotation, getAccessorForOwner, getActualType, getAssociation, getAssociationTargetType, getAssociationTargetTypeInformation, getComponentType, getField, getGetter, getMapValueType, getName, getPersistentEntityTypeInformation, getRawType, getRequiredAnnotation, getRequiredAssociation, getRequiredField, getRequiredGetter, getRequiredSetter, getRequiredWither, getSetter, getSpelExpression, getType, getTypeInformation, getWither, hasActualTypeAnnotation, isAnnotationPresent, isArray, isAssociation, isCollectionLike, isEntity, isIdProperty, isImmutable, isMap, isReadable, isTransient, isVersionProperty, isWritable, usePropertyAccess
-
Method Details
-
getColumnName
SqlIdentifier getColumnName()Returns the name of the column backing this property.- Returns:
- the name of the column backing this property.
-
hasExplicitColumnName
boolean hasExplicitColumnName()Returns whether the property uses an annotated field name throughColumn.- Returns:
- Since:
- 3.2
-
getOwner
RelationalPersistentEntity<?> getOwner()- Specified by:
getOwnerin interfacePersistentProperty<RelationalPersistentProperty>
-
getReverseColumnName
- Parameters:
owner- the owning entity.- Returns:
- the column name to represent the owning side.
-
getKeyColumn
@Nullable SqlIdentifier getKeyColumn() -
isQualified
boolean isQualified()Returns if this property is a qualified property, i.e. a property referencing multiple elements that can get picked by a key or an index. -
getQualifierColumnType
Class<?> getQualifierColumnType() -
isOrdered
boolean isOrdered()Returns whether this property is an ordered property. -
isEmbedded
default boolean isEmbedded()- Returns:
- true, if the Property is an embedded value object, otherwise false.
-
getEmbeddedPrefix
- Returns:
- Prefix for embedded columns. If the column is not embedded the return value is empty.
-
shouldCreateEmptyEmbedded
boolean shouldCreateEmptyEmbedded()Returns whether an empty embedded object is supposed to be created for this property. -
isInsertOnly
boolean isInsertOnly()Returns whether this property is only to be used during inserts and read.- Since:
- 3.0
-
getSequence
@Nullable SqlIdentifier getSequence()- Returns:
- the target sequence that should be used for value generation.
- Since:
- 3.5
-
hasSequence
default boolean hasSequence()- Returns:
- true if the property is associated with a sequence; false otherwise.
- Since:
- 3.5
-