major cleanup to BaseSqmToSqlAstConverter
this class was full of EXTREMELY long methods and lots of typecasts Signed-off-by: Gavin King <gavin@hibernate.org>
This commit is contained in:
parent
26efd4e530
commit
86db807e22
|
@ -115,7 +115,7 @@ public class MultiTableSqmMutationConverter extends BaseSqmToSqlAstConverter<Sta
|
|||
return mutatingTableGroup;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Override // promote protected to public
|
||||
public Stack<SqlAstProcessingState> getProcessingStateStack() {
|
||||
return super.getProcessingStateStack();
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -48,9 +48,8 @@ public abstract class AbstractSqlAstQueryNodeProcessingStateImpl
|
|||
public void registerFromUsage(SqmFrom<?, ?> sqmFrom, boolean downgradeTreatUses) {
|
||||
if ( !( sqmFrom instanceof SqmTreatedPath<?, ?> ) ) {
|
||||
if ( !sqmFromRegistrations.containsKey( sqmFrom ) ) {
|
||||
final SqlAstProcessingState parentState = getParentState();
|
||||
if ( parentState instanceof SqlAstQueryPartProcessingState ) {
|
||||
( (SqlAstQueryPartProcessingState) parentState ).registerFromUsage( sqmFrom, downgradeTreatUses );
|
||||
if ( getParentState() instanceof SqlAstQueryPartProcessingState parentState ) {
|
||||
parentState.registerFromUsage( sqmFrom, downgradeTreatUses );
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue