public class PersistentPropertyPathExtension extends Object
PersistentPropertyPath
for making common operations
available used in SQL generation.Constructor and Description |
---|
PersistentPropertyPathExtension(MappingContext<RelationalPersistentEntity<?>,RelationalPersistentProperty> context,
PersistentPropertyPath<RelationalPersistentProperty> path) |
PersistentPropertyPathExtension(MappingContext<RelationalPersistentEntity<?>,RelationalPersistentProperty> context,
RelationalPersistentEntity<?> entity) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
PersistentPropertyPathExtension |
extendBy(RelationalPersistentProperty property) |
String |
getColumnAlias()
The alias for the column used to represent this property in the database.
|
String |
getColumnName()
The name of the column used to represent this property in the database.
|
String |
getEffectiveIdColumnName()
If the table owning ancestor has an id the column name of that id property is returned.
|
String |
getIdColumnName()
The column name of the id column of the ancestor path that represents an actual table.
|
PersistentPropertyPathExtension |
getIdDefiningParentPath() |
String |
getKeyColumn() |
RelationalPersistentEntity<?> |
getLeafEntity()
The
RelationalPersistentEntity associated with the leaf of this path. |
int |
getLength()
The length of the path.
|
PersistentPropertyPathExtension |
getParentPath()
Returns the path that has the same beginning but is one segment shorter than this path.
|
Class<?> |
getQualifierColumnType() |
RelationalPersistentProperty |
getRequiredIdProperty() |
String |
getReverseColumnName()
The name of the column used to reference the id in the parent table.
|
String |
getReverseColumnNameAlias()
The alias used in select for the column used to reference the id in the parent table.
|
String |
getTableAlias()
The alias used for the table on which this path is based.
|
String |
getTableName()
The name of the table this path is tied to or of the longest ancestor path that is actually tied to a table.
|
int |
hashCode() |
boolean |
hasIdProperty() |
boolean |
isCollectionLike() |
boolean |
isEmbedded()
Returns true exactly when the path is non empty and the leaf property an embedded one.
|
boolean |
isEntity() |
boolean |
isMultiValued()
Returns true if there are multiple values for this path, i.e. if the path contains at least one element
that is a collection and array or a map.
|
boolean |
isQualified() |
boolean |
matches(PersistentPropertyPath<RelationalPersistentProperty> path) |
String |
toString() |
public PersistentPropertyPathExtension(MappingContext<RelationalPersistentEntity<?>,RelationalPersistentProperty> context, RelationalPersistentEntity<?> entity)
public PersistentPropertyPathExtension(MappingContext<RelationalPersistentEntity<?>,RelationalPersistentProperty> context, PersistentPropertyPath<RelationalPersistentProperty> path)
public boolean isEmbedded()
public PersistentPropertyPathExtension getParentPath()
IllegalStateException
- when called on an empty path.public boolean isMultiValued()
@Nullable public RelationalPersistentEntity<?> getLeafEntity()
RelationalPersistentEntity
associated with the leaf of this path.public boolean isEntity()
public boolean isCollectionLike()
Collection
or an array.public String getReverseColumnName()
IllegalStateException
- when called on an empty path.public String getReverseColumnNameAlias()
IllegalStateException
- when called on an empty path.public String getColumnName()
IllegalStateException
- when called on an empty path.public String getColumnAlias()
IllegalStateException
- when called on an empty path.public boolean hasIdProperty()
public PersistentPropertyPathExtension getIdDefiningParentPath()
public String getTableName()
@Nullable public String getTableAlias()
public String getIdColumnName()
public String getEffectiveIdColumnName()
public int getLength()
public boolean matches(PersistentPropertyPath<RelationalPersistentProperty> path)
public RelationalPersistentProperty getRequiredIdProperty()
public String getKeyColumn()
public Class<?> getQualifierColumnType()
public PersistentPropertyPathExtension extendBy(RelationalPersistentProperty property)
protected boolean canEqual(Object other)
Copyright © 2017–2019 Pivotal Software, Inc.. All rights reserved.