DmlBase.PathConditionID_UNDEFINED_MSG, lastBeanClass, OPTIMISTIC_LOCK_MSG, sets, values, VERSION_SET_MSGcachedAssociation, condition, db, discriminatorConditions, JOIN_PREFIX, joinBag, joins, lastFkAlias, lastJoin, parameters, path, PREFIX, rawSql, simpleJdbc, table, tableAlias| Constructor and Description |
|---|
Update(AbstractDb db,
Table table) |
| Modifier and Type | Method and Description |
|---|---|
int[] |
batch() |
void |
endBatch()
Closes batch freeing resources.
|
int |
execute() |
boolean |
execute(Object bean)
Sets all the columns of the table to matching bean property.
Version column is ignored if null. |
int[] |
flushBatch()
Sends the batched commands to the database.
|
RawSql |
getSql() |
Update |
set(Column<?> column) |
Update |
set(Column<?> col,
Function value) |
<C> Update |
set(Column<C> col,
C value) |
<C> Update |
set(Column<C> col,
Column<C> value) |
Update |
set(Object bean)
Sets all the columns of the table to matching bean property.
Version column is ignored. |
void |
submit(Object bean)
Sets all the columns of the table to matching bean property.
Version property must exist and must be non null, otherwise it will throw an OptimisticLockException. An OptimisticLockException is thrown if it fails to update. See also execute(Object). |
<C> Update |
with(Column<C> c,
C value) |
Update |
with(String name,
Object value) |
_set, batch, batchLimit, defineParameter, endBatch, execute, flushBatch, getBatchLimit, getPending, getValues, setFalse, setNull, sets, setTrue, valuesaddJoin, applyInclude, applyOn, applyWhere, callerName, connection, debug, debugSQL, debugTime, deepestCommonPath, driver, dumpParameters, getAliasForAssociation, getCondition, getDb, getJoins, getParameter, getParameters, getSimpleJdbc, getTable, getTableAlias, joinTo, nextRawIndex, replaceRaw, setParameter, setParameter, setTableAlias, wherepublic Update(AbstractDb db, Table table)
public Update set(Object bean)
bean - The bean to matchpublic int execute()
public int[] batch()
public int[] flushBatch()
endBatchendBatch()public void endBatch()
public void submit(Object bean)
execute(Object).bean - the bean to update. Cannot be null.public boolean execute(Object bean)
bean - the bean to update. Cannot be null.Copyright © 2019. All rights reserved.