| java.lang.Object org.openharmonise.commons.dsi.dml.AbstractDMLStatement
All known Subclasses: org.openharmonise.commons.dsi.dml.InsertStatement, org.openharmonise.commons.dsi.dml.DeleteStatement, org.openharmonise.commons.dsi.dml.SelectStatement,
AbstractDMLStatement | abstract public class AbstractDMLStatement (Code) | | Abstract class providing base to implementations of data manipulation language
statement implementations.
author: Michael Bell version: $Revision: 1.1 $ |
m_TableAliases | protected Vector m_TableAliases(Code) | | List of table aliases, indexes match with m_Tables .
|
m_Tables | protected Vector m_Tables(Code) | | List of tables which have alias names, indexes match with m_TableAliases .
|
m_bIsAliasListComplete | protected boolean m_bIsAliasListComplete(Code) | | Flag which indicates whether all column refs have checked for aliases.
|
AbstractDMLStatement | protected AbstractDMLStatement()(Code) | | Basic constructor.
|
addWhereCondition | public void addWhereCondition(ColumnRef colref, String sOperator, int val) throws DataStoreException(Code) | | Add a where condition to this statement.
Parameters: colref - the column ref the condition applies to Parameters: sOperator - the comparison operator to be used in the condition Parameters: val - the value to be used in the comparison of the condition throws: DataStoreException - if the condition can not be added |
addWhereCondition | public void addWhereCondition(ColumnRef colref, String sOperator, Object val) throws DataStoreException(Code) | | Add a where condition to this statement.
Parameters: colref - the column ref the condition applies to Parameters: sOperator - the comparison operator to be used in the condition Parameters: val - the value to be used in the comparison of the condition throws: DataStoreException - if the condition can not be added |
addWhereCondition | public void addWhereCondition(ColumnRef colref, String sOperator, List vals) throws DataStoreException(Code) | | Add a where condition to this statement.
Parameters: colref - the column ref the condition applies to Parameters: sOperator - the comparison operator to be used in the condition Parameters: vals - the list of values to be used in the comparison throws: DataStoreException - if the condition can not be added |
clear | public void clear()(Code) | | Clears all data in this statement
|
getTableAlias | public String getTableAlias(String sTable)(Code) | | Get table alias.
Parameters: sTable - the table name the alias for the given table name |
getTableName | public String getTableName(String sAlias)(Code) | | Get table name from alias.
Parameters: sAlias - the alias the table name |
getWhereConditions | public WhereConditionGroup getWhereConditions()(Code) | | Returns the where conditions for this statement
the where conditions for this statement |
hasWhereClause | public boolean hasWhereClause()(Code) | | Returns true if a where clause has been defined
true if a where clause has been defined |
hasWhereConditions | public boolean hasWhereConditions()(Code) | | Returns true if this statement has where conditions
true if this statement has where conditions |
isAlias | public boolean isAlias(String sAlias) throws DataStoreException(Code) | | Returns true if the given String is an alias
for this statement.
Parameters: sAlias - the alias true if the given alias is an alias in this statement throws: DataStoreException - if an error occurs while processing column refs for aliases |
setWhereConditionStringingOperator | public void setWhereConditionStringingOperator(String sOp) throws DataStoreException(Code) | | Sets the where condition stringing operator (AND/OR).
Parameters: sOp - the stringing operator throws: DataStoreException - if the stringing operator is invalid |
|
|