public abstract class InsertIntoClause extends BaseAxionCommand
Constructor and Description |
---|
InsertIntoClause(DMLWhenClause when,
TableIdentifier tid,
java.util.List cols,
boolean useDefaultValues) |
InsertIntoClause(DMLWhenClause when,
TableIdentifier tid,
java.util.List cols,
java.util.List vals) |
Modifier and Type | Method and Description |
---|---|
protected void |
addRowToTable(Database db,
Row srcRow,
RowDecorator dec) |
protected void |
assertRules(Table source) |
protected void |
buildBindVariables() |
boolean |
execute(Database db)
Executes an SQL statement that may return multiple results.
|
AxionResultSet |
executeQuery(Database db)
Executes an SQL statement that returns a single read-only
ResultSet object such as a SELECT statement. |
int |
executeUpdate(Database db)
Executes an SQL that may add, delete or modify zero or more rows within the
database, such as an INSERT, UPDATE or DELETE statement.
|
protected int |
getColumnCount() |
java.util.Iterator |
getColumnIterator() |
int |
getProcessedRowCount() |
protected Table |
getTargetTable() |
TableIdentifier |
getTargetTableId() |
protected int |
getValueCount() |
java.util.Iterator |
getValueIterator() |
protected java.util.List |
getValues() |
DMLWhenClause |
getWhenClause() |
boolean |
insertMatchingRow(Database db,
RowDecorator dec,
Row srcRow) |
protected boolean |
isTargetTablePartOfSubQuery() |
protected RowDecorator |
makeRowDecorator() |
void |
preProcess(Database db) |
protected void |
resolve(Database db) |
assertNotReadOnly, attemptToConvertValue, bindAll, clearBindings, createResolveSelectableVisitor, executeQuery, getBindVariableIterator, getBindVariableIterator, getBindVariables, getBindVariableVisitor, getColIdentifierList, getCommitSize, getEffectedRowCount, getResultSet, getRowIterator, makeRowDecorator, populateDefaultValues, populateSequenceColumns, resolveGeneratedColumns, resolveGeneratedColumns, resolveSelectable, resolveSelectable, resolveSelectableList, resolveSelectableList, setBindVariableVisitor, setDeferAllConstraintIfRequired, setEffectedRowCount, setResultSet, updateGeneratedValues
public InsertIntoClause(DMLWhenClause when, TableIdentifier tid, java.util.List cols, java.util.List vals)
public InsertIntoClause(DMLWhenClause when, TableIdentifier tid, java.util.List cols, boolean useDefaultValues)
public boolean execute(Database db) throws AxionException
AxionCommand
ResultSet
s were generated,
false otherwiseAxionException
Statement.execute(java.lang.String)
,
PreparedStatement.execute()
public AxionResultSet executeQuery(Database db) throws AxionException
AxionCommand
ResultSet
object such as a SELECT statement.ResultSet
AxionException
Statement.executeQuery(java.lang.String)
,
PreparedStatement.executeQuery()
public int executeUpdate(Database db) throws AxionException
AxionCommand
AxionException
Statement.executeUpdate(java.lang.String)
,
PreparedStatement.executeUpdate()
public final java.util.Iterator getColumnIterator()
public final int getProcessedRowCount()
public TableIdentifier getTargetTableId()
public final java.util.Iterator getValueIterator()
public boolean insertMatchingRow(Database db, RowDecorator dec, Row srcRow) throws AxionException
AxionException
public void preProcess(Database db) throws AxionException
AxionException
protected void addRowToTable(Database db, Row srcRow, RowDecorator dec) throws AxionException
AxionException
protected void assertRules(Table source) throws AxionException
AxionException
protected void buildBindVariables()
buildBindVariables
in class BaseAxionCommand
protected final int getColumnCount()
protected final Table getTargetTable()
protected final int getValueCount()
protected final java.util.List getValues()
public final DMLWhenClause getWhenClause()
protected boolean isTargetTablePartOfSubQuery() throws AxionException
AxionException
protected void resolve(Database db) throws AxionException
AxionException
protected final RowDecorator makeRowDecorator()