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 |
|---|
Insert(AbstractDb db,
Table table) |
| Modifier and Type | Method and Description |
|---|---|
protected Insert |
_set(Column<?> col,
Object value)
Sets the value by defining a parameter with the column alias
This values can be raw values or more elaborated values like
UPPER(t0.Column) or AUTO(t0.ID)
|
int[] |
batch() |
void |
endBatch() |
Map<Column<?>,Object> |
execute() |
int[] |
flushBatch() |
RawSql |
getSql() |
Insert |
retrieveKeys(boolean returnKey) |
Insert |
set(Column<?> col,
Function value) |
<C> Insert |
set(Column<C> col,
C value) |
Insert |
set(Object bean)
Loads sets all the columns of the table to matching bean property
|
Map<Column<?>,Object> |
submit(Object bean)
Insert a table row associated with the supplied bean.
This method takes in consideration the version column type, if exists. This is a fast way of creating an Insert but for multiple inserts it is not as efficient as values().execute(). |
<C> Insert |
with(Column<C> c,
C value) |
Insert |
with(String name,
Object value) |
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, where, where, wherepublic Insert(AbstractDb db, Table table)
public Insert retrieveKeys(boolean returnKey)
protected Insert _set(Column<?> col, Object value)
DmlCorepublic Insert set(Object bean)
bean - The bean to matchpublic int[] batch()
public int[] flushBatch()
public void endBatch()
public Map<Column<?>,Object> submit(Object bean)
bean - Copyright © 2019. All rights reserved.