Top Description Inners Fields Constructors Methods
org.hibernate.persister.collection.mutation

public Class RowMutationOperations

extends Object
Class Inheritance
Imports
org.hibernate.collection.spi.PersistentCollection, org.hibernate.engine.jdbc.mutation.JdbcValueBindings, .ParameterUsage, org.hibernate.engine.spi.SharedSessionContractImplementor, org.hibernate.internal.util.NullnessHelper, org.hibernate.metamodel.mapping.ModelPart, org.hibernate.sql.model.MutationOperation, .TableMapping, org.hibernate.sql.model.ast.MutatingTableReference, org.hibernate.sql.model.jdbc.JdbcMutationOperation

Composition of the MutationOperation references for a collection mapping.

Implementation Specification

All collection operations are achieved through JdbcMutationOperation which is exposed here

Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
public static interface

Field Summary

Modifier and TypeField and Description
public static final ModelPart.JdbcValueBiConsumer<JdbcValueBindings, Object>
public static final ModelPart.JdbcValueBiConsumer<JdbcValueBindings, Object>
private JdbcMutationOperation
private final OperationProducer
private final RowMutationOperations.Restrictions
private JdbcMutationOperation
private final OperationProducer
private final RowMutationOperations.Values
private final CollectionMutationTarget
private JdbcMutationOperation
private final OperationProducer
private final RowMutationOperations.Restrictions
private final RowMutationOperations.Values

Constructor Summary

AccessConstructor and Description
public
RowMutationOperations(CollectionMutationTarget target, OperationProducer insertRowOperationProducer, RowMutationOperations.Values insertRowValues, OperationProducer updateRowOperationProducer, RowMutationOperations.Values updateRowValues, RowMutationOperations.Restrictions updateRowRestrictions, OperationProducer deleteRowOperationProducer, RowMutationOperations.Restrictions deleteRowRestrictions)

Method Summary

Modifier and TypeMethod and Description
public JdbcMutationOperation
public JdbcMutationOperation
public RowMutationOperations.Restrictions
public JdbcMutationOperation
public JdbcMutationOperation
public RowMutationOperations.Values
public JdbcMutationOperation
public RowMutationOperations.Restrictions
public RowMutationOperations.Values
public boolean
public boolean
public boolean
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

DEFAULT_RESTRICTORback to summary
public static final ModelPart.JdbcValueBiConsumer<JdbcValueBindings, Object> DEFAULT_RESTRICTOR
DEFAULT_VALUE_SETTERback to summary
public static final ModelPart.JdbcValueBiConsumer<JdbcValueBindings, Object> DEFAULT_VALUE_SETTER
deleteRowOperationback to summary
private JdbcMutationOperation deleteRowOperation
deleteRowOperationProducerback to summary
private final OperationProducer deleteRowOperationProducer
deleteRowRestrictionsback to summary
private final RowMutationOperations.Restrictions deleteRowRestrictions
insertRowOperationback to summary
private JdbcMutationOperation insertRowOperation
insertRowOperationProducerback to summary
private final OperationProducer insertRowOperationProducer
insertRowValuesback to summary
private final RowMutationOperations.Values insertRowValues
targetback to summary
private final CollectionMutationTarget target
updateRowOperationback to summary
private JdbcMutationOperation updateRowOperation
updateRowOperationProducerback to summary
private final OperationProducer updateRowOperationProducer
updateRowRestrictionsback to summary
private final RowMutationOperations.Restrictions updateRowRestrictions
updateRowValuesback to summary
private final RowMutationOperations.Values updateRowValues

Constructor Detail

RowMutationOperationsback to summary
public RowMutationOperations(CollectionMutationTarget target, OperationProducer insertRowOperationProducer, RowMutationOperations.Values insertRowValues, OperationProducer updateRowOperationProducer, RowMutationOperations.Values updateRowValues, RowMutationOperations.Restrictions updateRowRestrictions, OperationProducer deleteRowOperationProducer, RowMutationOperations.Restrictions deleteRowRestrictions)

Method Detail

getDeleteRowOperationback to summary
public JdbcMutationOperation getDeleteRowOperation()
getDeleteRowOperationback to summary
public JdbcMutationOperation getDeleteRowOperation(TableMapping tableMapping)
getDeleteRowRestrictionsback to summary
public RowMutationOperations.Restrictions getDeleteRowRestrictions()
getInsertRowOperationback to summary
public JdbcMutationOperation getInsertRowOperation()
getInsertRowOperationback to summary
public JdbcMutationOperation getInsertRowOperation(TableMapping tableMapping)
getInsertRowValuesback to summary
public RowMutationOperations.Values getInsertRowValues()
getUpdateRowOperationback to summary
public JdbcMutationOperation getUpdateRowOperation()
getUpdateRowRestrictionsback to summary
public RowMutationOperations.Restrictions getUpdateRowRestrictions()
getUpdateRowValuesback to summary
public RowMutationOperations.Values getUpdateRowValues()
hasDeleteRowback to summary
public boolean hasDeleteRow()
hasInsertRowback to summary
public boolean hasInsertRow()
hasUpdateRowback to summary
public boolean hasUpdateRow()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
org.hibernate.persister.collection.mutation back to summary

public Interface RowMutationOperations.Restrictions

Annotations
@FunctionalInterface

Method Summary

Modifier and TypeMethod and Description
public void
applyRestrictions(PersistentCollection<?> collection, Object key, Object rowValue, int rowPosition, SharedSessionContractImplementor session, JdbcValueBindings jdbcValueBindings)

Method Detail

applyRestrictionsback to summary
public void applyRestrictions(PersistentCollection<?> collection, Object key, Object rowValue, int rowPosition, SharedSessionContractImplementor session, JdbcValueBindings jdbcValueBindings)
org.hibernate.persister.collection.mutation back to summary

public Interface RowMutationOperations.Values

Annotations
@FunctionalInterface

Method Summary

Modifier and TypeMethod and Description
public void
applyValues(PersistentCollection<?> collection, Object key, Object rowValue, int rowPosition, SharedSessionContractImplementor session, JdbcValueBindings jdbcValueBindings)

Method Detail

applyValuesback to summary
public void applyValues(PersistentCollection<?> collection, Object key, Object rowValue, int rowPosition, SharedSessionContractImplementor session, JdbcValueBindings jdbcValueBindings)