| Modifier and Type | Field and Description |
|---|---|
| private final AssociationKey | |
| private final boolean | |
| private final SelectableMappings | |
| private final EmbeddedForeignKeyDescriptorSide | |
| private final String | |
| private final SelectableMappings | |
| private final EmbeddedForeignKeyDescriptorSide | |
| private final String |
| associationKey | back to summary |
|---|---|
| private final AssociationKey associationKey | |
| hasConstraint | back to summary |
|---|---|
| private final boolean hasConstraint | |
| keySelectableMappings | back to summary |
|---|---|
| private final SelectableMappings keySelectableMappings | |
| keySide | back to summary |
|---|---|
| private final EmbeddedForeignKeyDescriptorSide keySide | |
| keyTable | back to summary |
|---|---|
| private final String keyTable | |
| targetSelectableMappings | back to summary |
|---|---|
| private final SelectableMappings targetSelectableMappings | |
| targetSide | back to summary |
|---|---|
| private final EmbeddedForeignKeyDescriptorSide targetSide | |
| targetTable | back to summary |
|---|---|
| private final String targetTable | |
| EmbeddedForeignKeyDescriptor | back to summary |
|---|---|
| public EmbeddedForeignKeyDescriptor(String keyTable, SelectableMappings keySelectableMappings, EmbeddableValuedModelPart keyMappingType, String targetTable, SelectableMappings targetSelectableMappings, EmbeddableValuedModelPart targetMappingType, boolean hasConstraint, MappingModelCreationProcess creationProcess) | |
| EmbeddedForeignKeyDescriptor | back to summary |
|---|---|
| public EmbeddedForeignKeyDescriptor(EmbeddableValuedModelPart keyMappingType, EmbeddableValuedModelPart targetMappingType, String keyTable, SelectableMappings keySelectableMappings, String targetTable, SelectableMappings targetSelectableMappings, boolean hasConstraint, MappingModelCreationProcess creationProcess) | |
| EmbeddedForeignKeyDescriptor | back to summary |
|---|---|
| private EmbeddedForeignKeyDescriptor(EmbeddedForeignKeyDescriptor original, String keyTable, ManagedMappingType keyDeclaringType, TableGroupProducer keyDeclaringTableGroupProducer, SelectableMappings keySelectableMappings, MappingModelCreationProcess creationProcess) | |
| EmbeddedForeignKeyDescriptor | back to summary |
|---|---|
| private EmbeddedForeignKeyDescriptor(EmbeddedForeignKeyDescriptor original, EmbeddableValuedModelPart targetPart) | |
| addToCacheKey | back to summary |
|---|---|
| public void addToCacheKey(MutableCacheKeyBuilder cacheKey, Object value, SharedSessionContractImplementor session) Implements org. Doc from org. Add to the MutableCacheKey the values obtained disassembling the value and the hasCode generated from the disassembled value.
| |
| applySqlSelections | back to summary |
|---|---|
| public void applySqlSelections(NavigablePath navigablePath, TableGroup tableGroup, DomainResultCreationState creationState) Implements org. Doc from org. Apply SQL selections for a specific reference to this ModelPart outside the domain query's root select clause.
| |
| applySqlSelections | back to summary |
|---|---|
| public void applySqlSelections(NavigablePath navigablePath, TableGroup tableGroup, DomainResultCreationState creationState, BiConsumer<SqlSelection, JdbcMapping> selectionConsumer) Implements org. Doc from org. Apply SQL selections for a specific reference to this ModelPart outside the domain query's root select clause.
| |
| breakDownJdbcValues | back to summary |
|---|---|
| public <X, Y> int breakDownJdbcValues(Object domainValue, int offset, X x, Y y, ModelPart. Implements org. Doc from org. Breaks down the domain value to its constituent JDBC values.
Think of it as breaking the multi-dimensional array into a visitable flat array.
Additionally, it passes through the values
| |
| compare | back to summary |
|---|---|
| public int compare(Object key1, Object key2) Implements org. Doc from org. Compare the 2 values
| |
| createDomainResult | back to summary |
|---|---|
| public <T> DomainResult Implements org. Doc from org. Create a DomainResult for the referring-side of the fk The table group must be the one containing the target.
| |
| createDomainResult | back to summary |
|---|---|
| private <T> DomainResult | |
| createKeyDomainResult | back to summary |
|---|---|
| public DomainResult Implements org. Doc from org. Create a DomainResult for the referring-side of the fk The table group must be the one containing the target.
| |
| createKeyDomainResult | back to summary |
|---|---|
| public DomainResult Implements org. Doc from org. Create a DomainResult for the referring-side of the fk
The table group must be the one containing the target.
The
| |
| createTargetDomainResult | back to summary |
|---|---|
| public DomainResult Implements org. Doc from org. Create a DomainResult for the target-side of the fk The table group must be the one containing the target
| |
| disassemble | back to summary |
|---|---|
| public Object disassemble(Object value, SharedSessionContractImplementor session) Implements org. Doc from org. Breaks down a value of
Generally speaking, this is the form in which entity state is kept relative to a
Session via
@Entity class Person {
@Id Integer id;
@Embedded Name name;
int age;
}
@Embeddable class Name {
String familiarName;
String familyName;
}
At the top level, we would want to disassemble a
Person( id=1, name=Name( 'Steve', 'Ebersole' ), 28 ) this disassemble would result in a multidimensional array:
[ ["Steve", "Ebersole"], 28 ] Note that the identifier is not part of this disassembled state. Note also how the embedded value results in a sub-array.
| |
| findContainingEntityMapping | back to summary |
|---|---|
| public EntityMappingType findContainingEntityMapping() Implements org.
| |
| forEachDisassembledJdbcValue | back to summary |
|---|---|
| public <X, Y> int forEachDisassembledJdbcValue(Object value, int offset, X x, Y y, Bindable. Implements org. Doc from org. Like
| |
| forEachJdbcType | back to summary |
|---|---|
| public int forEachJdbcType(int offset, IndexedConsumer<JdbcMapping> action) Implements org. Doc from org. Visit each JdbcMapping starting from the given offset
| |
| generateJoinPredicate | back to summary |
|---|---|
| public Predicate generateJoinPredicate(TableGroup targetSideTableGroup, TableGroup keySideTableGroup, SqlAstCreationState creationState) Implements org.
| |
| generateJoinPredicate | back to summary |
|---|---|
| public Predicate generateJoinPredicate(TableReference targetSideReference, TableReference keySideReference, SqlAstCreationState creationState) Implements org.
| |
| getAssociationKey | back to summary |
|---|---|
| public AssociationKey getAssociationKey() Implements org.
| |
| getAssociationKeyFromSide | back to summary |
|---|---|
| public Object getAssociationKeyFromSide(Object targetObject, ForeignKeyDescriptor. Implements org.
| |
| getJavaType | back to summary |
|---|---|
| public JavaType Implements org. Doc from org. The Java type for this part. Generally equivalent to
| |
| getJdbcMapping | back to summary |
|---|---|
| public JdbcMapping getJdbcMapping(final int index) Implements org.
| |
| getKeyPart | back to summary |
|---|---|
| public EmbeddableValuedModelPart getKeyPart() Implements org.
| |
| getKeySide | back to summary |
|---|---|
| public ForeignKeyDescriptor. Implements org.
| |
| getKeyTable | back to summary |
|---|---|
| public String getKeyTable() Implements org.
| |
| getMappedType | back to summary |
|---|---|
| public MappingType getMappedType() Implements org. Doc from org. Descriptor for the type of this mapping
| |
| getNavigableRole | back to summary |
|---|---|
| public NavigableRole getNavigableRole() Implements org.
| |
| getPartMappingType | back to summary |
|---|---|
| public MappingType getPartMappingType() Implements org. Doc from org. The type for this part.
| |
| getSelectable | back to summary |
|---|---|
| public SelectableMapping getSelectable(int columnIndex) Implements org. Doc from org. Get the selectable at the given position
| |
| getTargetPart | back to summary |
|---|---|
| public EmbeddableValuedModelPart getTargetPart() Implements org.
| |
| getTargetSide | back to summary |
|---|---|
| public ForeignKeyDescriptor. Implements org.
| |
| getTargetTable | back to summary |
|---|---|
| public String getTargetTable() Implements org.
| |
| getUnderlyingTableGroup | back to summary |
|---|---|
| private static TableGroup getUnderlyingTableGroup(TableGroup tableGroup) | |
| hasConstraint | back to summary |
|---|---|
| public boolean hasConstraint() Implements org.
| |
| hasPartitionedSelectionMapping | back to summary |
|---|---|
| public boolean hasPartitionedSelectionMapping() Implements org.
| |
| isEmbedded | back to summary |
|---|---|
| public boolean isEmbedded() Implements org.
| |
| isKeyPart | back to summary |
|---|---|
| public boolean isKeyPart(ValuedModelPart modelPart) Implements org.
| |
| isSimpleJoinPredicate | back to summary |
|---|---|
| public boolean isSimpleJoinPredicate(Predicate predicate) Implements org.
| |
| isTargetTableGroup | back to summary |
|---|---|
| private boolean isTargetTableGroup(TableGroup tableGroup) | |
| visitKeySelectables | back to summary |
|---|---|
| public int visitKeySelectables(int offset, SelectableConsumer consumer) Implements org.
| |
| visitTargetSelectables | back to summary |
|---|---|
| public int visitTargetSelectables(int offset, SelectableConsumer consumer) Implements org.
| |
| withKeySelectionMapping | back to summary |
|---|---|
| public ForeignKeyDescriptor withKeySelectionMapping(ManagedMappingType declaringType, TableGroupProducer declaringTableGroupProducer, IntFunction<SelectableMapping> selectableMappingAccess, MappingModelCreationProcess creationProcess) Implements org. Doc from org. Return a copy of this foreign key descriptor with the selectable mappings as provided by the given accessor.
| |
| withTargetPart | back to summary |
|---|---|
| public ForeignKeyDescriptor withTargetPart(ValuedModelPart targetPart) Implements org. Doc from org. Return a copy of this foreign key descriptor with the target part as given by the argument.
| |