Module org.seasar.doma.core
Package org.seasar.doma.jdbc.query
Class AutoBatchUpdateQuery.AutoBatchPreUpdateContext<E>
java.lang.Object
org.seasar.doma.internal.jdbc.entity.AbstractEntityListenerContext<E>
org.seasar.doma.internal.jdbc.entity.AbstractPreUpdateContext<E>
org.seasar.doma.jdbc.query.AutoBatchUpdateQuery.AutoBatchPreUpdateContext<E>
- Type Parameters:
E- the entity type
- All Implemented Interfaces:
PreUpdateContext<E>
- Enclosing class:
- AutoBatchUpdateQuery<ENTITY>
protected static class AutoBatchUpdateQuery.AutoBatchPreUpdateContext<E>
extends AbstractPreUpdateContext<E>
A context class for pre-update processing in batch update operations.
This class provides context information for the pre-update phase of batch update operations.
-
Field Summary
Fields inherited from class org.seasar.doma.internal.jdbc.entity.AbstractEntityListenerContext
config, entityType, method, newEntity -
Constructor Summary
ConstructorsConstructorDescriptionAutoBatchPreUpdateContext(EntityType<E> entityType, Method method, Config config) Constructs a new instance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether the entity has been changed.booleanisPropertyChanged(String propertyName) Indicates whether the specified property has been changed.Methods inherited from class org.seasar.doma.internal.jdbc.entity.AbstractPreUpdateContext
validatePropertyDefinedMethods inherited from class org.seasar.doma.internal.jdbc.entity.AbstractEntityListenerContext
getConfig, getEntityType, getMethod, getNewEntity, isPropertyDefinedInternal, setNewEntityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.seasar.doma.jdbc.entity.PreUpdateContext
getConfig, getEntityType, getMethod, getNewEntity, getReturningProperties, setNewEntity
-
Constructor Details
-
AutoBatchPreUpdateContext
Constructs a new instance.- Parameters:
entityType- the entity typemethod- the methodconfig- the configuration
-
-
Method Details
-
isEntityChanged
public boolean isEntityChanged()Indicates whether the entity has been changed.This method always returns
truefor batch update operations.- Returns:
true- See Also:
-
isPropertyChanged
Indicates whether the specified property has been changed.This method always returns
truefor batch update operations.- Parameters:
propertyName- the property name- Returns:
true- Throws:
IllegalArgumentException- if the property is not defined in the entity- See Also:
-