public class BasicRelationalPersistentProperty extends AnnotationBasedPersistentProperty<RelationalPersistentProperty> implements RelationalPersistentProperty
isIdProperty, isVersionProperty
isIdProperty, isVersionProperty
Constructor and Description |
---|
BasicRelationalPersistentProperty(Property property,
PersistentEntity<?,RelationalPersistentProperty> owner,
SimpleTypeHolder simpleTypeHolder,
RelationalMappingContext context)
Creates a new
AnnotationBasedPersistentProperty . |
Modifier and Type | Method and Description |
---|---|
protected Association<RelationalPersistentProperty> |
createAssociation() |
String |
getColumnName()
Returns the name of the column backing this property.
|
Class<?> |
getColumnType()
The type to be used to store this property in the database.
|
String |
getEmbeddedPrefix() |
String |
getKeyColumn() |
RelationalPersistentEntity<?> |
getOwner() |
Class<?> |
getQualifierColumnType() |
String |
getReverseColumnName() |
String |
getReverseColumnName(PersistentPropertyPathExtension path) |
int |
getSqlType()
The SQL type constant used when using this property as a parameter for a SQL statement.
|
boolean |
isEmbedded() |
boolean |
isEntity() |
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() |
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, 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
public BasicRelationalPersistentProperty(Property property, PersistentEntity<?,RelationalPersistentProperty> owner, SimpleTypeHolder simpleTypeHolder, RelationalMappingContext context)
AnnotationBasedPersistentProperty
.property
- must not be null.owner
- must not be null.simpleTypeHolder
- must not be null.context
- must not be nullprotected Association<RelationalPersistentProperty> createAssociation()
createAssociation
in class AbstractPersistentProperty<RelationalPersistentProperty>
public boolean isEntity()
isEntity
in interface PersistentProperty<RelationalPersistentProperty>
isEntity
in class AbstractPersistentProperty<RelationalPersistentProperty>
public boolean isReference()
isReference
in interface RelationalPersistentProperty
public String getColumnName()
RelationalPersistentProperty
getColumnName
in interface RelationalPersistentProperty
public Class<?> getColumnType()
getColumnType
in interface RelationalPersistentProperty
Class
that is suitable for usage with JDBC driversJdbcUtil.sqlTypeFor(Class)
public int getSqlType()
RelationalPersistentProperty
getSqlType
in interface RelationalPersistentProperty
null
.Types
public RelationalPersistentEntity<?> getOwner()
getOwner
in interface PersistentProperty<RelationalPersistentProperty>
getOwner
in interface RelationalPersistentProperty
getOwner
in class AbstractPersistentProperty<RelationalPersistentProperty>
public String getReverseColumnName()
getReverseColumnName
in interface RelationalPersistentProperty
public String getReverseColumnName(PersistentPropertyPathExtension path)
getReverseColumnName
in interface RelationalPersistentProperty
public String 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–2019 Pivotal Software, Inc.. All rights reserved.