public class BasicRelationalPersistentProperty extends AnnotationBasedPersistentProperty<RelationalPersistentProperty> implements RelationalPersistentProperty
| 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, usePropertyAccessequals, getActualType, getAssociation, getComponentType, getField, getGetter, getMapValueType, getName, getPersistentEntityTypes, getProperty, getRawType, getSetter, getType, getTypeInformation, getWither, hashCode, isArray, isCollectionLike, isImmutable, isMapclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindAnnotation, 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, usePropertyAccesspublic 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 RelationalPersistentPropertypublic String getColumnName()
RelationalPersistentPropertygetColumnName in interface RelationalPersistentPropertypublic Class<?> getColumnType()
getColumnType in interface RelationalPersistentPropertyClass that is suitable for usage with JDBC driversorg.springframework.data.jdbc.support.JdbcUtil#sqlTypeFor(Class)public int getSqlType()
RelationalPersistentPropertygetSqlType in interface RelationalPersistentPropertynull.Typespublic RelationalPersistentEntity<?> getOwner()
getOwner in interface PersistentProperty<RelationalPersistentProperty>getOwner in interface RelationalPersistentPropertygetOwner in class AbstractPersistentProperty<RelationalPersistentProperty>public String getReverseColumnName()
getReverseColumnName in interface RelationalPersistentPropertypublic String getReverseColumnName(PersistentPropertyPathExtension path)
getReverseColumnName in interface RelationalPersistentPropertypublic String 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–2020 Pivotal Software, Inc.. All rights reserved.