public interface SpiUpdatePlan
A plan for executing bean updates for a given set of changed properties.
This is a cachable plan with the purpose of being being able to skip some phases of the update bean processing.
The plans are cached by the BeanDescriptors. invalid input: '<'/>
-
Method Summary
Modifier and TypeMethodDescriptionvoidbindSet(io.ebeaninternal.server.persist.dml.DmlHandler bind, EntityBean bean) Bind given the request and bean.io.ebeaninternal.server.persist.dmlbind.BindablegetSet()Return the set of bindable update properties.booleanReturn true if the set clause has no columns.key()Return the hash key for this plan.mode()Return the concurrency mode for this plan.sql()Return the update SQL statement.longReturn the time this plan was created.longReturn the time this plan was last used.
-
Method Details
-
isEmptySetClause
boolean isEmptySetClause()Return true if the set clause has no columns.Can occur when the only columns updated have a updatable=false in their deployment.
-
bindSet
void bindSet(io.ebeaninternal.server.persist.dml.DmlHandler bind, EntityBean bean) throws SQLException Bind given the request and bean. The bean could be the oldValues bean when binding a update or delete where clause with ALL concurrency mode.- Throws:
SQLException
-
timeCreated
long timeCreated()Return the time this plan was created. -
timeLastUsed
long timeLastUsed()Return the time this plan was last used. -
key
String key()Return the hash key for this plan. -
mode
ConcurrencyMode mode()Return the concurrency mode for this plan. -
sql
String sql()Return the update SQL statement. -
getSet
io.ebeaninternal.server.persist.dmlbind.Bindable getSet()Return the set of bindable update properties.
-