Module org.seasar.doma.core
Package org.seasar.doma.jdbc.query
Class SqlFileUpdateQuery.SqlFilePostUpdateContext<E>
java.lang.Object
org.seasar.doma.internal.jdbc.entity.AbstractEntityListenerContext<E>
org.seasar.doma.internal.jdbc.entity.AbstractPostUpdateContext<E>
org.seasar.doma.jdbc.query.SqlFileUpdateQuery.SqlFilePostUpdateContext<E>
- Type Parameters:
E- the entity type
- All Implemented Interfaces:
PostUpdateContext<E>
- Enclosing class:
- SqlFileUpdateQuery
protected static class SqlFileUpdateQuery.SqlFilePostUpdateContext<E>
extends AbstractPostUpdateContext<E>
A context for post-update entity lifecycle callbacks.
-
Field Summary
Fields inherited from class org.seasar.doma.internal.jdbc.entity.AbstractEntityListenerContext
config, entityType, method, newEntity -
Constructor Summary
ConstructorsConstructorDescriptionSqlFilePostUpdateContext(EntityType<E> entityType, Method method, Config config) Constructs a new instance with the specified entity information. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisPropertyChanged(String propertyName) Determines whether a specific property of the entity has been changed.Methods inherited from class org.seasar.doma.internal.jdbc.entity.AbstractPostUpdateContext
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.PostUpdateContext
getConfig, getEntityType, getMethod, getNewEntity, getReturningProperties, setNewEntity
-
Constructor Details
-
SqlFilePostUpdateContext
Constructs a new instance with the specified entity information.- Parameters:
entityType- the entity typemethod- the methodconfig- the configuration
-
-
Method Details
-
isPropertyChanged
Determines whether a specific property of the entity has been changed.This method checks if the specified property has been modified by comparing its current value with the original value stored in the
OriginalStatesfield.This method always returns
truewhenUpdate.sqlFile()returnstrue, as SQL file-based updates do not perform change detection.This implementation always returns
truebecause SQL file-based updates always consider properties changed.- Parameters:
propertyName- the name of the property to check- Returns:
trueif the property has been changed,falseotherwise- See Also:
-