| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final String | |
| private final Object | |
| private final JdbcMapping | |
| private final NavigableRole | |
| private final String | |
| private final Object | |
| public static final String | |
| private final SoftDeletableModelPart | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | SoftDeleteMappingImpl(SoftDeletableModelPart softDeletable, String columnName, String tableName, Object deletedLiteralValue, String deletedLiteralText, Object nonDeletedLiteralValue, String nonDeletedLiteralText, JdbcMapping jdbcMapping)
|
| columnName | back to summary |
|---|---|
| private final String columnName | |
| deletedLiteralText | back to summary |
|---|---|
| private final String deletedLiteralText | |
| deletedLiteralValue | back to summary |
|---|---|
| private final Object deletedLiteralValue | |
| jdbcMapping | back to summary |
|---|---|
| private final JdbcMapping jdbcMapping | |
| navigableRole | back to summary |
|---|---|
| private final NavigableRole navigableRole | |
| nonDeletedLiteralText | back to summary |
|---|---|
| private final String nonDeletedLiteralText | |
| nonDeletedLiteralValue | back to summary |
|---|---|
| private final Object nonDeletedLiteralValue | |
| ROLE_NAME | back to summary |
|---|---|
| public static final String ROLE_NAME | |
| softDeletable | back to summary |
|---|---|
| private final SoftDeletableModelPart softDeletable | |
| tableName | back to summary |
|---|---|
| private final String tableName | |
| SoftDeleteMappingImpl | back to summary |
|---|---|
| public SoftDeleteMappingImpl(SoftDeletableModelPart softDeletable, String columnName, String tableName, Object deletedLiteralValue, String deletedLiteralText, Object nonDeletedLiteralValue, String nonDeletedLiteralText, JdbcMapping jdbcMapping) | |
| 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
| |
| createDomainResult | back to summary |
|---|---|
| public <T> DomainResult Implements org. Doc from org. Create a DomainResult for a specific reference to this ModelPart.
| |
| 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
| |
| getColumnName | back to summary |
|---|---|
| public String getColumnName() Implements org. Doc from org. The name of the soft-delete indicator column.
| |
| getDeletedLiteralText | back to summary |
|---|---|
| public String getDeletedLiteralText() Implements org. Doc from org. The String representation of the SQL literal value which indicates a deleted row
| |
| getDeletedLiteralValue | back to summary |
|---|---|
| public Object getDeletedLiteralValue() Implements org. Doc from org. The SQL literal value which indicates a deleted row
| |
| 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() Implements org. Doc from org. Anything that is expressible at the SQL AST level would be of basic type.
| |
| getNavigableRole | back to summary |
|---|---|
| public NavigableRole getNavigableRole() Implements org.
| |
| getNonDeletedLiteralText | back to summary |
|---|---|
| public String getNonDeletedLiteralText() Implements org. Doc from org. The String representation of the SQL literal value which indicates a non-deleted row
| |
| getNonDeletedLiteralValue | back to summary |
|---|---|
| public Object getNonDeletedLiteralValue() Implements org. Doc from org. The SQL literal value which indicates a non-deleted row
| |
| getPartMappingType | back to summary |
|---|---|
| public MappingType getPartMappingType() Implements org. Doc from org. The type for this part.
| |
| getPartName | back to summary |
|---|---|
| public String getPartName() Implements org. Doc from org. The local part name, which is generally the unqualified role name
| |
| getTableName | back to summary |
|---|---|
| public String getTableName() Implements org. Doc from org. The name of the table which holds the indicator column
| |
| hasPartitionedSelectionMapping | back to summary |
|---|---|
| public boolean hasPartitionedSelectionMapping() Implements org.
| |
| resolveSqlSelection | back to summary |
|---|---|
| private SqlSelection resolveSqlSelection(NavigablePath navigablePath, TableGroup tableGroup, DomainResultCreationState creationState) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |