Record Class AggregatePath.TableInfo
java.lang.Object
java.lang.Record
org.springframework.data.relational.core.mapping.AggregatePath.TableInfo
- Record Components:
qualifiedTableName- the fully qualified name of the table this path is tied to or of the longest ancestor path that is actually tied to a table. Must not be null.tableAlias- the alias used for the table on which this path is based. May be null.backReferenceColumnInfos- information about the columns used to reference back to the owning entity. Must not be null. Since 3.5.qualifierColumnInfo- the column used for the list index or map key of the leaf property of this path. May be null.qualifierColumnType- the type of the qualifier column of the leaf property of this path or null if this is not applicable. May be null.idColumnInfos- the column name of the id column of the ancestor path that represents an actual table. Must not be null.
- Enclosing interface:
AggregatePath
public static record AggregatePath.TableInfo(SqlIdentifier qualifiedTableName, @Nullable SqlIdentifier tableAlias, AggregatePath.ColumnInfos backReferenceColumnInfos, @Nullable AggregatePath.ColumnInfo qualifierColumnInfo, @Nullable Class<?> qualifierColumnType, AggregatePath.ColumnInfos idColumnInfos)
extends Record
Information about a table underlying an entity.
- Since:
- 3.2
- Author:
- Jens Schauder, Mark Paluch
-
Constructor Summary
ConstructorsConstructorDescriptionTableInfo(SqlIdentifier qualifiedTableName, @Nullable SqlIdentifier tableAlias, AggregatePath.ColumnInfos backReferenceColumnInfos, @Nullable AggregatePath.ColumnInfo qualifierColumnInfo, @Nullable Class<?> qualifierColumnType, AggregatePath.ColumnInfos idColumnInfos) Creates an instance of aTableInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebackReferenceColumnInfosrecord component.The id columns of the underlying table.final booleanIndicates whether some other object is "equal to" this one.Class<?> final inthashCode()Returns a hash code value for this object.Returns the value of theidColumnInfosrecord component.Returns the value of thequalifiedTableNamerecord component.@Nullable AggregatePath.ColumnInfoReturns the value of thequalifierColumnInforecord component.@Nullable Class<?> Returns the value of thequalifierColumnTyperecord component.Deprecated, for removal: This API element is subject to removal in a future version.since there might be more than one reverse column instead.@Nullable SqlIdentifierReturns the value of thetableAliasrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TableInfo
public TableInfo(SqlIdentifier qualifiedTableName, @Nullable SqlIdentifier tableAlias, AggregatePath.ColumnInfos backReferenceColumnInfos, @Nullable AggregatePath.ColumnInfo qualifierColumnInfo, @Nullable Class<?> qualifierColumnType, AggregatePath.ColumnInfos idColumnInfos) Creates an instance of aTableInforecord class.- Parameters:
qualifiedTableName- the value for thequalifiedTableNamerecord componenttableAlias- the value for thetableAliasrecord componentbackReferenceColumnInfos- the value for thebackReferenceColumnInfosrecord componentqualifierColumnInfo- the value for thequalifierColumnInforecord componentqualifierColumnType- the value for thequalifierColumnTyperecord componentidColumnInfos- the value for theidColumnInfosrecord component
-
-
Method Details
-
getRequiredQualifierColumnInfo
-
backReferenceColumnInfos
Returns the value of thebackReferenceColumnInfosrecord component.- Returns:
- the value of the
backReferenceColumnInfosrecord component
-
reverseColumnInfo
Deprecated, for removal: This API element is subject to removal in a future version.since there might be more than one reverse column instead. UsebackReferenceColumnInfos()instead.Returns the uniqueAggregatePath.ColumnInforeferencing the parent table, if such exists.- Returns:
- guaranteed not to be null.
- Throws:
IllegalStateException- if there is not exactly one back referencing column.
-
effectiveIdColumnInfos
The id columns of the underlying table.These might be:
- the columns representing the id of the entity in question.
- the columns representing the id of a parent entity, which _owns_ the table. Note that this case also covers the first case.
- or the backReferenceColumns.
- Returns:
- ColumnInfos representing the effective id of this entity. Guaranteed not to be null.
-
getRequiredQualifierColumnType
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
qualifiedTableName
Returns the value of thequalifiedTableNamerecord component.- Returns:
- the value of the
qualifiedTableNamerecord component
-
tableAlias
Returns the value of thetableAliasrecord component.- Returns:
- the value of the
tableAliasrecord component
-
qualifierColumnInfo
Returns the value of thequalifierColumnInforecord component.- Returns:
- the value of the
qualifierColumnInforecord component
-
qualifierColumnType
Returns the value of thequalifierColumnTyperecord component.- Returns:
- the value of the
qualifierColumnTyperecord component
-
idColumnInfos
Returns the value of theidColumnInfosrecord component.- Returns:
- the value of the
idColumnInfosrecord component
-