HHH-16059 Add getters and relax scopes
extending CteInsertStrategy and CteMutationStrategy
This commit is contained in:
parent
f53a29ab12
commit
e2baceb382
|
@ -154,4 +154,16 @@ public class CteInsertStrategy implements SqmMultiTableInsertStrategy {
|
||||||
DomainQueryExecutionContext context) {
|
DomainQueryExecutionContext context) {
|
||||||
return new CteInsertHandler( entityCteTable, sqmInsertStatement, domainParameterXref, sessionFactory ).execute( context );
|
return new CteInsertHandler( entityCteTable, sqmInsertStatement, domainParameterXref, sessionFactory ).execute( context );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected EntityPersister getRootDescriptor() {
|
||||||
|
return rootDescriptor;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected SessionFactoryImplementor getSessionFactory() {
|
||||||
|
return sessionFactory;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected CteTable getEntityCteTable() {
|
||||||
|
return entityCteTable;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -106,7 +106,7 @@ public class CteMutationStrategy implements SqmMultiTableMutationStrategy {
|
||||||
return new CteUpdateHandler( idCteTable, sqmUpdate, domainParameterXref, this, sessionFactory ).execute( context );
|
return new CteUpdateHandler( idCteTable, sqmUpdate, domainParameterXref, this, sessionFactory ).execute( context );
|
||||||
}
|
}
|
||||||
|
|
||||||
private void checkMatch(SqmDeleteOrUpdateStatement<?> sqmStatement) {
|
protected void checkMatch(SqmDeleteOrUpdateStatement<?> sqmStatement) {
|
||||||
final String targetEntityName = sqmStatement.getTarget().getEntityName();
|
final String targetEntityName = sqmStatement.getTarget().getEntityName();
|
||||||
final EntityPersister targetEntityDescriptor = sessionFactory.getRuntimeMetamodels()
|
final EntityPersister targetEntityDescriptor = sessionFactory.getRuntimeMetamodels()
|
||||||
.getMappingMetamodel()
|
.getMappingMetamodel()
|
||||||
|
@ -124,4 +124,16 @@ public class CteMutationStrategy implements SqmMultiTableMutationStrategy {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected EntityPersister getRootDescriptor() {
|
||||||
|
return rootDescriptor;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected SessionFactoryImplementor getSessionFactory() {
|
||||||
|
return sessionFactory;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected CteTable getIdCteTable() {
|
||||||
|
return idCteTable;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue