|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.axiondb.engine.commands.BaseAxionCommand
org.axiondb.engine.commands.InsertIntoClause
public abstract class InsertIntoClause
An INSERT INTO Clause.
Constructor Summary | |
---|---|
InsertIntoClause(DMLWhenClause when,
TableIdentifier tid,
List cols,
boolean useDefaultValues)
|
|
InsertIntoClause(DMLWhenClause when,
TableIdentifier tid,
List cols,
List vals)
|
Method Summary | |
---|---|
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()
|
Iterator |
getColumnIterator()
|
int |
getProcessedRowCount()
|
protected Table |
getTargetTable()
|
TableIdentifier |
getTargetTableId()
|
protected int |
getValueCount()
|
Iterator |
getValueIterator()
|
protected 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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InsertIntoClause(DMLWhenClause when, TableIdentifier tid, List cols, List vals)
public InsertIntoClause(DMLWhenClause when, TableIdentifier tid, List cols, boolean useDefaultValues)
Method Detail |
---|
public boolean execute(Database db) throws AxionException
AxionCommand
ResultSet
s were generated,
false otherwise
AxionException
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 Iterator getColumnIterator()
public final int getProcessedRowCount()
public TableIdentifier getTargetTableId()
public final 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 List getValues()
public final DMLWhenClause getWhenClause()
protected boolean isTargetTablePartOfSubQuery() throws AxionException
AxionException
protected void resolve(Database db) throws AxionException
AxionException
protected final RowDecorator makeRowDecorator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |