Package io.ebeaninternal.api
Interface SpiUpdatePlan
-
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. >
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
bindSet(DmlHandler bind, EntityBean bean)
Bind given the request and bean.String
getKey()
Return the hash key for this plan.ConcurrencyMode
getMode()
Return the concurrency mode for this plan.Bindable
getSet()
Return the set of bindable update properties.String
getSql()
Return the update SQL statement.long
getTimeCreated()
Return the time this plan was created.long
getTimeLastUsed()
Return the time this plan was last used.boolean
isEmptySetClause()
Return true if the set clause has no columns.
-
-
-
Method Detail
-
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(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
-
getTimeCreated
long getTimeCreated()
Return the time this plan was created.
-
getTimeLastUsed
long getTimeLastUsed()
Return the time this plan was last used.
-
getMode
ConcurrencyMode getMode()
Return the concurrency mode for this plan.
-
-