use of org.dbflute.bhv.writable.UpdateOption in project dbflute-core by dbflute.
the class AbstractBehaviorWritable method setupCommonColumnOfUpdateIfNeeds.
/**
* Set up common columns of update if it needs.
* @param entity The entity for update. (NotNull)
* @param option The optional option of update. (NotNull, EmptyAllowed: when no option)
*/
protected void setupCommonColumnOfUpdateIfNeeds(Entity entity, OptionalThing<UpdateOption<? extends ConditionBean>> option) {
if (option.filter(op -> op.isCommonColumnAutoSetupDisabled()).isPresent()) {
return;
}
final CommonColumnAutoSetupper setupper = getCommonColumnAutoSetupper();
assertCommonColumnAutoSetupperNotNull();
setupper.handleCommonColumnOfUpdateIfNeeds(entity);
}
Aggregations