public class UpdatePlan extends Object implements SpiUpdatePlan
| Modifier and Type | Field and Description |
|---|---|
static UpdatePlan |
EMPTY_SET_CLAUSE
Special plan used when there is nothing in the set clause and the update
should in fact be skipped.
|
| Constructor and Description |
|---|
UpdatePlan(ConcurrencyMode mode,
String sql,
Bindable set)
Create a non cachable UpdatePlan.
|
UpdatePlan(Integer key,
ConcurrencyMode mode,
String sql,
Bindable set,
Set<String> properties)
Create a cachable UpdatePlan with a given key.
|
| Modifier and Type | Method and Description |
|---|---|
void |
bindSet(DmlHandler bind,
Object bean)
Run the prepared statement binding for the 'update set' properties.
|
Integer |
getKey()
Return the hash key.
|
ConcurrencyMode |
getMode()
Return the concurrency mode for this plan.
|
Set<String> |
getProperties()
Return the set of changed properties.
|
Bindable |
getSet()
Return the Bindable properties for the update set.
|
String |
getSql()
Return the DML 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.
|
public static final UpdatePlan EMPTY_SET_CLAUSE
public UpdatePlan(ConcurrencyMode mode, String sql, Bindable set)
public boolean isEmptySetClause()
SpiUpdatePlanCan occur when the only columns updated have a updatable=false in their deployment.
isEmptySetClause in interface SpiUpdatePlanpublic void bindSet(DmlHandler bind, Object bean) throws SQLException
bindSet in interface SpiUpdatePlanSQLExceptionpublic long getTimeCreated()
getTimeCreated in interface SpiUpdatePlanpublic Long getTimeLastUsed()
getTimeLastUsed in interface SpiUpdatePlanpublic Integer getKey()
getKey in interface SpiUpdatePlanpublic ConcurrencyMode getMode()
getMode in interface SpiUpdatePlanpublic String getSql()
getSql in interface SpiUpdatePlanpublic Bindable getSet()
getSet in interface SpiUpdatePlanpublic Set<String> getProperties()
This can return null when all properties in the set are being bound in the update statement.
getProperties in interface SpiUpdatePlanCopyright © 2014. All Rights Reserved.