public class BasicRelationalPersistentProperty extends AnnotationBasedPersistentProperty<RelationalPersistentProperty> implements RelationalPersistentProperty
Constructor and Description |
---|
BasicRelationalPersistentProperty(Property property,
PersistentEntity<?,RelationalPersistentProperty> owner,
SimpleTypeHolder simpleTypeHolder,
NamingStrategy namingStrategy)
Creates a new
BasicRelationalPersistentProperty . |
BasicRelationalPersistentProperty(Property property,
PersistentEntity<?,RelationalPersistentProperty> owner,
SimpleTypeHolder simpleTypeHolder,
RelationalMappingContext context)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected Association<RelationalPersistentProperty> |
createAssociation() |
SqlIdentifier |
getColumnName()
Returns the name of the column backing this property.
|
String |
getEmbeddedPrefix() |
SqlIdentifier |
getKeyColumn() |
RelationalPersistentEntity<?> |
getOwner() |
Class<?> |
getQualifierColumnType() |
SqlIdentifier |
getReverseColumnName() |
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, getAssociationTargetType, getSpelExpression, isAnnotationPresent, isAssociation, isIdProperty, isTransient, isVersionProperty, isWritable, toString, usePropertyAccess
equals, getActualType, getAssociation, getComponentType, getField, getGetter, getMapValueType, getName, 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, getComponentType, getField, getGetter, getMapValueType, getName, 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(Property property, PersistentEntity<?,RelationalPersistentProperty> owner, 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(Property property, PersistentEntity<?,RelationalPersistentProperty> owner, 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 Association<RelationalPersistentProperty> createAssociation()
createAssociation
in class AbstractPersistentProperty<RelationalPersistentProperty>
public boolean isForceQuote()
public void setForceQuote(boolean forceQuote)
public boolean isEntity()
isEntity
in interface PersistentProperty<RelationalPersistentProperty>
isEntity
in class AbstractPersistentProperty<RelationalPersistentProperty>
public boolean isReference()
isReference
in interface RelationalPersistentProperty
public SqlIdentifier getColumnName()
RelationalPersistentProperty
getColumnName
in interface RelationalPersistentProperty
public RelationalPersistentEntity<?> getOwner()
getOwner
in interface PersistentProperty<RelationalPersistentProperty>
getOwner
in interface RelationalPersistentProperty
getOwner
in class AbstractPersistentProperty<RelationalPersistentProperty>
public SqlIdentifier getReverseColumnName()
getReverseColumnName
in interface 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–2020 Pivotal Software, Inc.. All rights reserved.