protected static class AutoUpdateQuery.AutoPreUpdateContext<E>
extends org.seasar.doma.internal.jdbc.entity.AbstractPreUpdateContext<E>
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Set<java.lang.String> |
changedPropertyNames |
| Constructor and Description |
|---|
AutoPreUpdateContext(EntityType<E> entityType,
java.lang.reflect.Method method,
Config config,
java.util.List<EntityPropertyType<E,?>> targetPropertyTypes) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEntityChanged()
Whether the entity is changed.
|
boolean |
isPropertyChanged(java.lang.String propertyName)
Whether the entity property is changed.
|
validatePropertyDefinedgetConfig, getEntityType, getMethod, getNewEntity, isPropertyDefinedInternal, setNewEntityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfig, getEntityType, getMethod, getNewEntity, setNewEntityprotected final java.util.Set<java.lang.String> changedPropertyNames
public AutoPreUpdateContext(EntityType<E> entityType, java.lang.reflect.Method method, Config config, java.util.List<EntityPropertyType<E,?>> targetPropertyTypes)
public boolean isEntityChanged()
PreUpdateContextThis method always returns true, when Update.sqlFile() returns true.
true if the entity is changedpublic boolean isPropertyChanged(java.lang.String propertyName)
PreUpdateContextThis method always returns true, when Update.sqlFile() returns true.
propertyName - the name of propertytrue if the property is changedOriginalStates