Insert
This class represents the statement INSERT
Methods
void
addAssignmentForDuplicate
(Column column, Expression expression)
Keep a collection of the columns to pass to update if a duplicate key happens, for MySQL-style INSERT ...
void
addAssignmentForDuplicate
(Column column, Expression expression)
Keep a collection of the columns to pass to update if a duplicate key happens, for MySQL-style INSERT ... ON DUPLICATE KEY UPDATE ....
Parameters:
column - the column
expression - the expression
void
addRow
(Expression[] expr)
Add a row to this merge statement.
void
addRow
(Expression[] expr)
Add a row to this merge statement.
Parameters:
expr - the list of values
void
addRow
(Value[] values)
void
addRow
(Value[] values)
String
getPlanSQL
()
String
getPlanSQL
()
int
getRowCount
()
int
getRowCount
()
int
getType
()
int
getType
()
boolean
isCacheable
()
boolean
isCacheable
()
boolean
isTransactional
()
boolean
isTransactional
()
void
prepare
()
void
prepare
()
ResultInterface
queryMeta
()
ResultInterface
queryMeta
()
void
setColumns
(Column[] columns)
void
setColumns
(Column[] columns)
void
setCommand
(Command command)
void
setCommand
(Command command)
void
setIgnore
(boolean ignore)
Sets MySQL-style INSERT IGNORE mode
void
setIgnore
(boolean ignore)
Sets MySQL-style INSERT IGNORE mode
Parameters:
ignore - ignore errors
void
setInsertFromSelect
(boolean value)
void
setInsertFromSelect
(boolean value)
void
setQuery
(Query query)
void
setQuery
(Query query)
void
setSortedInsertMode
(boolean sortedInsertMode)
void
setSortedInsertMode
(boolean sortedInsertMode)
void
setSourceTableFilter
(TableFilter sourceTableFilter)
void
setSourceTableFilter
(TableFilter sourceTableFilter)
void
setTable
(Table table)
void
setTable
(Table table)
int
update
()
int
update
()