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, usePropertyAccess
equals, getActualType, getActualTypeInformation, getAssociation, getAssociationTargetType, getComponentType, getField, getGetter, getMapValueType, getName, getPersistentEntityTypeInformation, getPersistentEntityTypes, getProperty, getRawType, getSetter, getType, getTypeInformation, getWither, hashCode, isArray, isCollectionLike, isImmutable, isMap
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findAnnotation, 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 RelationalPersistentProperty
public SqlIdentifier getColumnName()
RelationalPersistentProperty
getColumnName
in interface RelationalPersistentProperty
public RelationalPersistentEntity<?> getOwner()
getOwner
in interface org.springframework.data.mapping.PersistentProperty<RelationalPersistentProperty>
getOwner
in interface RelationalPersistentProperty
getOwner
in class org.springframework.data.mapping.model.AbstractPersistentProperty<RelationalPersistentProperty>
public SqlIdentifier getReverseColumnName(PersistentPropertyPathExtension path)
getReverseColumnName
in interface RelationalPersistentProperty
public SqlIdentifier getKeyColumn()
getKeyColumn
in interface RelationalPersistentProperty
public boolean isQualified()
RelationalPersistentProperty
isQualified
in interface RelationalPersistentProperty
public Class<?> getQualifierColumnType()
getQualifierColumnType
in interface RelationalPersistentProperty
public boolean isOrdered()
RelationalPersistentProperty
isOrdered
in interface RelationalPersistentProperty
public boolean isEmbedded()
isEmbedded
in interface RelationalPersistentProperty
public String getEmbeddedPrefix()
getEmbeddedPrefix
in interface RelationalPersistentProperty
public boolean shouldCreateEmptyEmbedded()
RelationalPersistentProperty
shouldCreateEmptyEmbedded
in interface RelationalPersistentProperty
Copyright © 2017–2023 Pivotal Software, Inc.. All rights reserved.