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, updateGeneratedValuespublic 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
AxionCommandResultSets were generated,
false otherwiseAxionExceptionStatement.execute(java.lang.String),
PreparedStatement.execute()public AxionResultSet executeQuery(Database db) throws AxionException
AxionCommandResultSet object such as a SELECT statement.ResultSetAxionExceptionStatement.executeQuery(java.lang.String),
PreparedStatement.executeQuery()public int executeUpdate(Database db) throws AxionException
AxionCommandAxionExceptionStatement.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
AxionExceptionpublic void preProcess(Database db) throws AxionException
AxionExceptionprotected void addRowToTable(Database db, Row srcRow, RowDecorator dec) throws AxionException
AxionExceptionprotected void assertRules(Table source) throws AxionException
AxionExceptionprotected void buildBindVariables()
buildBindVariables in class BaseAxionCommandprotected 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
AxionExceptionprotected void resolve(Database db) throws AxionException
AxionExceptionprotected final RowDecorator makeRowDecorator()