public class BasicRelationalPersistentProperty extends org.springframework.data.mapping.model.AnnotationBasedPersistentProperty<RelationalPersistentProperty> implements RelationalPersistentProperty
| Constructor and Description |
|---|
BasicRelationalPersistentProperty(org.springframework.data.mapping.model.Property property,
org.springframework.data.mapping.PersistentEntity<?,RelationalPersistentProperty> owner,
org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder,
NamingStrategy namingStrategy)
Creates a new
BasicRelationalPersistentProperty. |
BasicRelationalPersistentProperty(org.springframework.data.mapping.model.Property property,
org.springframework.data.mapping.PersistentEntity<?,RelationalPersistentProperty> owner,
org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder,
RelationalMappingContext context)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.data.mapping.Association<RelationalPersistentProperty> |
createAssociation() |
SqlIdentifier |
getColumnName()
Returns the name of the column backing this property.
|
String |
getEmbeddedPrefix() |
SqlIdentifier |
getKeyColumn() |
RelationalPersistentEntity<?> |
getOwner() |
Class<?> |
getQualifierColumnType() |
SqlIdentifier |
getReverseColumnName(PersistentPropertyPathExtension path) |
boolean |
isEmbedded() |
boolean |
isEntity() |
boolean |
isForceQuote() |
boolean |
isOrdered()
Returns whether this property is an ordered property.
|
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.
|
boolean |
isReference() |
void |
setForceQuote(boolean forceQuote) |
boolean |
shouldCreateEmptyEmbedded()
Returns whether an empty embedded object is supposed to be created for this property.
|
findAnnotation, findPropertyOrOwnerAnnotation, getAssociationTargetTypeInformation, getSpelExpression, isAnnotationPresent, isAssociation, isIdProperty, isTransient, isVersionProperty, isWritable, toString, usePropertyAccessequals, getActualType, getActualTypeInformation, getAssociation, getAssociationTargetType, getComponentType, getField, getGetter, getMapValueType, getName, getPersistentEntityTypeInformation, getPersistentEntityTypes, getProperty, getRawType, getSetter, getType, getTypeInformation, getWither, hashCode, isArray, isCollectionLike, isImmutable, isMapclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindAnnotation, findPropertyOrOwnerAnnotation, getAccessorForOwner, getActualType, getAssociation, getAssociationTargetType, getAssociationTargetTypeInformation, getComponentType, getField, getGetter, getMapValueType, getName, getPersistentEntityTypeInformation, getPersistentEntityTypes, getRawType, getRequiredAnnotation, getRequiredAssociation, getRequiredField, getRequiredGetter, getRequiredSetter, getRequiredWither, getSetter, getSpelExpression, getType, getTypeInformation, getWither, hasActualTypeAnnotation, isAnnotationPresent, isArray, isAssociation, isCollectionLike, isIdProperty, isImmutable, isMap, isTransient, isVersionProperty, isWritable, usePropertyAccess@Deprecated public BasicRelationalPersistentProperty(org.springframework.data.mapping.model.Property property, org.springframework.data.mapping.PersistentEntity<?,RelationalPersistentProperty> owner, org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder, RelationalMappingContext context)
BasicRelationalPersistentProperty.property - must not be null.owner - must not be null.simpleTypeHolder - must not be null.context - must not be nullBasicRelationalPersistentProperty(Property, PersistentEntity, SimpleTypeHolder, NamingStrategy).public BasicRelationalPersistentProperty(org.springframework.data.mapping.model.Property property,
org.springframework.data.mapping.PersistentEntity<?,RelationalPersistentProperty> owner,
org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder,
NamingStrategy namingStrategy)
BasicRelationalPersistentProperty.property - must not be null.owner - must not be null.simpleTypeHolder - must not be null.namingStrategy - must not be nullprotected org.springframework.data.mapping.Association<RelationalPersistentProperty> createAssociation()
createAssociation in class org.springframework.data.mapping.model.AbstractPersistentProperty<RelationalPersistentProperty>public boolean isForceQuote()
public void setForceQuote(boolean forceQuote)
public boolean isEntity()
isEntity in interface org.springframework.data.mapping.PersistentProperty<RelationalPersistentProperty>isEntity in class org.springframework.data.mapping.model.AbstractPersistentProperty<RelationalPersistentProperty>public boolean isReference()
isReference in interface RelationalPersistentPropertypublic SqlIdentifier getColumnName()
RelationalPersistentPropertygetColumnName in interface RelationalPersistentPropertypublic RelationalPersistentEntity<?> getOwner()
getOwner in interface org.springframework.data.mapping.PersistentProperty<RelationalPersistentProperty>getOwner in interface RelationalPersistentPropertygetOwner in class org.springframework.data.mapping.model.AbstractPersistentProperty<RelationalPersistentProperty>public SqlIdentifier getReverseColumnName(PersistentPropertyPathExtension path)
getReverseColumnName in interface RelationalPersistentPropertypublic SqlIdentifier getKeyColumn()
getKeyColumn in interface RelationalPersistentPropertypublic boolean isQualified()
RelationalPersistentPropertyisQualified in interface RelationalPersistentPropertypublic Class<?> getQualifierColumnType()
getQualifierColumnType in interface RelationalPersistentPropertypublic boolean isOrdered()
RelationalPersistentPropertyisOrdered in interface RelationalPersistentPropertypublic boolean isEmbedded()
isEmbedded in interface RelationalPersistentPropertypublic String getEmbeddedPrefix()
getEmbeddedPrefix in interface RelationalPersistentPropertypublic boolean shouldCreateEmptyEmbedded()
RelationalPersistentPropertyshouldCreateEmptyEmbedded in interface RelationalPersistentPropertyCopyright © 2017–2023 Pivotal Software, Inc.. All rights reserved.