HHH-15501 Remove clause parameter of Bindable forEachDisassembledJdbcValue and forEachJdbcValue
This commit is contained in:
parent
cacba9a205
commit
e61baab946
|
@ -189,7 +189,6 @@ public abstract class AbstractCompositeIdentifierMapping
|
|||
@Override
|
||||
public int forEachJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
|
@ -209,14 +208,13 @@ public abstract class AbstractCompositeIdentifierMapping
|
|||
);
|
||||
span += fkDescriptor.forEachJdbcValue(
|
||||
identifier,
|
||||
clause,
|
||||
span + offset,
|
||||
valuesConsumer,
|
||||
session
|
||||
);
|
||||
}
|
||||
else {
|
||||
span += attributeMapping.forEachJdbcValue( o, clause, span + offset, valuesConsumer, session );
|
||||
span += attributeMapping.forEachJdbcValue( o, span + offset, valuesConsumer, session );
|
||||
}
|
||||
}
|
||||
return span;
|
||||
|
|
|
@ -12,7 +12,6 @@ import java.util.List;
|
|||
import org.hibernate.Incubating;
|
||||
import org.hibernate.engine.spi.SharedSessionContractImplementor;
|
||||
import org.hibernate.mapping.IndexedConsumer;
|
||||
import org.hibernate.sql.ast.Clause;
|
||||
|
||||
/**
|
||||
* Contract for things at the domain mapping level that can be bound
|
||||
|
@ -116,15 +115,13 @@ public interface Bindable extends JdbcMappingContainer {
|
|||
*/
|
||||
default int forEachDisassembledJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
return forEachDisassembledJdbcValue( value, clause, 0, valuesConsumer, session );
|
||||
return forEachDisassembledJdbcValue( value, 0, valuesConsumer, session );
|
||||
}
|
||||
|
||||
int forEachDisassembledJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session);
|
||||
|
@ -137,19 +134,17 @@ public interface Bindable extends JdbcMappingContainer {
|
|||
*/
|
||||
default int forEachJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
return forEachJdbcValue( value, clause, 0, valuesConsumer, session );
|
||||
return forEachJdbcValue( value, 0, valuesConsumer, session );
|
||||
}
|
||||
|
||||
default int forEachJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
return forEachDisassembledJdbcValue( disassemble( value, session ), clause, offset, valuesConsumer, session );
|
||||
return forEachDisassembledJdbcValue( disassemble( value, session ), offset, valuesConsumer, session );
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -69,11 +69,10 @@ public interface EmbeddableValuedModelPart extends ValuedModelPart, Fetchable, F
|
|||
@Override
|
||||
default int forEachJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
return getEmbeddableTypeDescriptor().forEachJdbcValue( value, clause, offset, valuesConsumer, session );
|
||||
return getEmbeddableTypeDescriptor().forEachJdbcValue( value, offset, valuesConsumer, session );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -89,13 +88,11 @@ public interface EmbeddableValuedModelPart extends ValuedModelPart, Fetchable, F
|
|||
@Override
|
||||
default int forEachDisassembledJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
return getEmbeddableTypeDescriptor().forEachDisassembledJdbcValue(
|
||||
value,
|
||||
clause,
|
||||
offset,
|
||||
valuesConsumer,
|
||||
session
|
||||
|
|
|
@ -31,7 +31,6 @@ import org.hibernate.persister.entity.AttributeMappingsList;
|
|||
import org.hibernate.spi.NavigablePath;
|
||||
import org.hibernate.query.sqm.mutation.spi.SqmMultiTableInsertStrategy;
|
||||
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.SqlAliasBase;
|
||||
import org.hibernate.sql.ast.spi.SqlAstCreationContext;
|
||||
|
@ -171,7 +170,6 @@ public interface EntityMappingType
|
|||
@Override
|
||||
int forEachDisassembledJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session);
|
||||
|
@ -179,11 +177,10 @@ public interface EntityMappingType
|
|||
@Override
|
||||
default int forEachJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer consumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
return forEachDisassembledJdbcValue( disassemble( value, session ), clause, offset, consumer, session );
|
||||
return forEachDisassembledJdbcValue( disassemble( value, session ), offset, consumer, session );
|
||||
}
|
||||
|
||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
|
@ -12,7 +12,6 @@ import java.util.function.Consumer;
|
|||
import org.hibernate.engine.spi.SharedSessionContractImplementor;
|
||||
import org.hibernate.mapping.IndexedConsumer;
|
||||
import org.hibernate.spi.NavigablePath;
|
||||
import org.hibernate.sql.ast.Clause;
|
||||
import org.hibernate.sql.ast.spi.SqlSelection;
|
||||
import org.hibernate.sql.ast.tree.from.TableGroup;
|
||||
import org.hibernate.sql.results.graph.DomainResult;
|
||||
|
@ -101,20 +100,18 @@ public interface EntityValuedModelPart extends FetchableContainer {
|
|||
@Override
|
||||
default int forEachDisassembledJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
return getEntityMappingType().forEachDisassembledJdbcValue( value, clause, offset, valuesConsumer, session );
|
||||
return getEntityMappingType().forEachDisassembledJdbcValue( value, offset, valuesConsumer, session );
|
||||
}
|
||||
|
||||
@Override
|
||||
default int forEachJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer consumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
return getEntityMappingType().forEachJdbcValue( value, clause, offset, consumer, session );
|
||||
return getEntityMappingType().forEachJdbcValue( value, offset, consumer, session );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,7 +21,6 @@ import org.hibernate.metamodel.model.domain.NavigableRole;
|
|||
import org.hibernate.persister.entity.DiscriminatorType;
|
||||
import org.hibernate.persister.entity.EntityPersister;
|
||||
import org.hibernate.spi.NavigablePath;
|
||||
import org.hibernate.sql.ast.Clause;
|
||||
import org.hibernate.sql.ast.spi.SqlAstCreationState;
|
||||
import org.hibernate.sql.ast.spi.SqlExpressionResolver;
|
||||
import org.hibernate.sql.ast.spi.SqlSelection;
|
||||
|
@ -202,7 +201,6 @@ public abstract class AbstractDiscriminatorMapping implements EntityDiscriminato
|
|||
@Override
|
||||
public int forEachDisassembledJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
|
|
|
@ -25,7 +25,6 @@ import org.hibernate.metamodel.mapping.SelectableConsumer;
|
|||
import org.hibernate.metamodel.mapping.SelectableMapping;
|
||||
import org.hibernate.metamodel.model.domain.NavigableRole;
|
||||
import org.hibernate.spi.NavigablePath;
|
||||
import org.hibernate.sql.ast.Clause;
|
||||
import org.hibernate.sql.ast.spi.FromClauseAccess;
|
||||
import org.hibernate.sql.ast.spi.SqlAstCreationState;
|
||||
import org.hibernate.sql.ast.spi.SqlExpressionResolver;
|
||||
|
@ -210,7 +209,6 @@ public class AnyDiscriminatorPart implements BasicValuedModelPart, FetchOptions,
|
|||
@Override
|
||||
public int forEachDisassembledJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
|
|
|
@ -23,7 +23,6 @@ import org.hibernate.metamodel.mapping.MappingType;
|
|||
import org.hibernate.metamodel.mapping.SelectableConsumer;
|
||||
import org.hibernate.metamodel.model.domain.NavigableRole;
|
||||
import org.hibernate.spi.NavigablePath;
|
||||
import org.hibernate.sql.ast.Clause;
|
||||
import org.hibernate.sql.ast.spi.FromClauseAccess;
|
||||
import org.hibernate.sql.ast.spi.SqlExpressionResolver;
|
||||
import org.hibernate.sql.ast.spi.SqlSelection;
|
||||
|
@ -260,7 +259,6 @@ public class AnyKeyPart implements BasicValuedModelPart, FetchOptions {
|
|||
@Override
|
||||
public int forEachJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
|
@ -281,7 +279,6 @@ public class AnyKeyPart implements BasicValuedModelPart, FetchOptions {
|
|||
@Override
|
||||
public int forEachDisassembledJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
|
|
|
@ -11,7 +11,6 @@ import java.util.function.BiConsumer;
|
|||
import org.hibernate.engine.FetchStyle;
|
||||
import org.hibernate.engine.FetchTiming;
|
||||
import org.hibernate.engine.spi.SharedSessionContractImplementor;
|
||||
import org.hibernate.mapping.GeneratorCreator;
|
||||
import org.hibernate.mapping.IndexedConsumer;
|
||||
import org.hibernate.metamodel.mapping.AttributeMetadata;
|
||||
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.property.access.spi.PropertyAccess;
|
||||
import org.hibernate.spi.NavigablePath;
|
||||
import org.hibernate.sql.ast.Clause;
|
||||
import org.hibernate.sql.ast.spi.SqlAstCreationState;
|
||||
import org.hibernate.sql.ast.spi.SqlExpressionResolver;
|
||||
import org.hibernate.sql.ast.spi.SqlSelection;
|
||||
|
@ -378,7 +376,6 @@ public class BasicAttributeMapping
|
|||
@Override
|
||||
public int forEachDisassembledJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
|
|
|
@ -30,7 +30,6 @@ import org.hibernate.property.access.spi.PropertyAccess;
|
|||
import org.hibernate.proxy.HibernateProxy;
|
||||
import org.hibernate.proxy.LazyInitializer;
|
||||
import org.hibernate.spi.NavigablePath;
|
||||
import org.hibernate.sql.ast.Clause;
|
||||
import org.hibernate.sql.ast.spi.SqlAstCreationState;
|
||||
import org.hibernate.sql.ast.spi.SqlExpressionResolver;
|
||||
import org.hibernate.sql.ast.spi.SqlSelection;
|
||||
|
@ -372,11 +371,10 @@ public class BasicEntityIdentifierMappingImpl implements BasicEntityIdentifierMa
|
|||
@Override
|
||||
public int forEachDisassembledJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
return idType.forEachDisassembledJdbcValue( value, clause, offset, valuesConsumer, session );
|
||||
return idType.forEachDisassembledJdbcValue( value, offset, valuesConsumer, session );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -25,7 +25,6 @@ import org.hibernate.metamodel.model.domain.NavigableRole;
|
|||
import org.hibernate.persister.collection.CollectionPersister;
|
||||
import org.hibernate.spi.EntityIdentifierNavigablePath;
|
||||
import org.hibernate.spi.NavigablePath;
|
||||
import org.hibernate.sql.ast.Clause;
|
||||
import org.hibernate.sql.ast.spi.SqlExpressionResolver;
|
||||
import org.hibernate.sql.ast.spi.SqlSelection;
|
||||
import org.hibernate.sql.ast.tree.from.PluralTableGroup;
|
||||
|
@ -312,7 +311,6 @@ public class BasicValuedCollectionPart
|
|||
@Override
|
||||
public int forEachDisassembledJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
|
|
|
@ -21,7 +21,6 @@ import org.hibernate.metamodel.mapping.SelectableConsumer;
|
|||
import org.hibernate.metamodel.model.domain.NavigableRole;
|
||||
import org.hibernate.persister.collection.CollectionPersister;
|
||||
import org.hibernate.spi.NavigablePath;
|
||||
import org.hibernate.sql.ast.Clause;
|
||||
import org.hibernate.sql.ast.spi.FromClauseAccess;
|
||||
import org.hibernate.sql.ast.spi.SqlAstCreationContext;
|
||||
import org.hibernate.sql.ast.spi.SqlAstCreationState;
|
||||
|
@ -305,10 +304,9 @@ public class CollectionIdentifierDescriptorImpl implements CollectionIdentifierD
|
|||
@Override
|
||||
public int forEachDisassembledJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
return type.forEachDisassembledJdbcValue( value, clause, offset, valuesConsumer, session );
|
||||
return type.forEachDisassembledJdbcValue( value, offset, valuesConsumer, session );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -35,7 +35,6 @@ import org.hibernate.metamodel.mapping.SelectableConsumer;
|
|||
import org.hibernate.metamodel.mapping.SingularAttributeMapping;
|
||||
import org.hibernate.persister.entity.EntityPersister;
|
||||
import org.hibernate.spi.NavigablePath;
|
||||
import org.hibernate.sql.ast.Clause;
|
||||
import org.hibernate.sql.ast.spi.SqlSelection;
|
||||
import org.hibernate.sql.ast.tree.from.TableGroup;
|
||||
import org.hibernate.sql.results.graph.AssemblerCreationState;
|
||||
|
@ -381,7 +380,6 @@ public class CompoundNaturalIdMapping extends AbstractNaturalIdMapping implement
|
|||
@Override
|
||||
public int forEachDisassembledJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
|
@ -392,7 +390,7 @@ public class CompoundNaturalIdMapping extends AbstractNaturalIdMapping implement
|
|||
int span = 0;
|
||||
for ( int i = 0; i < attributes.size(); 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;
|
||||
}
|
||||
|
@ -400,7 +398,6 @@ public class CompoundNaturalIdMapping extends AbstractNaturalIdMapping implement
|
|||
@Override
|
||||
public int forEachJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
|
@ -412,7 +409,7 @@ public class CompoundNaturalIdMapping extends AbstractNaturalIdMapping implement
|
|||
int span = 0;
|
||||
for ( int i = 0; i < attributes.size(); 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;
|
||||
}
|
||||
|
|
|
@ -33,7 +33,6 @@ import org.hibernate.metamodel.mapping.SelectableMapping;
|
|||
import org.hibernate.metamodel.model.domain.NavigableRole;
|
||||
import org.hibernate.property.access.spi.PropertyAccess;
|
||||
import org.hibernate.spi.NavigablePath;
|
||||
import org.hibernate.sql.ast.Clause;
|
||||
import org.hibernate.sql.ast.SqlAstJoinType;
|
||||
import org.hibernate.sql.ast.spi.FromClauseAccess;
|
||||
import org.hibernate.sql.ast.spi.SqlAliasBaseGenerator;
|
||||
|
@ -265,7 +264,6 @@ public class DiscriminatedAssociationAttributeMapping
|
|||
@Override
|
||||
public int forEachDisassembledJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
|
|
|
@ -26,7 +26,6 @@ import org.hibernate.metamodel.mapping.SelectableMapping;
|
|||
import org.hibernate.metamodel.model.domain.NavigableRole;
|
||||
import org.hibernate.persister.collection.CollectionPersister;
|
||||
import org.hibernate.spi.NavigablePath;
|
||||
import org.hibernate.sql.ast.Clause;
|
||||
import org.hibernate.sql.ast.SqlAstJoinType;
|
||||
import org.hibernate.sql.ast.spi.FromClauseAccess;
|
||||
import org.hibernate.sql.ast.spi.SqlAliasBaseGenerator;
|
||||
|
@ -263,13 +262,11 @@ public class DiscriminatedCollectionPart implements DiscriminatedAssociationMode
|
|||
@Override
|
||||
public int forEachDisassembledJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
return discriminatorMapping.getDiscriminatorPart().forEachDisassembledJdbcValue(
|
||||
value,
|
||||
clause,
|
||||
offset,
|
||||
valuesConsumer,
|
||||
session
|
||||
|
|
|
@ -54,7 +54,6 @@ import org.hibernate.persister.entity.AttributeMappingsList;
|
|||
import org.hibernate.persister.internal.MutableAttributeMappingList;
|
||||
import org.hibernate.property.access.spi.PropertyAccess;
|
||||
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.TableGroupProducer;
|
||||
import org.hibernate.sql.results.graph.DomainResult;
|
||||
|
@ -750,7 +749,6 @@ public class EmbeddableMappingTypeImpl extends AbstractEmbeddableMapping impleme
|
|||
@Override
|
||||
public int forEachJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer consumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
|
@ -762,7 +760,7 @@ public class EmbeddableMappingTypeImpl extends AbstractEmbeddableMapping impleme
|
|||
continue;
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
@ -770,7 +768,6 @@ public class EmbeddableMappingTypeImpl extends AbstractEmbeddableMapping impleme
|
|||
@Override
|
||||
public int forEachDisassembledJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
|
@ -778,7 +775,7 @@ public class EmbeddableMappingTypeImpl extends AbstractEmbeddableMapping impleme
|
|||
int span = 0;
|
||||
for ( int i = 0; i < attributeMappings.size(); 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;
|
||||
}
|
||||
|
|
|
@ -29,7 +29,6 @@ import org.hibernate.metamodel.mapping.SelectableMappings;
|
|||
import org.hibernate.metamodel.model.domain.NavigableRole;
|
||||
import org.hibernate.query.sqm.ComparisonOperator;
|
||||
import org.hibernate.spi.NavigablePath;
|
||||
import org.hibernate.sql.ast.Clause;
|
||||
import org.hibernate.sql.ast.SqlAstJoinType;
|
||||
import org.hibernate.sql.ast.spi.SqlAstCreationContext;
|
||||
import org.hibernate.sql.ast.spi.SqlExpressionResolver;
|
||||
|
@ -589,11 +588,10 @@ public class EmbeddedForeignKeyDescriptor implements ForeignKeyDescriptor {
|
|||
@Override
|
||||
public int forEachDisassembledJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
return targetSide.getModelPart().forEachDisassembledJdbcValue( value, clause, offset, valuesConsumer, session );
|
||||
return targetSide.getModelPart().forEachDisassembledJdbcValue( value, offset, valuesConsumer, session );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -17,7 +17,6 @@ import org.hibernate.property.access.spi.PropertyAccess;
|
|||
import org.hibernate.proxy.HibernateProxy;
|
||||
import org.hibernate.proxy.LazyInitializer;
|
||||
import org.hibernate.spi.NavigablePath;
|
||||
import org.hibernate.sql.ast.Clause;
|
||||
import org.hibernate.sql.ast.spi.SqlSelection;
|
||||
import org.hibernate.sql.ast.tree.from.TableGroup;
|
||||
import org.hibernate.sql.results.graph.DomainResultCreationState;
|
||||
|
@ -147,13 +146,11 @@ public class EmbeddedIdentifierMappingImpl
|
|||
@Override
|
||||
public int forEachDisassembledJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
return getEmbeddableTypeDescriptor().forEachDisassembledJdbcValue(
|
||||
value,
|
||||
clause,
|
||||
offset,
|
||||
valuesConsumer,
|
||||
session
|
||||
|
|
|
@ -17,7 +17,6 @@ import org.hibernate.metamodel.mapping.JdbcMapping;
|
|||
import org.hibernate.metamodel.mapping.MappingType;
|
||||
import org.hibernate.metamodel.model.domain.NavigableRole;
|
||||
import org.hibernate.spi.NavigablePath;
|
||||
import org.hibernate.sql.ast.Clause;
|
||||
import org.hibernate.sql.ast.spi.SqlAstCreationState;
|
||||
import org.hibernate.sql.ast.spi.SqlExpressionResolver;
|
||||
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.type.BasicType;
|
||||
import org.hibernate.type.descriptor.java.JavaType;
|
||||
import org.hibernate.type.spi.TypeConfiguration;
|
||||
|
||||
/**
|
||||
* @author Nathan Xu
|
||||
|
@ -117,11 +115,10 @@ public class EntityRowIdMappingImpl implements EntityRowIdMapping {
|
|||
@Override
|
||||
public int forEachDisassembledJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
return rowIdType.forEachDisassembledJdbcValue( value, clause, offset, valuesConsumer, session );
|
||||
return rowIdType.forEachDisassembledJdbcValue( value, offset, valuesConsumer, session );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -23,7 +23,6 @@ import org.hibernate.metamodel.mapping.JdbcMapping;
|
|||
import org.hibernate.metamodel.mapping.MappingType;
|
||||
import org.hibernate.metamodel.model.domain.NavigableRole;
|
||||
import org.hibernate.spi.NavigablePath;
|
||||
import org.hibernate.sql.ast.Clause;
|
||||
import org.hibernate.sql.ast.spi.SqlAstCreationState;
|
||||
import org.hibernate.sql.ast.spi.SqlExpressionResolver;
|
||||
import org.hibernate.sql.ast.spi.SqlSelection;
|
||||
|
@ -316,11 +315,10 @@ public class EntityVersionMappingImpl implements EntityVersionMapping, FetchOpti
|
|||
@Override
|
||||
public int forEachDisassembledJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
return versionBasicType.forEachDisassembledJdbcValue( value, clause, offset, valuesConsumer, session );
|
||||
return versionBasicType.forEachDisassembledJdbcValue( value, offset, valuesConsumer, session );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -42,7 +42,6 @@ import org.hibernate.persister.internal.MutableAttributeMappingList;
|
|||
import org.hibernate.property.access.internal.PropertyAccessStrategyMapImpl;
|
||||
import org.hibernate.property.access.spi.PropertyAccess;
|
||||
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.TableGroupProducer;
|
||||
import org.hibernate.sql.results.graph.DomainResult;
|
||||
|
@ -405,7 +404,6 @@ public class IdClassEmbeddable extends AbstractEmbeddableMapping implements Iden
|
|||
@Override
|
||||
public int forEachJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
|
@ -417,7 +415,7 @@ public class IdClassEmbeddable extends AbstractEmbeddableMapping implements Iden
|
|||
continue;
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
@ -438,7 +436,6 @@ public class IdClassEmbeddable extends AbstractEmbeddableMapping implements Iden
|
|||
@Override
|
||||
public int forEachDisassembledJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
|
|
|
@ -136,11 +136,10 @@ public class InverseNonAggregatedIdentifierMapping extends EmbeddedAttributeMapp
|
|||
@Override
|
||||
public int forEachJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
return identifierValueMapper.forEachJdbcValue( value, clause, offset, valuesConsumer, session );
|
||||
return identifierValueMapper.forEachJdbcValue( value, offset, valuesConsumer, session );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -157,11 +157,10 @@ public class NonAggregatedIdentifierMappingImpl extends AbstractCompositeIdentif
|
|||
@Override
|
||||
public int forEachJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
return identifierValueMapper.forEachJdbcValue( value, clause, offset, valuesConsumer, session );
|
||||
return identifierValueMapper.forEachJdbcValue( value, offset, valuesConsumer, session );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -42,7 +42,6 @@ import org.hibernate.persister.collection.CollectionPersister;
|
|||
import org.hibernate.persister.entity.Joinable;
|
||||
import org.hibernate.property.access.spi.PropertyAccess;
|
||||
import org.hibernate.spi.NavigablePath;
|
||||
import org.hibernate.sql.ast.Clause;
|
||||
import org.hibernate.sql.ast.SqlAstJoinType;
|
||||
import org.hibernate.sql.ast.spi.FromClauseAccess;
|
||||
import org.hibernate.sql.ast.spi.SqlAliasBase;
|
||||
|
@ -936,11 +935,10 @@ public class PluralAttributeMappingImpl
|
|||
@Override
|
||||
public int forEachDisassembledJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
return elementDescriptor.forEachDisassembledJdbcValue( value, clause, offset, valuesConsumer, session );
|
||||
return elementDescriptor.forEachDisassembledJdbcValue( value, offset, valuesConsumer, session );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -34,7 +34,6 @@ import org.hibernate.proxy.HibernateProxy;
|
|||
import org.hibernate.proxy.LazyInitializer;
|
||||
import org.hibernate.query.sqm.ComparisonOperator;
|
||||
import org.hibernate.spi.NavigablePath;
|
||||
import org.hibernate.sql.ast.Clause;
|
||||
import org.hibernate.sql.ast.spi.SqlAstCreationContext;
|
||||
import org.hibernate.sql.ast.spi.SqlAstCreationState;
|
||||
import org.hibernate.sql.ast.spi.SqlExpressionResolver;
|
||||
|
@ -452,7 +451,6 @@ public class SimpleForeignKeyDescriptor implements ForeignKeyDescriptor, BasicVa
|
|||
@Override
|
||||
public int forEachDisassembledJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
|
@ -505,7 +503,6 @@ public class SimpleForeignKeyDescriptor implements ForeignKeyDescriptor, BasicVa
|
|||
@Override
|
||||
public int forEachJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
|
|
|
@ -27,7 +27,6 @@ import org.hibernate.metamodel.mapping.SelectableConsumer;
|
|||
import org.hibernate.metamodel.mapping.SingularAttributeMapping;
|
||||
import org.hibernate.persister.entity.EntityPersister;
|
||||
import org.hibernate.spi.NavigablePath;
|
||||
import org.hibernate.sql.ast.Clause;
|
||||
import org.hibernate.sql.ast.spi.SqlSelection;
|
||||
import org.hibernate.sql.ast.tree.from.TableGroup;
|
||||
import org.hibernate.sql.results.graph.DomainResult;
|
||||
|
@ -241,21 +240,19 @@ public class SimpleNaturalIdMapping extends AbstractNaturalIdMapping implements
|
|||
@Override
|
||||
public int forEachDisassembledJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
return attribute.forEachDisassembledJdbcValue( value, clause, offset, valuesConsumer, session );
|
||||
return attribute.forEachDisassembledJdbcValue( value, offset, valuesConsumer, session );
|
||||
}
|
||||
|
||||
@Override
|
||||
public int forEachJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
return attribute.forEachJdbcValue( value, clause, offset, valuesConsumer, session );
|
||||
return attribute.forEachJdbcValue( value, offset, valuesConsumer, session );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -58,7 +58,6 @@ import org.hibernate.property.access.spi.PropertyAccess;
|
|||
import org.hibernate.spi.EntityIdentifierNavigablePath;
|
||||
import org.hibernate.spi.NavigablePath;
|
||||
import org.hibernate.spi.TreatedNavigablePath;
|
||||
import org.hibernate.sql.ast.Clause;
|
||||
import org.hibernate.sql.ast.SqlAstJoinType;
|
||||
import org.hibernate.sql.ast.spi.FromClauseAccess;
|
||||
import org.hibernate.sql.ast.spi.SqlAliasBase;
|
||||
|
@ -2050,17 +2049,15 @@ public class ToOneAttributeMapping
|
|||
@Override
|
||||
public int forEachDisassembledJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
return foreignKeyDescriptor.forEachDisassembledJdbcValue( value, clause, offset, valuesConsumer, session );
|
||||
return foreignKeyDescriptor.forEachDisassembledJdbcValue( value, offset, valuesConsumer, session );
|
||||
}
|
||||
|
||||
@Override
|
||||
public int forEachJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer consumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
|
@ -2069,7 +2066,6 @@ public class ToOneAttributeMapping
|
|||
foreignKeyDescriptor.getAssociationKeyFromSide( value, sideNature.inverse(), session ),
|
||||
session
|
||||
),
|
||||
clause,
|
||||
offset,
|
||||
consumer,
|
||||
session
|
||||
|
|
|
@ -30,7 +30,6 @@ import org.hibernate.persister.entity.EntityPersister;
|
|||
import org.hibernate.persister.entity.AttributeMappingsList;
|
||||
import org.hibernate.persister.internal.MutableAttributeMappingList;
|
||||
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.TableGroupProducer;
|
||||
import org.hibernate.sql.results.graph.DomainResult;
|
||||
|
@ -297,7 +296,6 @@ public class VirtualIdEmbeddable extends AbstractEmbeddableMapping implements Id
|
|||
@Override
|
||||
public int forEachJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
|
@ -309,7 +307,7 @@ public class VirtualIdEmbeddable extends AbstractEmbeddableMapping implements Id
|
|||
continue;
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
@ -356,7 +354,6 @@ public class VirtualIdEmbeddable extends AbstractEmbeddableMapping implements Id
|
|||
@Override
|
||||
public int forEachDisassembledJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
|
@ -364,7 +361,7 @@ public class VirtualIdEmbeddable extends AbstractEmbeddableMapping implements Id
|
|||
int span = 0;
|
||||
for ( int i = 0; i < attributeMappings.size(); 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;
|
||||
}
|
||||
|
|
|
@ -18,7 +18,6 @@ import org.hibernate.metamodel.mapping.MappingModelExpressible;
|
|||
import org.hibernate.query.ReturnableType;
|
||||
import org.hibernate.metamodel.model.domain.TupleType;
|
||||
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.ObjectArrayJavaType;
|
||||
|
||||
|
@ -98,7 +97,6 @@ public class ArrayTupleType implements TupleType<Object[]>,
|
|||
@Override
|
||||
public int forEachDisassembledJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
|
|
|
@ -10,7 +10,6 @@ import org.hibernate.engine.spi.SharedSessionContractImplementor;
|
|||
import org.hibernate.mapping.IndexedConsumer;
|
||||
import org.hibernate.metamodel.mapping.JdbcMapping;
|
||||
import org.hibernate.metamodel.mapping.MappingModelExpressible;
|
||||
import org.hibernate.sql.ast.Clause;
|
||||
|
||||
/**
|
||||
* @author Christian Beikov
|
||||
|
@ -45,14 +44,13 @@ public class TupleMappingModelExpressible implements MappingModelExpressible {
|
|||
@Override
|
||||
public int forEachDisassembledJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
final Object[] values = (Object[]) value;
|
||||
int span = 0;
|
||||
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;
|
||||
}
|
||||
|
@ -60,7 +58,6 @@ public class TupleMappingModelExpressible implements MappingModelExpressible {
|
|||
@Override
|
||||
public int forEachJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
|
@ -69,7 +66,6 @@ public class TupleMappingModelExpressible implements MappingModelExpressible {
|
|||
for ( int i = 0; i < components.length; i++ ) {
|
||||
span += components[i].forEachDisassembledJdbcValue(
|
||||
components[i].disassemble( values[i], session ),
|
||||
clause,
|
||||
span + offset,
|
||||
valuesConsumer,
|
||||
session
|
||||
|
|
|
@ -224,7 +224,6 @@ import org.hibernate.sql.Delete;
|
|||
import org.hibernate.sql.SimpleSelect;
|
||||
import org.hibernate.sql.Template;
|
||||
import org.hibernate.sql.Update;
|
||||
import org.hibernate.sql.ast.Clause;
|
||||
import org.hibernate.sql.ast.spi.FromClauseAccess;
|
||||
import org.hibernate.sql.ast.spi.SimpleFromClauseAccessImpl;
|
||||
import org.hibernate.sql.ast.spi.SqlAliasBase;
|
||||
|
@ -5779,13 +5778,11 @@ public abstract class AbstractEntityPersister
|
|||
@Override
|
||||
public int forEachDisassembledJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
return getIdentifierMapping().forEachDisassembledJdbcValue(
|
||||
value,
|
||||
clause,
|
||||
offset,
|
||||
valuesConsumer,
|
||||
session
|
||||
|
@ -5795,7 +5792,6 @@ public abstract class AbstractEntityPersister
|
|||
@Override
|
||||
public int forEachJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer consumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
|
@ -5809,7 +5805,6 @@ public abstract class AbstractEntityPersister
|
|||
}
|
||||
return identifierMapping.forEachDisassembledJdbcValue(
|
||||
identifier,
|
||||
clause,
|
||||
offset,
|
||||
consumer,
|
||||
session
|
||||
|
|
|
@ -227,7 +227,6 @@ public class EntityTableMapping implements TableMapping {
|
|||
SharedSessionContractImplementor session) {
|
||||
identifierPart.forEachJdbcValue(
|
||||
domainValue,
|
||||
null,
|
||||
(selectionIndex, jdbcValue, jdbcMapping) -> valueConsumer.consume(
|
||||
jdbcValue,
|
||||
keyColumns.get( selectionIndex )
|
||||
|
|
|
@ -22,7 +22,6 @@ import org.hibernate.metamodel.mapping.SelectableConsumer;
|
|||
import org.hibernate.metamodel.model.domain.NavigableRole;
|
||||
import org.hibernate.query.sqm.SqmExpressible;
|
||||
import org.hibernate.spi.NavigablePath;
|
||||
import org.hibernate.sql.ast.Clause;
|
||||
import org.hibernate.sql.ast.spi.SqlAstCreationState;
|
||||
import org.hibernate.sql.ast.spi.SqlExpressionResolver;
|
||||
import org.hibernate.sql.ast.spi.SqlSelection;
|
||||
|
@ -265,7 +264,6 @@ public class AnonymousTupleBasicValuedModelPart implements ModelPart, MappingTyp
|
|||
@Override
|
||||
public int forEachDisassembledJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
|
@ -290,7 +288,11 @@ public class AnonymousTupleBasicValuedModelPart implements ModelPart, MappingTyp
|
|||
}
|
||||
|
||||
@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() );
|
||||
return getJdbcTypeCount();
|
||||
}
|
||||
|
|
|
@ -420,7 +420,6 @@ public class AnonymousTupleEmbeddableValuedModelPart implements EmbeddableValued
|
|||
@Override
|
||||
public int forEachDisassembledJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
|
@ -428,7 +427,7 @@ public class AnonymousTupleEmbeddableValuedModelPart implements EmbeddableValued
|
|||
int span = 0;
|
||||
int i = 0;
|
||||
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++;
|
||||
}
|
||||
return span;
|
||||
|
@ -437,7 +436,6 @@ public class AnonymousTupleEmbeddableValuedModelPart implements EmbeddableValued
|
|||
@Override
|
||||
public int forEachJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer consumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
|
@ -446,7 +444,7 @@ public class AnonymousTupleEmbeddableValuedModelPart implements EmbeddableValued
|
|||
int i = 0;
|
||||
for ( ModelPart attributeMapping : modelParts.values() ) {
|
||||
final Object o = values[i];
|
||||
span += attributeMapping.forEachJdbcValue( o, clause, span + offset, consumer, session );
|
||||
span += attributeMapping.forEachJdbcValue( o, span + offset, consumer, session );
|
||||
i++;
|
||||
}
|
||||
return span;
|
||||
|
|
|
@ -47,7 +47,6 @@ import org.hibernate.persister.entity.EntityPersister;
|
|||
import org.hibernate.persister.entity.AttributeMappingsList;
|
||||
import org.hibernate.query.sqm.ComparisonOperator;
|
||||
import org.hibernate.spi.NavigablePath;
|
||||
import org.hibernate.sql.ast.Clause;
|
||||
import org.hibernate.sql.ast.SqlAstJoinType;
|
||||
import org.hibernate.sql.ast.spi.FromClauseAccess;
|
||||
import org.hibernate.sql.ast.spi.SqlAliasBase;
|
||||
|
@ -552,21 +551,19 @@ public class AnonymousTupleEntityValuedModelPart
|
|||
@Override
|
||||
public int forEachDisassembledJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
return delegate.forEachDisassembledJdbcValue( value, clause, offset, valuesConsumer, session );
|
||||
return delegate.forEachDisassembledJdbcValue( value, offset, valuesConsumer, session );
|
||||
}
|
||||
|
||||
@Override
|
||||
public int forEachJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer consumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
return delegate.forEachJdbcValue( value, clause, offset, consumer, session );
|
||||
return delegate.forEachJdbcValue( value, offset, consumer, session );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -40,7 +40,6 @@ import org.hibernate.query.sqm.SqmExpressible;
|
|||
import org.hibernate.query.sqm.tree.domain.SqmPath;
|
||||
import org.hibernate.query.sqm.tree.select.SqmSelectableNode;
|
||||
import org.hibernate.spi.NavigablePath;
|
||||
import org.hibernate.sql.ast.Clause;
|
||||
import org.hibernate.sql.ast.spi.FromClauseAccess;
|
||||
import org.hibernate.sql.ast.spi.SqlSelection;
|
||||
import org.hibernate.sql.ast.tree.from.LazyTableGroup;
|
||||
|
@ -382,7 +381,6 @@ public class AnonymousTupleTableGroupProducer implements TableGroupProducer, Map
|
|||
@Override
|
||||
public int forEachDisassembledJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
|
|
|
@ -5040,7 +5040,6 @@ public abstract class BaseSqmToSqlAstConverter<T extends Statement> extends Base
|
|||
final List<Expression> list = new ArrayList<>( embeddableValuedModelPart.getJdbcTypeCount() );
|
||||
embeddableValuedModelPart.forEachJdbcValue(
|
||||
literal.getLiteralValue(),
|
||||
null,
|
||||
(selectionIndex, value, jdbcMapping)
|
||||
-> list.add( new QueryLiteral<>( value, (BasicValuedMapping) jdbcMapping ) ),
|
||||
null
|
||||
|
@ -5088,7 +5087,6 @@ public abstract class BaseSqmToSqlAstConverter<T extends Statement> extends Base
|
|||
final List<Expression> list = new ArrayList<>( associationKeyPart.getJdbcTypeCount() );
|
||||
associationKeyPart.forEachJdbcValue(
|
||||
associationKey,
|
||||
null,
|
||||
(selectionIndex, value, jdbcMapping)
|
||||
-> list.add( new QueryLiteral<>( value, (BasicValuedMapping) jdbcMapping ) ),
|
||||
null
|
||||
|
|
|
@ -16,7 +16,6 @@ import org.hibernate.persister.entity.DiscriminatorType;
|
|||
import org.hibernate.persister.entity.EntityPersister;
|
||||
import org.hibernate.persister.entity.Queryable;
|
||||
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.spi.SqlSelection;
|
||||
import org.hibernate.sql.results.graph.DomainResult;
|
||||
|
@ -73,21 +72,19 @@ public class EntityTypeLiteral
|
|||
@Override
|
||||
public int forEachDisassembledJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
return discriminatorType.forEachDisassembledJdbcValue( value, clause, offset, valuesConsumer, session );
|
||||
return discriminatorType.forEachDisassembledJdbcValue( value, offset, valuesConsumer, session );
|
||||
}
|
||||
|
||||
@Override
|
||||
public int forEachJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
return discriminatorType.forEachJdbcValue( value, clause, offset, valuesConsumer, session );
|
||||
return discriminatorType.forEachJdbcValue( value, offset, valuesConsumer, session );
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -16,7 +16,6 @@ import org.hibernate.mapping.IndexedConsumer;
|
|||
import org.hibernate.metamodel.mapping.JdbcMapping;
|
||||
import org.hibernate.metamodel.mapping.MappingModelExpressible;
|
||||
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.spi.SqlAstCreationState;
|
||||
import org.hibernate.sql.ast.spi.SqlExpressionResolver;
|
||||
|
@ -109,7 +108,6 @@ public class JdbcLiteral<T> implements Literal, MappingModelExpressible<T>, Doma
|
|||
@Override
|
||||
public int forEachDisassembledJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
|
@ -120,7 +118,6 @@ public class JdbcLiteral<T> implements Literal, MappingModelExpressible<T>, Doma
|
|||
@Override
|
||||
public int forEachJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
|
|
|
@ -15,7 +15,6 @@ import org.hibernate.metamodel.mapping.JdbcMapping;
|
|||
import org.hibernate.metamodel.mapping.MappingModelExpressible;
|
||||
import org.hibernate.metamodel.mapping.SqlExpressible;
|
||||
import org.hibernate.query.BindableType;
|
||||
import org.hibernate.sql.ast.Clause;
|
||||
import org.hibernate.sql.ast.SqlAstWalker;
|
||||
import org.hibernate.sql.ast.spi.SqlSelection;
|
||||
import org.hibernate.sql.ast.tree.expression.JdbcParameter;
|
||||
|
@ -152,7 +151,6 @@ public abstract class AbstractJdbcParameter
|
|||
@Override
|
||||
public int forEachDisassembledJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
|
@ -163,7 +161,6 @@ public abstract class AbstractJdbcParameter
|
|||
@Override
|
||||
public int forEachJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
|
|
|
@ -91,7 +91,6 @@ public interface JdbcParameterBindings {
|
|||
SharedSessionContractImplementor session) {
|
||||
return bindable.forEachJdbcValue(
|
||||
value,
|
||||
clause,
|
||||
offset,
|
||||
(selectionIndex, jdbcValue, type) -> {
|
||||
addBinding(
|
||||
|
|
|
@ -18,12 +18,10 @@ import org.hibernate.metamodel.mapping.JdbcMapping;
|
|||
import org.hibernate.metamodel.mapping.MappingType;
|
||||
import org.hibernate.metamodel.model.convert.spi.BasicValueConverter;
|
||||
import org.hibernate.metamodel.model.domain.BasicDomainType;
|
||||
import org.hibernate.sql.ast.Clause;
|
||||
import org.hibernate.type.descriptor.ValueBinder;
|
||||
import org.hibernate.type.descriptor.ValueExtractor;
|
||||
import org.hibernate.type.descriptor.java.JavaType;
|
||||
import org.hibernate.type.descriptor.jdbc.JdbcLiteralFormatter;
|
||||
import org.hibernate.type.descriptor.jdbc.JdbcType;
|
||||
|
||||
/**
|
||||
* Marker interface for basic types.
|
||||
|
@ -114,7 +112,6 @@ public interface BasicType<T> extends Type, BasicDomainType<T>, MappingType, Bas
|
|||
@Override
|
||||
default int forEachDisassembledJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
|
|
|
@ -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.SqmMultiTableMutationStrategy;
|
||||
import org.hibernate.spi.NavigablePath;
|
||||
import org.hibernate.sql.ast.Clause;
|
||||
import org.hibernate.sql.ast.spi.SqlAstCreationState;
|
||||
import org.hibernate.sql.ast.spi.SqlSelection;
|
||||
import org.hibernate.sql.ast.tree.from.TableGroup;
|
||||
|
@ -197,7 +196,6 @@ public class GoofyPersisterClassProvider implements PersisterClassResolver {
|
|||
@Override
|
||||
public int forEachDisassembledJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
|
|
|
@ -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.SqmMultiTableMutationStrategy;
|
||||
import org.hibernate.spi.NavigablePath;
|
||||
import org.hibernate.sql.ast.Clause;
|
||||
import org.hibernate.sql.ast.spi.SqlSelection;
|
||||
import org.hibernate.sql.ast.tree.from.TableGroup;
|
||||
import org.hibernate.sql.results.graph.DomainResult;
|
||||
|
@ -223,7 +222,6 @@ public class PersisterClassProviderTest {
|
|||
@Override
|
||||
public int forEachDisassembledJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
|
|
|
@ -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.SqmMultiTableMutationStrategy;
|
||||
import org.hibernate.spi.NavigablePath;
|
||||
import org.hibernate.sql.ast.Clause;
|
||||
import org.hibernate.sql.ast.spi.SqlSelection;
|
||||
import org.hibernate.sql.ast.tree.from.TableGroup;
|
||||
import org.hibernate.sql.results.graph.DomainResult;
|
||||
|
@ -184,7 +183,6 @@ public class CustomPersister implements EntityPersister {
|
|||
@Override
|
||||
public int forEachDisassembledJdbcValue(
|
||||
Object value,
|
||||
Clause clause,
|
||||
int offset,
|
||||
JdbcValuesConsumer valuesConsumer,
|
||||
SharedSessionContractImplementor session) {
|
||||
|
|
Loading…
Reference in New Issue