HHH-15501 Remove clause parameter of Bindable forEachDisassembledJdbcValue and forEachJdbcValue

This commit is contained in:
Christian Beikov 2022-12-14 20:48:30 +01:00
parent cacba9a205
commit e61baab946
45 changed files with 38 additions and 149 deletions

View File

@ -189,7 +189,6 @@ public abstract class AbstractCompositeIdentifierMapping
@Override @Override
public int forEachJdbcValue( public int forEachJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
@ -209,14 +208,13 @@ public abstract class AbstractCompositeIdentifierMapping
); );
span += fkDescriptor.forEachJdbcValue( span += fkDescriptor.forEachJdbcValue(
identifier, identifier,
clause,
span + offset, span + offset,
valuesConsumer, valuesConsumer,
session session
); );
} }
else { else {
span += attributeMapping.forEachJdbcValue( o, clause, span + offset, valuesConsumer, session ); span += attributeMapping.forEachJdbcValue( o, span + offset, valuesConsumer, session );
} }
} }
return span; return span;

View File

@ -12,7 +12,6 @@ import java.util.List;
import org.hibernate.Incubating; import org.hibernate.Incubating;
import org.hibernate.engine.spi.SharedSessionContractImplementor; import org.hibernate.engine.spi.SharedSessionContractImplementor;
import org.hibernate.mapping.IndexedConsumer; import org.hibernate.mapping.IndexedConsumer;
import org.hibernate.sql.ast.Clause;
/** /**
* Contract for things at the domain mapping level that can be bound * Contract for things at the domain mapping level that can be bound
@ -116,15 +115,13 @@ public interface Bindable extends JdbcMappingContainer {
*/ */
default int forEachDisassembledJdbcValue( default int forEachDisassembledJdbcValue(
Object value, Object value,
Clause clause,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
return forEachDisassembledJdbcValue( value, clause, 0, valuesConsumer, session ); return forEachDisassembledJdbcValue( value, 0, valuesConsumer, session );
} }
int forEachDisassembledJdbcValue( int forEachDisassembledJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session); SharedSessionContractImplementor session);
@ -137,19 +134,17 @@ public interface Bindable extends JdbcMappingContainer {
*/ */
default int forEachJdbcValue( default int forEachJdbcValue(
Object value, Object value,
Clause clause,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
return forEachJdbcValue( value, clause, 0, valuesConsumer, session ); return forEachJdbcValue( value, 0, valuesConsumer, session );
} }
default int forEachJdbcValue( default int forEachJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
return forEachDisassembledJdbcValue( disassemble( value, session ), clause, offset, valuesConsumer, session ); return forEachDisassembledJdbcValue( disassemble( value, session ), offset, valuesConsumer, session );
} }

View File

@ -69,11 +69,10 @@ public interface EmbeddableValuedModelPart extends ValuedModelPart, Fetchable, F
@Override @Override
default int forEachJdbcValue( default int forEachJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
return getEmbeddableTypeDescriptor().forEachJdbcValue( value, clause, offset, valuesConsumer, session ); return getEmbeddableTypeDescriptor().forEachJdbcValue( value, offset, valuesConsumer, session );
} }
@Override @Override
@ -89,13 +88,11 @@ public interface EmbeddableValuedModelPart extends ValuedModelPart, Fetchable, F
@Override @Override
default int forEachDisassembledJdbcValue( default int forEachDisassembledJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
return getEmbeddableTypeDescriptor().forEachDisassembledJdbcValue( return getEmbeddableTypeDescriptor().forEachDisassembledJdbcValue(
value, value,
clause,
offset, offset,
valuesConsumer, valuesConsumer,
session session

View File

@ -31,7 +31,6 @@ import org.hibernate.persister.entity.AttributeMappingsList;
import org.hibernate.spi.NavigablePath; import org.hibernate.spi.NavigablePath;
import org.hibernate.query.sqm.mutation.spi.SqmMultiTableInsertStrategy; import org.hibernate.query.sqm.mutation.spi.SqmMultiTableInsertStrategy;
import org.hibernate.query.sqm.mutation.spi.SqmMultiTableMutationStrategy; import org.hibernate.query.sqm.mutation.spi.SqmMultiTableMutationStrategy;
import org.hibernate.sql.ast.Clause;
import org.hibernate.sql.ast.spi.FromClauseAccess; import org.hibernate.sql.ast.spi.FromClauseAccess;
import org.hibernate.sql.ast.spi.SqlAliasBase; import org.hibernate.sql.ast.spi.SqlAliasBase;
import org.hibernate.sql.ast.spi.SqlAstCreationContext; import org.hibernate.sql.ast.spi.SqlAstCreationContext;
@ -171,7 +170,6 @@ public interface EntityMappingType
@Override @Override
int forEachDisassembledJdbcValue( int forEachDisassembledJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session); SharedSessionContractImplementor session);
@ -179,11 +177,10 @@ public interface EntityMappingType
@Override @Override
default int forEachJdbcValue( default int forEachJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer consumer, JdbcValuesConsumer consumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
return forEachDisassembledJdbcValue( disassemble( value, session ), clause, offset, consumer, session ); return forEachDisassembledJdbcValue( disassemble( value, session ), offset, consumer, session );
} }
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -12,7 +12,6 @@ import java.util.function.Consumer;
import org.hibernate.engine.spi.SharedSessionContractImplementor; import org.hibernate.engine.spi.SharedSessionContractImplementor;
import org.hibernate.mapping.IndexedConsumer; import org.hibernate.mapping.IndexedConsumer;
import org.hibernate.spi.NavigablePath; import org.hibernate.spi.NavigablePath;
import org.hibernate.sql.ast.Clause;
import org.hibernate.sql.ast.spi.SqlSelection; import org.hibernate.sql.ast.spi.SqlSelection;
import org.hibernate.sql.ast.tree.from.TableGroup; import org.hibernate.sql.ast.tree.from.TableGroup;
import org.hibernate.sql.results.graph.DomainResult; import org.hibernate.sql.results.graph.DomainResult;
@ -101,20 +100,18 @@ public interface EntityValuedModelPart extends FetchableContainer {
@Override @Override
default int forEachDisassembledJdbcValue( default int forEachDisassembledJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
return getEntityMappingType().forEachDisassembledJdbcValue( value, clause, offset, valuesConsumer, session ); return getEntityMappingType().forEachDisassembledJdbcValue( value, offset, valuesConsumer, session );
} }
@Override @Override
default int forEachJdbcValue( default int forEachJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer consumer, JdbcValuesConsumer consumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
return getEntityMappingType().forEachJdbcValue( value, clause, offset, consumer, session ); return getEntityMappingType().forEachJdbcValue( value, offset, consumer, session );
} }
} }

View File

@ -21,7 +21,6 @@ import org.hibernate.metamodel.model.domain.NavigableRole;
import org.hibernate.persister.entity.DiscriminatorType; import org.hibernate.persister.entity.DiscriminatorType;
import org.hibernate.persister.entity.EntityPersister; import org.hibernate.persister.entity.EntityPersister;
import org.hibernate.spi.NavigablePath; import org.hibernate.spi.NavigablePath;
import org.hibernate.sql.ast.Clause;
import org.hibernate.sql.ast.spi.SqlAstCreationState; import org.hibernate.sql.ast.spi.SqlAstCreationState;
import org.hibernate.sql.ast.spi.SqlExpressionResolver; import org.hibernate.sql.ast.spi.SqlExpressionResolver;
import org.hibernate.sql.ast.spi.SqlSelection; import org.hibernate.sql.ast.spi.SqlSelection;
@ -202,7 +201,6 @@ public abstract class AbstractDiscriminatorMapping implements EntityDiscriminato
@Override @Override
public int forEachDisassembledJdbcValue( public int forEachDisassembledJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {

View File

@ -25,7 +25,6 @@ import org.hibernate.metamodel.mapping.SelectableConsumer;
import org.hibernate.metamodel.mapping.SelectableMapping; import org.hibernate.metamodel.mapping.SelectableMapping;
import org.hibernate.metamodel.model.domain.NavigableRole; import org.hibernate.metamodel.model.domain.NavigableRole;
import org.hibernate.spi.NavigablePath; import org.hibernate.spi.NavigablePath;
import org.hibernate.sql.ast.Clause;
import org.hibernate.sql.ast.spi.FromClauseAccess; import org.hibernate.sql.ast.spi.FromClauseAccess;
import org.hibernate.sql.ast.spi.SqlAstCreationState; import org.hibernate.sql.ast.spi.SqlAstCreationState;
import org.hibernate.sql.ast.spi.SqlExpressionResolver; import org.hibernate.sql.ast.spi.SqlExpressionResolver;
@ -210,7 +209,6 @@ public class AnyDiscriminatorPart implements BasicValuedModelPart, FetchOptions,
@Override @Override
public int forEachDisassembledJdbcValue( public int forEachDisassembledJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {

View File

@ -23,7 +23,6 @@ import org.hibernate.metamodel.mapping.MappingType;
import org.hibernate.metamodel.mapping.SelectableConsumer; import org.hibernate.metamodel.mapping.SelectableConsumer;
import org.hibernate.metamodel.model.domain.NavigableRole; import org.hibernate.metamodel.model.domain.NavigableRole;
import org.hibernate.spi.NavigablePath; import org.hibernate.spi.NavigablePath;
import org.hibernate.sql.ast.Clause;
import org.hibernate.sql.ast.spi.FromClauseAccess; import org.hibernate.sql.ast.spi.FromClauseAccess;
import org.hibernate.sql.ast.spi.SqlExpressionResolver; import org.hibernate.sql.ast.spi.SqlExpressionResolver;
import org.hibernate.sql.ast.spi.SqlSelection; import org.hibernate.sql.ast.spi.SqlSelection;
@ -260,7 +259,6 @@ public class AnyKeyPart implements BasicValuedModelPart, FetchOptions {
@Override @Override
public int forEachJdbcValue( public int forEachJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
@ -281,7 +279,6 @@ public class AnyKeyPart implements BasicValuedModelPart, FetchOptions {
@Override @Override
public int forEachDisassembledJdbcValue( public int forEachDisassembledJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {

View File

@ -11,7 +11,6 @@ import java.util.function.BiConsumer;
import org.hibernate.engine.FetchStyle; import org.hibernate.engine.FetchStyle;
import org.hibernate.engine.FetchTiming; import org.hibernate.engine.FetchTiming;
import org.hibernate.engine.spi.SharedSessionContractImplementor; import org.hibernate.engine.spi.SharedSessionContractImplementor;
import org.hibernate.mapping.GeneratorCreator;
import org.hibernate.mapping.IndexedConsumer; import org.hibernate.mapping.IndexedConsumer;
import org.hibernate.metamodel.mapping.AttributeMetadata; import org.hibernate.metamodel.mapping.AttributeMetadata;
import org.hibernate.metamodel.mapping.BasicValuedModelPart; import org.hibernate.metamodel.mapping.BasicValuedModelPart;
@ -26,7 +25,6 @@ import org.hibernate.metamodel.mapping.SingularAttributeMapping;
import org.hibernate.metamodel.model.domain.NavigableRole; import org.hibernate.metamodel.model.domain.NavigableRole;
import org.hibernate.property.access.spi.PropertyAccess; import org.hibernate.property.access.spi.PropertyAccess;
import org.hibernate.spi.NavigablePath; import org.hibernate.spi.NavigablePath;
import org.hibernate.sql.ast.Clause;
import org.hibernate.sql.ast.spi.SqlAstCreationState; import org.hibernate.sql.ast.spi.SqlAstCreationState;
import org.hibernate.sql.ast.spi.SqlExpressionResolver; import org.hibernate.sql.ast.spi.SqlExpressionResolver;
import org.hibernate.sql.ast.spi.SqlSelection; import org.hibernate.sql.ast.spi.SqlSelection;
@ -378,7 +376,6 @@ public class BasicAttributeMapping
@Override @Override
public int forEachDisassembledJdbcValue( public int forEachDisassembledJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {

View File

@ -30,7 +30,6 @@ import org.hibernate.property.access.spi.PropertyAccess;
import org.hibernate.proxy.HibernateProxy; import org.hibernate.proxy.HibernateProxy;
import org.hibernate.proxy.LazyInitializer; import org.hibernate.proxy.LazyInitializer;
import org.hibernate.spi.NavigablePath; import org.hibernate.spi.NavigablePath;
import org.hibernate.sql.ast.Clause;
import org.hibernate.sql.ast.spi.SqlAstCreationState; import org.hibernate.sql.ast.spi.SqlAstCreationState;
import org.hibernate.sql.ast.spi.SqlExpressionResolver; import org.hibernate.sql.ast.spi.SqlExpressionResolver;
import org.hibernate.sql.ast.spi.SqlSelection; import org.hibernate.sql.ast.spi.SqlSelection;
@ -372,11 +371,10 @@ public class BasicEntityIdentifierMappingImpl implements BasicEntityIdentifierMa
@Override @Override
public int forEachDisassembledJdbcValue( public int forEachDisassembledJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
return idType.forEachDisassembledJdbcValue( value, clause, offset, valuesConsumer, session ); return idType.forEachDisassembledJdbcValue( value, offset, valuesConsumer, session );
} }
@Override @Override

View File

@ -25,7 +25,6 @@ import org.hibernate.metamodel.model.domain.NavigableRole;
import org.hibernate.persister.collection.CollectionPersister; import org.hibernate.persister.collection.CollectionPersister;
import org.hibernate.spi.EntityIdentifierNavigablePath; import org.hibernate.spi.EntityIdentifierNavigablePath;
import org.hibernate.spi.NavigablePath; import org.hibernate.spi.NavigablePath;
import org.hibernate.sql.ast.Clause;
import org.hibernate.sql.ast.spi.SqlExpressionResolver; import org.hibernate.sql.ast.spi.SqlExpressionResolver;
import org.hibernate.sql.ast.spi.SqlSelection; import org.hibernate.sql.ast.spi.SqlSelection;
import org.hibernate.sql.ast.tree.from.PluralTableGroup; import org.hibernate.sql.ast.tree.from.PluralTableGroup;
@ -312,7 +311,6 @@ public class BasicValuedCollectionPart
@Override @Override
public int forEachDisassembledJdbcValue( public int forEachDisassembledJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {

View File

@ -21,7 +21,6 @@ import org.hibernate.metamodel.mapping.SelectableConsumer;
import org.hibernate.metamodel.model.domain.NavigableRole; import org.hibernate.metamodel.model.domain.NavigableRole;
import org.hibernate.persister.collection.CollectionPersister; import org.hibernate.persister.collection.CollectionPersister;
import org.hibernate.spi.NavigablePath; import org.hibernate.spi.NavigablePath;
import org.hibernate.sql.ast.Clause;
import org.hibernate.sql.ast.spi.FromClauseAccess; import org.hibernate.sql.ast.spi.FromClauseAccess;
import org.hibernate.sql.ast.spi.SqlAstCreationContext; import org.hibernate.sql.ast.spi.SqlAstCreationContext;
import org.hibernate.sql.ast.spi.SqlAstCreationState; import org.hibernate.sql.ast.spi.SqlAstCreationState;
@ -305,10 +304,9 @@ public class CollectionIdentifierDescriptorImpl implements CollectionIdentifierD
@Override @Override
public int forEachDisassembledJdbcValue( public int forEachDisassembledJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
return type.forEachDisassembledJdbcValue( value, clause, offset, valuesConsumer, session ); return type.forEachDisassembledJdbcValue( value, offset, valuesConsumer, session );
} }
} }

View File

@ -35,7 +35,6 @@ import org.hibernate.metamodel.mapping.SelectableConsumer;
import org.hibernate.metamodel.mapping.SingularAttributeMapping; import org.hibernate.metamodel.mapping.SingularAttributeMapping;
import org.hibernate.persister.entity.EntityPersister; import org.hibernate.persister.entity.EntityPersister;
import org.hibernate.spi.NavigablePath; import org.hibernate.spi.NavigablePath;
import org.hibernate.sql.ast.Clause;
import org.hibernate.sql.ast.spi.SqlSelection; import org.hibernate.sql.ast.spi.SqlSelection;
import org.hibernate.sql.ast.tree.from.TableGroup; import org.hibernate.sql.ast.tree.from.TableGroup;
import org.hibernate.sql.results.graph.AssemblerCreationState; import org.hibernate.sql.results.graph.AssemblerCreationState;
@ -381,7 +380,6 @@ public class CompoundNaturalIdMapping extends AbstractNaturalIdMapping implement
@Override @Override
public int forEachDisassembledJdbcValue( public int forEachDisassembledJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
@ -392,7 +390,7 @@ public class CompoundNaturalIdMapping extends AbstractNaturalIdMapping implement
int span = 0; int span = 0;
for ( int i = 0; i < attributes.size(); i++ ) { for ( int i = 0; i < attributes.size(); i++ ) {
final SingularAttributeMapping attribute = attributes.get( i ); final SingularAttributeMapping attribute = attributes.get( i );
span += attribute.forEachDisassembledJdbcValue( incoming[ i ], clause, span + offset, valuesConsumer, session ); span += attribute.forEachDisassembledJdbcValue( incoming[ i ], span + offset, valuesConsumer, session );
} }
return span; return span;
} }
@ -400,7 +398,6 @@ public class CompoundNaturalIdMapping extends AbstractNaturalIdMapping implement
@Override @Override
public int forEachJdbcValue( public int forEachJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
@ -412,7 +409,7 @@ public class CompoundNaturalIdMapping extends AbstractNaturalIdMapping implement
int span = 0; int span = 0;
for ( int i = 0; i < attributes.size(); i++ ) { for ( int i = 0; i < attributes.size(); i++ ) {
final SingularAttributeMapping attribute = attributes.get( i ); final SingularAttributeMapping attribute = attributes.get( i );
span += attribute.forEachJdbcValue( incoming[ i ], clause, span + offset, valuesConsumer, session ); span += attribute.forEachJdbcValue( incoming[ i ], span + offset, valuesConsumer, session );
} }
return span; return span;
} }

View File

@ -33,7 +33,6 @@ import org.hibernate.metamodel.mapping.SelectableMapping;
import org.hibernate.metamodel.model.domain.NavigableRole; import org.hibernate.metamodel.model.domain.NavigableRole;
import org.hibernate.property.access.spi.PropertyAccess; import org.hibernate.property.access.spi.PropertyAccess;
import org.hibernate.spi.NavigablePath; import org.hibernate.spi.NavigablePath;
import org.hibernate.sql.ast.Clause;
import org.hibernate.sql.ast.SqlAstJoinType; import org.hibernate.sql.ast.SqlAstJoinType;
import org.hibernate.sql.ast.spi.FromClauseAccess; import org.hibernate.sql.ast.spi.FromClauseAccess;
import org.hibernate.sql.ast.spi.SqlAliasBaseGenerator; import org.hibernate.sql.ast.spi.SqlAliasBaseGenerator;
@ -265,7 +264,6 @@ public class DiscriminatedAssociationAttributeMapping
@Override @Override
public int forEachDisassembledJdbcValue( public int forEachDisassembledJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {

View File

@ -26,7 +26,6 @@ import org.hibernate.metamodel.mapping.SelectableMapping;
import org.hibernate.metamodel.model.domain.NavigableRole; import org.hibernate.metamodel.model.domain.NavigableRole;
import org.hibernate.persister.collection.CollectionPersister; import org.hibernate.persister.collection.CollectionPersister;
import org.hibernate.spi.NavigablePath; import org.hibernate.spi.NavigablePath;
import org.hibernate.sql.ast.Clause;
import org.hibernate.sql.ast.SqlAstJoinType; import org.hibernate.sql.ast.SqlAstJoinType;
import org.hibernate.sql.ast.spi.FromClauseAccess; import org.hibernate.sql.ast.spi.FromClauseAccess;
import org.hibernate.sql.ast.spi.SqlAliasBaseGenerator; import org.hibernate.sql.ast.spi.SqlAliasBaseGenerator;
@ -263,13 +262,11 @@ public class DiscriminatedCollectionPart implements DiscriminatedAssociationMode
@Override @Override
public int forEachDisassembledJdbcValue( public int forEachDisassembledJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
return discriminatorMapping.getDiscriminatorPart().forEachDisassembledJdbcValue( return discriminatorMapping.getDiscriminatorPart().forEachDisassembledJdbcValue(
value, value,
clause,
offset, offset,
valuesConsumer, valuesConsumer,
session session

View File

@ -54,7 +54,6 @@ import org.hibernate.persister.entity.AttributeMappingsList;
import org.hibernate.persister.internal.MutableAttributeMappingList; import org.hibernate.persister.internal.MutableAttributeMappingList;
import org.hibernate.property.access.spi.PropertyAccess; import org.hibernate.property.access.spi.PropertyAccess;
import org.hibernate.spi.NavigablePath; import org.hibernate.spi.NavigablePath;
import org.hibernate.sql.ast.Clause;
import org.hibernate.sql.ast.tree.from.TableGroup; import org.hibernate.sql.ast.tree.from.TableGroup;
import org.hibernate.sql.ast.tree.from.TableGroupProducer; import org.hibernate.sql.ast.tree.from.TableGroupProducer;
import org.hibernate.sql.results.graph.DomainResult; import org.hibernate.sql.results.graph.DomainResult;
@ -750,7 +749,6 @@ public class EmbeddableMappingTypeImpl extends AbstractEmbeddableMapping impleme
@Override @Override
public int forEachJdbcValue( public int forEachJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer consumer, JdbcValuesConsumer consumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
@ -762,7 +760,7 @@ public class EmbeddableMappingTypeImpl extends AbstractEmbeddableMapping impleme
continue; continue;
} }
final Object o = attributeMapping.getPropertyAccess().getGetter().get( value ); final Object o = attributeMapping.getPropertyAccess().getGetter().get( value );
span += attributeMapping.forEachJdbcValue( o, clause, span + offset, consumer, session ); span += attributeMapping.forEachJdbcValue( o, span + offset, consumer, session );
} }
return span; return span;
} }
@ -770,7 +768,6 @@ public class EmbeddableMappingTypeImpl extends AbstractEmbeddableMapping impleme
@Override @Override
public int forEachDisassembledJdbcValue( public int forEachDisassembledJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
@ -778,7 +775,7 @@ public class EmbeddableMappingTypeImpl extends AbstractEmbeddableMapping impleme
int span = 0; int span = 0;
for ( int i = 0; i < attributeMappings.size(); i++ ) { for ( int i = 0; i < attributeMappings.size(); i++ ) {
final AttributeMapping mapping = attributeMappings.get( i ); final AttributeMapping mapping = attributeMappings.get( i );
span += mapping.forEachDisassembledJdbcValue( values[i], clause, span + offset, valuesConsumer, session ); span += mapping.forEachDisassembledJdbcValue( values[i], span + offset, valuesConsumer, session );
} }
return span; return span;
} }

View File

@ -29,7 +29,6 @@ import org.hibernate.metamodel.mapping.SelectableMappings;
import org.hibernate.metamodel.model.domain.NavigableRole; import org.hibernate.metamodel.model.domain.NavigableRole;
import org.hibernate.query.sqm.ComparisonOperator; import org.hibernate.query.sqm.ComparisonOperator;
import org.hibernate.spi.NavigablePath; import org.hibernate.spi.NavigablePath;
import org.hibernate.sql.ast.Clause;
import org.hibernate.sql.ast.SqlAstJoinType; import org.hibernate.sql.ast.SqlAstJoinType;
import org.hibernate.sql.ast.spi.SqlAstCreationContext; import org.hibernate.sql.ast.spi.SqlAstCreationContext;
import org.hibernate.sql.ast.spi.SqlExpressionResolver; import org.hibernate.sql.ast.spi.SqlExpressionResolver;
@ -589,11 +588,10 @@ public class EmbeddedForeignKeyDescriptor implements ForeignKeyDescriptor {
@Override @Override
public int forEachDisassembledJdbcValue( public int forEachDisassembledJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
return targetSide.getModelPart().forEachDisassembledJdbcValue( value, clause, offset, valuesConsumer, session ); return targetSide.getModelPart().forEachDisassembledJdbcValue( value, offset, valuesConsumer, session );
} }
@Override @Override

View File

@ -17,7 +17,6 @@ import org.hibernate.property.access.spi.PropertyAccess;
import org.hibernate.proxy.HibernateProxy; import org.hibernate.proxy.HibernateProxy;
import org.hibernate.proxy.LazyInitializer; import org.hibernate.proxy.LazyInitializer;
import org.hibernate.spi.NavigablePath; import org.hibernate.spi.NavigablePath;
import org.hibernate.sql.ast.Clause;
import org.hibernate.sql.ast.spi.SqlSelection; import org.hibernate.sql.ast.spi.SqlSelection;
import org.hibernate.sql.ast.tree.from.TableGroup; import org.hibernate.sql.ast.tree.from.TableGroup;
import org.hibernate.sql.results.graph.DomainResultCreationState; import org.hibernate.sql.results.graph.DomainResultCreationState;
@ -147,13 +146,11 @@ public class EmbeddedIdentifierMappingImpl
@Override @Override
public int forEachDisassembledJdbcValue( public int forEachDisassembledJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
return getEmbeddableTypeDescriptor().forEachDisassembledJdbcValue( return getEmbeddableTypeDescriptor().forEachDisassembledJdbcValue(
value, value,
clause,
offset, offset,
valuesConsumer, valuesConsumer,
session session

View File

@ -17,7 +17,6 @@ import org.hibernate.metamodel.mapping.JdbcMapping;
import org.hibernate.metamodel.mapping.MappingType; import org.hibernate.metamodel.mapping.MappingType;
import org.hibernate.metamodel.model.domain.NavigableRole; import org.hibernate.metamodel.model.domain.NavigableRole;
import org.hibernate.spi.NavigablePath; import org.hibernate.spi.NavigablePath;
import org.hibernate.sql.ast.Clause;
import org.hibernate.sql.ast.spi.SqlAstCreationState; import org.hibernate.sql.ast.spi.SqlAstCreationState;
import org.hibernate.sql.ast.spi.SqlExpressionResolver; import org.hibernate.sql.ast.spi.SqlExpressionResolver;
import org.hibernate.sql.ast.spi.SqlSelection; import org.hibernate.sql.ast.spi.SqlSelection;
@ -28,7 +27,6 @@ import org.hibernate.sql.results.graph.DomainResultCreationState;
import org.hibernate.sql.results.graph.basic.BasicResult; import org.hibernate.sql.results.graph.basic.BasicResult;
import org.hibernate.type.BasicType; import org.hibernate.type.BasicType;
import org.hibernate.type.descriptor.java.JavaType; import org.hibernate.type.descriptor.java.JavaType;
import org.hibernate.type.spi.TypeConfiguration;
/** /**
* @author Nathan Xu * @author Nathan Xu
@ -117,11 +115,10 @@ public class EntityRowIdMappingImpl implements EntityRowIdMapping {
@Override @Override
public int forEachDisassembledJdbcValue( public int forEachDisassembledJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
return rowIdType.forEachDisassembledJdbcValue( value, clause, offset, valuesConsumer, session ); return rowIdType.forEachDisassembledJdbcValue( value, offset, valuesConsumer, session );
} }
@Override @Override

View File

@ -23,7 +23,6 @@ import org.hibernate.metamodel.mapping.JdbcMapping;
import org.hibernate.metamodel.mapping.MappingType; import org.hibernate.metamodel.mapping.MappingType;
import org.hibernate.metamodel.model.domain.NavigableRole; import org.hibernate.metamodel.model.domain.NavigableRole;
import org.hibernate.spi.NavigablePath; import org.hibernate.spi.NavigablePath;
import org.hibernate.sql.ast.Clause;
import org.hibernate.sql.ast.spi.SqlAstCreationState; import org.hibernate.sql.ast.spi.SqlAstCreationState;
import org.hibernate.sql.ast.spi.SqlExpressionResolver; import org.hibernate.sql.ast.spi.SqlExpressionResolver;
import org.hibernate.sql.ast.spi.SqlSelection; import org.hibernate.sql.ast.spi.SqlSelection;
@ -316,11 +315,10 @@ public class EntityVersionMappingImpl implements EntityVersionMapping, FetchOpti
@Override @Override
public int forEachDisassembledJdbcValue( public int forEachDisassembledJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
return versionBasicType.forEachDisassembledJdbcValue( value, clause, offset, valuesConsumer, session ); return versionBasicType.forEachDisassembledJdbcValue( value, offset, valuesConsumer, session );
} }
@Override @Override

View File

@ -42,7 +42,6 @@ import org.hibernate.persister.internal.MutableAttributeMappingList;
import org.hibernate.property.access.internal.PropertyAccessStrategyMapImpl; import org.hibernate.property.access.internal.PropertyAccessStrategyMapImpl;
import org.hibernate.property.access.spi.PropertyAccess; import org.hibernate.property.access.spi.PropertyAccess;
import org.hibernate.spi.NavigablePath; import org.hibernate.spi.NavigablePath;
import org.hibernate.sql.ast.Clause;
import org.hibernate.sql.ast.tree.from.TableGroup; import org.hibernate.sql.ast.tree.from.TableGroup;
import org.hibernate.sql.ast.tree.from.TableGroupProducer; import org.hibernate.sql.ast.tree.from.TableGroupProducer;
import org.hibernate.sql.results.graph.DomainResult; import org.hibernate.sql.results.graph.DomainResult;
@ -405,7 +404,6 @@ public class IdClassEmbeddable extends AbstractEmbeddableMapping implements Iden
@Override @Override
public int forEachJdbcValue( public int forEachJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
@ -417,7 +415,7 @@ public class IdClassEmbeddable extends AbstractEmbeddableMapping implements Iden
continue; continue;
} }
final Object o = attributeMapping.getPropertyAccess().getGetter().get( value ); final Object o = attributeMapping.getPropertyAccess().getGetter().get( value );
span += attributeMapping.forEachJdbcValue( o, clause, span + offset, valuesConsumer, session ); span += attributeMapping.forEachJdbcValue( o, span + offset, valuesConsumer, session );
} }
return span; return span;
} }
@ -438,7 +436,6 @@ public class IdClassEmbeddable extends AbstractEmbeddableMapping implements Iden
@Override @Override
public int forEachDisassembledJdbcValue( public int forEachDisassembledJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {

View File

@ -136,11 +136,10 @@ public class InverseNonAggregatedIdentifierMapping extends EmbeddedAttributeMapp
@Override @Override
public int forEachJdbcValue( public int forEachJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
return identifierValueMapper.forEachJdbcValue( value, clause, offset, valuesConsumer, session ); return identifierValueMapper.forEachJdbcValue( value, offset, valuesConsumer, session );
} }
@Override @Override

View File

@ -157,11 +157,10 @@ public class NonAggregatedIdentifierMappingImpl extends AbstractCompositeIdentif
@Override @Override
public int forEachJdbcValue( public int forEachJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
return identifierValueMapper.forEachJdbcValue( value, clause, offset, valuesConsumer, session ); return identifierValueMapper.forEachJdbcValue( value, offset, valuesConsumer, session );
} }
@Override @Override

View File

@ -42,7 +42,6 @@ import org.hibernate.persister.collection.CollectionPersister;
import org.hibernate.persister.entity.Joinable; import org.hibernate.persister.entity.Joinable;
import org.hibernate.property.access.spi.PropertyAccess; import org.hibernate.property.access.spi.PropertyAccess;
import org.hibernate.spi.NavigablePath; import org.hibernate.spi.NavigablePath;
import org.hibernate.sql.ast.Clause;
import org.hibernate.sql.ast.SqlAstJoinType; import org.hibernate.sql.ast.SqlAstJoinType;
import org.hibernate.sql.ast.spi.FromClauseAccess; import org.hibernate.sql.ast.spi.FromClauseAccess;
import org.hibernate.sql.ast.spi.SqlAliasBase; import org.hibernate.sql.ast.spi.SqlAliasBase;
@ -936,11 +935,10 @@ public class PluralAttributeMappingImpl
@Override @Override
public int forEachDisassembledJdbcValue( public int forEachDisassembledJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
return elementDescriptor.forEachDisassembledJdbcValue( value, clause, offset, valuesConsumer, session ); return elementDescriptor.forEachDisassembledJdbcValue( value, offset, valuesConsumer, session );
} }
@Override @Override

View File

@ -34,7 +34,6 @@ import org.hibernate.proxy.HibernateProxy;
import org.hibernate.proxy.LazyInitializer; import org.hibernate.proxy.LazyInitializer;
import org.hibernate.query.sqm.ComparisonOperator; import org.hibernate.query.sqm.ComparisonOperator;
import org.hibernate.spi.NavigablePath; import org.hibernate.spi.NavigablePath;
import org.hibernate.sql.ast.Clause;
import org.hibernate.sql.ast.spi.SqlAstCreationContext; import org.hibernate.sql.ast.spi.SqlAstCreationContext;
import org.hibernate.sql.ast.spi.SqlAstCreationState; import org.hibernate.sql.ast.spi.SqlAstCreationState;
import org.hibernate.sql.ast.spi.SqlExpressionResolver; import org.hibernate.sql.ast.spi.SqlExpressionResolver;
@ -452,7 +451,6 @@ public class SimpleForeignKeyDescriptor implements ForeignKeyDescriptor, BasicVa
@Override @Override
public int forEachDisassembledJdbcValue( public int forEachDisassembledJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
@ -505,7 +503,6 @@ public class SimpleForeignKeyDescriptor implements ForeignKeyDescriptor, BasicVa
@Override @Override
public int forEachJdbcValue( public int forEachJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {

View File

@ -27,7 +27,6 @@ import org.hibernate.metamodel.mapping.SelectableConsumer;
import org.hibernate.metamodel.mapping.SingularAttributeMapping; import org.hibernate.metamodel.mapping.SingularAttributeMapping;
import org.hibernate.persister.entity.EntityPersister; import org.hibernate.persister.entity.EntityPersister;
import org.hibernate.spi.NavigablePath; import org.hibernate.spi.NavigablePath;
import org.hibernate.sql.ast.Clause;
import org.hibernate.sql.ast.spi.SqlSelection; import org.hibernate.sql.ast.spi.SqlSelection;
import org.hibernate.sql.ast.tree.from.TableGroup; import org.hibernate.sql.ast.tree.from.TableGroup;
import org.hibernate.sql.results.graph.DomainResult; import org.hibernate.sql.results.graph.DomainResult;
@ -241,21 +240,19 @@ public class SimpleNaturalIdMapping extends AbstractNaturalIdMapping implements
@Override @Override
public int forEachDisassembledJdbcValue( public int forEachDisassembledJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
return attribute.forEachDisassembledJdbcValue( value, clause, offset, valuesConsumer, session ); return attribute.forEachDisassembledJdbcValue( value, offset, valuesConsumer, session );
} }
@Override @Override
public int forEachJdbcValue( public int forEachJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
return attribute.forEachJdbcValue( value, clause, offset, valuesConsumer, session ); return attribute.forEachJdbcValue( value, offset, valuesConsumer, session );
} }
@Override @Override

View File

@ -58,7 +58,6 @@ import org.hibernate.property.access.spi.PropertyAccess;
import org.hibernate.spi.EntityIdentifierNavigablePath; import org.hibernate.spi.EntityIdentifierNavigablePath;
import org.hibernate.spi.NavigablePath; import org.hibernate.spi.NavigablePath;
import org.hibernate.spi.TreatedNavigablePath; import org.hibernate.spi.TreatedNavigablePath;
import org.hibernate.sql.ast.Clause;
import org.hibernate.sql.ast.SqlAstJoinType; import org.hibernate.sql.ast.SqlAstJoinType;
import org.hibernate.sql.ast.spi.FromClauseAccess; import org.hibernate.sql.ast.spi.FromClauseAccess;
import org.hibernate.sql.ast.spi.SqlAliasBase; import org.hibernate.sql.ast.spi.SqlAliasBase;
@ -2050,17 +2049,15 @@ public class ToOneAttributeMapping
@Override @Override
public int forEachDisassembledJdbcValue( public int forEachDisassembledJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
return foreignKeyDescriptor.forEachDisassembledJdbcValue( value, clause, offset, valuesConsumer, session ); return foreignKeyDescriptor.forEachDisassembledJdbcValue( value, offset, valuesConsumer, session );
} }
@Override @Override
public int forEachJdbcValue( public int forEachJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer consumer, JdbcValuesConsumer consumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
@ -2069,7 +2066,6 @@ public class ToOneAttributeMapping
foreignKeyDescriptor.getAssociationKeyFromSide( value, sideNature.inverse(), session ), foreignKeyDescriptor.getAssociationKeyFromSide( value, sideNature.inverse(), session ),
session session
), ),
clause,
offset, offset,
consumer, consumer,
session session

View File

@ -30,7 +30,6 @@ import org.hibernate.persister.entity.EntityPersister;
import org.hibernate.persister.entity.AttributeMappingsList; import org.hibernate.persister.entity.AttributeMappingsList;
import org.hibernate.persister.internal.MutableAttributeMappingList; import org.hibernate.persister.internal.MutableAttributeMappingList;
import org.hibernate.spi.NavigablePath; import org.hibernate.spi.NavigablePath;
import org.hibernate.sql.ast.Clause;
import org.hibernate.sql.ast.tree.from.TableGroup; import org.hibernate.sql.ast.tree.from.TableGroup;
import org.hibernate.sql.ast.tree.from.TableGroupProducer; import org.hibernate.sql.ast.tree.from.TableGroupProducer;
import org.hibernate.sql.results.graph.DomainResult; import org.hibernate.sql.results.graph.DomainResult;
@ -297,7 +296,6 @@ public class VirtualIdEmbeddable extends AbstractEmbeddableMapping implements Id
@Override @Override
public int forEachJdbcValue( public int forEachJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
@ -309,7 +307,7 @@ public class VirtualIdEmbeddable extends AbstractEmbeddableMapping implements Id
continue; continue;
} }
final Object o = attributeMapping.getPropertyAccess().getGetter().get( value ); final Object o = attributeMapping.getPropertyAccess().getGetter().get( value );
span += attributeMapping.forEachJdbcValue( o, clause, span + offset, valuesConsumer, session ); span += attributeMapping.forEachJdbcValue( o, span + offset, valuesConsumer, session );
} }
return span; return span;
} }
@ -356,7 +354,6 @@ public class VirtualIdEmbeddable extends AbstractEmbeddableMapping implements Id
@Override @Override
public int forEachDisassembledJdbcValue( public int forEachDisassembledJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
@ -364,7 +361,7 @@ public class VirtualIdEmbeddable extends AbstractEmbeddableMapping implements Id
int span = 0; int span = 0;
for ( int i = 0; i < attributeMappings.size(); i++ ) { for ( int i = 0; i < attributeMappings.size(); i++ ) {
final AttributeMapping mapping = attributeMappings.get( i ); final AttributeMapping mapping = attributeMappings.get( i );
span += mapping.forEachDisassembledJdbcValue( values[i], clause, span + offset, valuesConsumer, session ); span += mapping.forEachDisassembledJdbcValue( values[i], span + offset, valuesConsumer, session );
} }
return span; return span;
} }

View File

@ -18,7 +18,6 @@ import org.hibernate.metamodel.mapping.MappingModelExpressible;
import org.hibernate.query.ReturnableType; import org.hibernate.query.ReturnableType;
import org.hibernate.metamodel.model.domain.TupleType; import org.hibernate.metamodel.model.domain.TupleType;
import org.hibernate.query.sqm.SqmExpressible; import org.hibernate.query.sqm.SqmExpressible;
import org.hibernate.sql.ast.Clause;
import org.hibernate.type.descriptor.java.JavaType; import org.hibernate.type.descriptor.java.JavaType;
import org.hibernate.type.descriptor.java.ObjectArrayJavaType; import org.hibernate.type.descriptor.java.ObjectArrayJavaType;
@ -98,7 +97,6 @@ public class ArrayTupleType implements TupleType<Object[]>,
@Override @Override
public int forEachDisassembledJdbcValue( public int forEachDisassembledJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {

View File

@ -10,7 +10,6 @@ import org.hibernate.engine.spi.SharedSessionContractImplementor;
import org.hibernate.mapping.IndexedConsumer; import org.hibernate.mapping.IndexedConsumer;
import org.hibernate.metamodel.mapping.JdbcMapping; import org.hibernate.metamodel.mapping.JdbcMapping;
import org.hibernate.metamodel.mapping.MappingModelExpressible; import org.hibernate.metamodel.mapping.MappingModelExpressible;
import org.hibernate.sql.ast.Clause;
/** /**
* @author Christian Beikov * @author Christian Beikov
@ -45,14 +44,13 @@ public class TupleMappingModelExpressible implements MappingModelExpressible {
@Override @Override
public int forEachDisassembledJdbcValue( public int forEachDisassembledJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
final Object[] values = (Object[]) value; final Object[] values = (Object[]) value;
int span = 0; int span = 0;
for ( int i = 0; i < components.length; i++ ) { for ( int i = 0; i < components.length; i++ ) {
span += components[i].forEachDisassembledJdbcValue( values[i], clause, span + offset, valuesConsumer, session ); span += components[i].forEachDisassembledJdbcValue( values[i], span + offset, valuesConsumer, session );
} }
return span; return span;
} }
@ -60,7 +58,6 @@ public class TupleMappingModelExpressible implements MappingModelExpressible {
@Override @Override
public int forEachJdbcValue( public int forEachJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
@ -69,7 +66,6 @@ public class TupleMappingModelExpressible implements MappingModelExpressible {
for ( int i = 0; i < components.length; i++ ) { for ( int i = 0; i < components.length; i++ ) {
span += components[i].forEachDisassembledJdbcValue( span += components[i].forEachDisassembledJdbcValue(
components[i].disassemble( values[i], session ), components[i].disassemble( values[i], session ),
clause,
span + offset, span + offset,
valuesConsumer, valuesConsumer,
session session

View File

@ -224,7 +224,6 @@ import org.hibernate.sql.Delete;
import org.hibernate.sql.SimpleSelect; import org.hibernate.sql.SimpleSelect;
import org.hibernate.sql.Template; import org.hibernate.sql.Template;
import org.hibernate.sql.Update; import org.hibernate.sql.Update;
import org.hibernate.sql.ast.Clause;
import org.hibernate.sql.ast.spi.FromClauseAccess; import org.hibernate.sql.ast.spi.FromClauseAccess;
import org.hibernate.sql.ast.spi.SimpleFromClauseAccessImpl; import org.hibernate.sql.ast.spi.SimpleFromClauseAccessImpl;
import org.hibernate.sql.ast.spi.SqlAliasBase; import org.hibernate.sql.ast.spi.SqlAliasBase;
@ -5779,13 +5778,11 @@ public abstract class AbstractEntityPersister
@Override @Override
public int forEachDisassembledJdbcValue( public int forEachDisassembledJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
return getIdentifierMapping().forEachDisassembledJdbcValue( return getIdentifierMapping().forEachDisassembledJdbcValue(
value, value,
clause,
offset, offset,
valuesConsumer, valuesConsumer,
session session
@ -5795,7 +5792,6 @@ public abstract class AbstractEntityPersister
@Override @Override
public int forEachJdbcValue( public int forEachJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer consumer, JdbcValuesConsumer consumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
@ -5809,7 +5805,6 @@ public abstract class AbstractEntityPersister
} }
return identifierMapping.forEachDisassembledJdbcValue( return identifierMapping.forEachDisassembledJdbcValue(
identifier, identifier,
clause,
offset, offset,
consumer, consumer,
session session

View File

@ -227,7 +227,6 @@ public class EntityTableMapping implements TableMapping {
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
identifierPart.forEachJdbcValue( identifierPart.forEachJdbcValue(
domainValue, domainValue,
null,
(selectionIndex, jdbcValue, jdbcMapping) -> valueConsumer.consume( (selectionIndex, jdbcValue, jdbcMapping) -> valueConsumer.consume(
jdbcValue, jdbcValue,
keyColumns.get( selectionIndex ) keyColumns.get( selectionIndex )

View File

@ -22,7 +22,6 @@ import org.hibernate.metamodel.mapping.SelectableConsumer;
import org.hibernate.metamodel.model.domain.NavigableRole; import org.hibernate.metamodel.model.domain.NavigableRole;
import org.hibernate.query.sqm.SqmExpressible; import org.hibernate.query.sqm.SqmExpressible;
import org.hibernate.spi.NavigablePath; import org.hibernate.spi.NavigablePath;
import org.hibernate.sql.ast.Clause;
import org.hibernate.sql.ast.spi.SqlAstCreationState; import org.hibernate.sql.ast.spi.SqlAstCreationState;
import org.hibernate.sql.ast.spi.SqlExpressionResolver; import org.hibernate.sql.ast.spi.SqlExpressionResolver;
import org.hibernate.sql.ast.spi.SqlSelection; import org.hibernate.sql.ast.spi.SqlSelection;
@ -265,7 +264,6 @@ public class AnonymousTupleBasicValuedModelPart implements ModelPart, MappingTyp
@Override @Override
public int forEachDisassembledJdbcValue( public int forEachDisassembledJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
@ -290,7 +288,11 @@ public class AnonymousTupleBasicValuedModelPart implements ModelPart, MappingTyp
} }
@Override @Override
public int forEachJdbcValue(Object value, Clause clause, int offset, JdbcValuesConsumer valuesConsumer, SharedSessionContractImplementor session) { public int forEachJdbcValue(
Object value,
int offset,
JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) {
valuesConsumer.consume( offset, value, getJdbcMapping() ); valuesConsumer.consume( offset, value, getJdbcMapping() );
return getJdbcTypeCount(); return getJdbcTypeCount();
} }

View File

@ -420,7 +420,6 @@ public class AnonymousTupleEmbeddableValuedModelPart implements EmbeddableValued
@Override @Override
public int forEachDisassembledJdbcValue( public int forEachDisassembledJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
@ -428,7 +427,7 @@ public class AnonymousTupleEmbeddableValuedModelPart implements EmbeddableValued
int span = 0; int span = 0;
int i = 0; int i = 0;
for ( ModelPart mapping : modelParts.values() ) { for ( ModelPart mapping : modelParts.values() ) {
span += mapping.forEachDisassembledJdbcValue( values[i], clause, span + offset, valuesConsumer, session ); span += mapping.forEachDisassembledJdbcValue( values[i], span + offset, valuesConsumer, session );
i++; i++;
} }
return span; return span;
@ -437,7 +436,6 @@ public class AnonymousTupleEmbeddableValuedModelPart implements EmbeddableValued
@Override @Override
public int forEachJdbcValue( public int forEachJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer consumer, JdbcValuesConsumer consumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
@ -446,7 +444,7 @@ public class AnonymousTupleEmbeddableValuedModelPart implements EmbeddableValued
int i = 0; int i = 0;
for ( ModelPart attributeMapping : modelParts.values() ) { for ( ModelPart attributeMapping : modelParts.values() ) {
final Object o = values[i]; final Object o = values[i];
span += attributeMapping.forEachJdbcValue( o, clause, span + offset, consumer, session ); span += attributeMapping.forEachJdbcValue( o, span + offset, consumer, session );
i++; i++;
} }
return span; return span;

View File

@ -47,7 +47,6 @@ import org.hibernate.persister.entity.EntityPersister;
import org.hibernate.persister.entity.AttributeMappingsList; import org.hibernate.persister.entity.AttributeMappingsList;
import org.hibernate.query.sqm.ComparisonOperator; import org.hibernate.query.sqm.ComparisonOperator;
import org.hibernate.spi.NavigablePath; import org.hibernate.spi.NavigablePath;
import org.hibernate.sql.ast.Clause;
import org.hibernate.sql.ast.SqlAstJoinType; import org.hibernate.sql.ast.SqlAstJoinType;
import org.hibernate.sql.ast.spi.FromClauseAccess; import org.hibernate.sql.ast.spi.FromClauseAccess;
import org.hibernate.sql.ast.spi.SqlAliasBase; import org.hibernate.sql.ast.spi.SqlAliasBase;
@ -552,21 +551,19 @@ public class AnonymousTupleEntityValuedModelPart
@Override @Override
public int forEachDisassembledJdbcValue( public int forEachDisassembledJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
return delegate.forEachDisassembledJdbcValue( value, clause, offset, valuesConsumer, session ); return delegate.forEachDisassembledJdbcValue( value, offset, valuesConsumer, session );
} }
@Override @Override
public int forEachJdbcValue( public int forEachJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer consumer, JdbcValuesConsumer consumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
return delegate.forEachJdbcValue( value, clause, offset, consumer, session ); return delegate.forEachJdbcValue( value, offset, consumer, session );
} }
@Override @Override

View File

@ -40,7 +40,6 @@ import org.hibernate.query.sqm.SqmExpressible;
import org.hibernate.query.sqm.tree.domain.SqmPath; import org.hibernate.query.sqm.tree.domain.SqmPath;
import org.hibernate.query.sqm.tree.select.SqmSelectableNode; import org.hibernate.query.sqm.tree.select.SqmSelectableNode;
import org.hibernate.spi.NavigablePath; import org.hibernate.spi.NavigablePath;
import org.hibernate.sql.ast.Clause;
import org.hibernate.sql.ast.spi.FromClauseAccess; import org.hibernate.sql.ast.spi.FromClauseAccess;
import org.hibernate.sql.ast.spi.SqlSelection; import org.hibernate.sql.ast.spi.SqlSelection;
import org.hibernate.sql.ast.tree.from.LazyTableGroup; import org.hibernate.sql.ast.tree.from.LazyTableGroup;
@ -382,7 +381,6 @@ public class AnonymousTupleTableGroupProducer implements TableGroupProducer, Map
@Override @Override
public int forEachDisassembledJdbcValue( public int forEachDisassembledJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {

View File

@ -5040,7 +5040,6 @@ public abstract class BaseSqmToSqlAstConverter<T extends Statement> extends Base
final List<Expression> list = new ArrayList<>( embeddableValuedModelPart.getJdbcTypeCount() ); final List<Expression> list = new ArrayList<>( embeddableValuedModelPart.getJdbcTypeCount() );
embeddableValuedModelPart.forEachJdbcValue( embeddableValuedModelPart.forEachJdbcValue(
literal.getLiteralValue(), literal.getLiteralValue(),
null,
(selectionIndex, value, jdbcMapping) (selectionIndex, value, jdbcMapping)
-> list.add( new QueryLiteral<>( value, (BasicValuedMapping) jdbcMapping ) ), -> list.add( new QueryLiteral<>( value, (BasicValuedMapping) jdbcMapping ) ),
null null
@ -5088,7 +5087,6 @@ public abstract class BaseSqmToSqlAstConverter<T extends Statement> extends Base
final List<Expression> list = new ArrayList<>( associationKeyPart.getJdbcTypeCount() ); final List<Expression> list = new ArrayList<>( associationKeyPart.getJdbcTypeCount() );
associationKeyPart.forEachJdbcValue( associationKeyPart.forEachJdbcValue(
associationKey, associationKey,
null,
(selectionIndex, value, jdbcMapping) (selectionIndex, value, jdbcMapping)
-> list.add( new QueryLiteral<>( value, (BasicValuedMapping) jdbcMapping ) ), -> list.add( new QueryLiteral<>( value, (BasicValuedMapping) jdbcMapping ) ),
null null

View File

@ -16,7 +16,6 @@ import org.hibernate.persister.entity.DiscriminatorType;
import org.hibernate.persister.entity.EntityPersister; import org.hibernate.persister.entity.EntityPersister;
import org.hibernate.persister.entity.Queryable; import org.hibernate.persister.entity.Queryable;
import org.hibernate.query.sqm.sql.internal.DomainResultProducer; import org.hibernate.query.sqm.sql.internal.DomainResultProducer;
import org.hibernate.sql.ast.Clause;
import org.hibernate.sql.ast.SqlAstWalker; import org.hibernate.sql.ast.SqlAstWalker;
import org.hibernate.sql.ast.spi.SqlSelection; import org.hibernate.sql.ast.spi.SqlSelection;
import org.hibernate.sql.results.graph.DomainResult; import org.hibernate.sql.results.graph.DomainResult;
@ -73,21 +72,19 @@ public class EntityTypeLiteral
@Override @Override
public int forEachDisassembledJdbcValue( public int forEachDisassembledJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
return discriminatorType.forEachDisassembledJdbcValue( value, clause, offset, valuesConsumer, session ); return discriminatorType.forEachDisassembledJdbcValue( value, offset, valuesConsumer, session );
} }
@Override @Override
public int forEachJdbcValue( public int forEachJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
return discriminatorType.forEachJdbcValue( value, clause, offset, valuesConsumer, session ); return discriminatorType.forEachJdbcValue( value, offset, valuesConsumer, session );
} }

View File

@ -16,7 +16,6 @@ import org.hibernate.mapping.IndexedConsumer;
import org.hibernate.metamodel.mapping.JdbcMapping; import org.hibernate.metamodel.mapping.JdbcMapping;
import org.hibernate.metamodel.mapping.MappingModelExpressible; import org.hibernate.metamodel.mapping.MappingModelExpressible;
import org.hibernate.query.sqm.sql.internal.DomainResultProducer; import org.hibernate.query.sqm.sql.internal.DomainResultProducer;
import org.hibernate.sql.ast.Clause;
import org.hibernate.sql.ast.SqlAstWalker; import org.hibernate.sql.ast.SqlAstWalker;
import org.hibernate.sql.ast.spi.SqlAstCreationState; import org.hibernate.sql.ast.spi.SqlAstCreationState;
import org.hibernate.sql.ast.spi.SqlExpressionResolver; import org.hibernate.sql.ast.spi.SqlExpressionResolver;
@ -109,7 +108,6 @@ public class JdbcLiteral<T> implements Literal, MappingModelExpressible<T>, Doma
@Override @Override
public int forEachDisassembledJdbcValue( public int forEachDisassembledJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
@ -120,7 +118,6 @@ public class JdbcLiteral<T> implements Literal, MappingModelExpressible<T>, Doma
@Override @Override
public int forEachJdbcValue( public int forEachJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {

View File

@ -15,7 +15,6 @@ import org.hibernate.metamodel.mapping.JdbcMapping;
import org.hibernate.metamodel.mapping.MappingModelExpressible; import org.hibernate.metamodel.mapping.MappingModelExpressible;
import org.hibernate.metamodel.mapping.SqlExpressible; import org.hibernate.metamodel.mapping.SqlExpressible;
import org.hibernate.query.BindableType; import org.hibernate.query.BindableType;
import org.hibernate.sql.ast.Clause;
import org.hibernate.sql.ast.SqlAstWalker; import org.hibernate.sql.ast.SqlAstWalker;
import org.hibernate.sql.ast.spi.SqlSelection; import org.hibernate.sql.ast.spi.SqlSelection;
import org.hibernate.sql.ast.tree.expression.JdbcParameter; import org.hibernate.sql.ast.tree.expression.JdbcParameter;
@ -152,7 +151,6 @@ public abstract class AbstractJdbcParameter
@Override @Override
public int forEachDisassembledJdbcValue( public int forEachDisassembledJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
@ -163,7 +161,6 @@ public abstract class AbstractJdbcParameter
@Override @Override
public int forEachJdbcValue( public int forEachJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {

View File

@ -91,7 +91,6 @@ public interface JdbcParameterBindings {
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {
return bindable.forEachJdbcValue( return bindable.forEachJdbcValue(
value, value,
clause,
offset, offset,
(selectionIndex, jdbcValue, type) -> { (selectionIndex, jdbcValue, type) -> {
addBinding( addBinding(

View File

@ -18,12 +18,10 @@ import org.hibernate.metamodel.mapping.JdbcMapping;
import org.hibernate.metamodel.mapping.MappingType; import org.hibernate.metamodel.mapping.MappingType;
import org.hibernate.metamodel.model.convert.spi.BasicValueConverter; import org.hibernate.metamodel.model.convert.spi.BasicValueConverter;
import org.hibernate.metamodel.model.domain.BasicDomainType; import org.hibernate.metamodel.model.domain.BasicDomainType;
import org.hibernate.sql.ast.Clause;
import org.hibernate.type.descriptor.ValueBinder; import org.hibernate.type.descriptor.ValueBinder;
import org.hibernate.type.descriptor.ValueExtractor; import org.hibernate.type.descriptor.ValueExtractor;
import org.hibernate.type.descriptor.java.JavaType; import org.hibernate.type.descriptor.java.JavaType;
import org.hibernate.type.descriptor.jdbc.JdbcLiteralFormatter; import org.hibernate.type.descriptor.jdbc.JdbcLiteralFormatter;
import org.hibernate.type.descriptor.jdbc.JdbcType;
/** /**
* Marker interface for basic types. * Marker interface for basic types.
@ -114,7 +112,6 @@ public interface BasicType<T> extends Type, BasicDomainType<T>, MappingType, Bas
@Override @Override
default int forEachDisassembledJdbcValue( default int forEachDisassembledJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {

View File

@ -66,7 +66,6 @@ import org.hibernate.persister.spi.PersisterCreationContext;
import org.hibernate.query.sqm.mutation.spi.SqmMultiTableInsertStrategy; import org.hibernate.query.sqm.mutation.spi.SqmMultiTableInsertStrategy;
import org.hibernate.query.sqm.mutation.spi.SqmMultiTableMutationStrategy; import org.hibernate.query.sqm.mutation.spi.SqmMultiTableMutationStrategy;
import org.hibernate.spi.NavigablePath; import org.hibernate.spi.NavigablePath;
import org.hibernate.sql.ast.Clause;
import org.hibernate.sql.ast.spi.SqlAstCreationState; import org.hibernate.sql.ast.spi.SqlAstCreationState;
import org.hibernate.sql.ast.spi.SqlSelection; import org.hibernate.sql.ast.spi.SqlSelection;
import org.hibernate.sql.ast.tree.from.TableGroup; import org.hibernate.sql.ast.tree.from.TableGroup;
@ -197,7 +196,6 @@ public class GoofyPersisterClassProvider implements PersisterClassResolver {
@Override @Override
public int forEachDisassembledJdbcValue( public int forEachDisassembledJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {

View File

@ -64,7 +64,6 @@ import org.hibernate.persister.spi.PersisterCreationContext;
import org.hibernate.query.sqm.mutation.spi.SqmMultiTableInsertStrategy; import org.hibernate.query.sqm.mutation.spi.SqmMultiTableInsertStrategy;
import org.hibernate.query.sqm.mutation.spi.SqmMultiTableMutationStrategy; import org.hibernate.query.sqm.mutation.spi.SqmMultiTableMutationStrategy;
import org.hibernate.spi.NavigablePath; import org.hibernate.spi.NavigablePath;
import org.hibernate.sql.ast.Clause;
import org.hibernate.sql.ast.spi.SqlSelection; import org.hibernate.sql.ast.spi.SqlSelection;
import org.hibernate.sql.ast.tree.from.TableGroup; import org.hibernate.sql.ast.tree.from.TableGroup;
import org.hibernate.sql.results.graph.DomainResult; import org.hibernate.sql.results.graph.DomainResult;
@ -223,7 +222,6 @@ public class PersisterClassProviderTest {
@Override @Override
public int forEachDisassembledJdbcValue( public int forEachDisassembledJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {

View File

@ -61,7 +61,6 @@ import org.hibernate.persister.spi.PersisterCreationContext;
import org.hibernate.query.sqm.mutation.spi.SqmMultiTableInsertStrategy; import org.hibernate.query.sqm.mutation.spi.SqmMultiTableInsertStrategy;
import org.hibernate.query.sqm.mutation.spi.SqmMultiTableMutationStrategy; import org.hibernate.query.sqm.mutation.spi.SqmMultiTableMutationStrategy;
import org.hibernate.spi.NavigablePath; import org.hibernate.spi.NavigablePath;
import org.hibernate.sql.ast.Clause;
import org.hibernate.sql.ast.spi.SqlSelection; import org.hibernate.sql.ast.spi.SqlSelection;
import org.hibernate.sql.ast.tree.from.TableGroup; import org.hibernate.sql.ast.tree.from.TableGroup;
import org.hibernate.sql.results.graph.DomainResult; import org.hibernate.sql.results.graph.DomainResult;
@ -184,7 +183,6 @@ public class CustomPersister implements EntityPersister {
@Override @Override
public int forEachDisassembledJdbcValue( public int forEachDisassembledJdbcValue(
Object value, Object value,
Clause clause,
int offset, int offset,
JdbcValuesConsumer valuesConsumer, JdbcValuesConsumer valuesConsumer,
SharedSessionContractImplementor session) { SharedSessionContractImplementor session) {