| |
|
| java.lang.Object org.openharmonise.commons.dsi.dml.AbstractDMLStatement org.openharmonise.commons.dsi.dml.InsertStatement
All known Subclasses: org.openharmonise.commons.dsi.dml.UpdateStatement,
InsertStatement | public class InsertStatement extends AbstractDMLStatement (Code) | | A DML insert statement .
author: Michael Bell version: $Revision: 1.2 $ |
Field Summary | |
protected HashMap | m_ValuePairs Map of column references to values to be inserted. | protected String | m_sTable The name of the table to receive the inserted data. |
m_ValuePairs | protected HashMap m_ValuePairs(Code) | | Map of column references to values to be inserted.
|
m_sTable | protected String m_sTable(Code) | | The name of the table to receive the inserted data.
|
InsertStatement | public InsertStatement()(Code) | | Constructs insert statement
|
addColumnValue | public void addColumnValue(ColumnRef colref, int i) throws DataStoreException(Code) | | Adds a column reference and associated value to this statement.
Parameters: colref - reference to column Parameters: i - value to be inserted throws: DataStoreException - if column value pair are invalid |
addColumnValue | public void addColumnValue(ColumnRef colref, Object val) throws DataStoreException(Code) | | Adds a column reference and associated value to this statement.
Parameters: colref - reference to column Parameters: val - value to be inserted throws: DataStoreException - if column value pair are invalid |
clear | public void clear()(Code) | | |
getColumnValuePairs | public Map getColumnValuePairs()(Code) | | Returns a Map of column reference and value pairs
for inserting.
column reference and value pairs in a Map |
getColumnValuesSelect | public SelectStatement getColumnValuesSelect()(Code) | | Returns the select statement which determines the column value pairs.
the select statement which determines the column value pairs |
getTable | public String getTable()(Code) | | Returns the name of the table to insert data in.
the name of the table to insert data in |
isColumnValuesBySelect | public boolean isColumnValuesBySelect()(Code) | | Returns true if column value pairs set by select.
|
setColumnValuesBySelect | public void setColumnValuesBySelect(SelectStatement select)(Code) | | Sets the select statement which determines column value pairs.
Parameters: select - the select statement |
setTable | public void setTable(String sTable)(Code) | | Sets name of table to insert data into.
Parameters: sTable - name of table |
|
|
|