org.exolab.castor.jdo.drivers
Class HsqlQueryExpression
- QueryExpression
public final class HsqlQueryExpression
QueryExpression for HypersonicSQL.
This implementation was created mainly to allow the use of multiple outer
joins during HSQL query expression creation. The syntax provided by
the generic driver does not work with HSQL so this class was needed.
void | addColumn(String tableName, String columnName) - Redefinition of JDBCQueryExpression.addColumn() method.
|
void | addCondition(String tableName, String columnName, String condOp, String value) - Redefinition of JDBCQueryExpression.addCondition() method.
|
protected boolean | addWhereClause(StringBuffer buffer, HsqlQueryExpression.HsqlAliasInfo aliasInfo, boolean first) - This method adds the where clause taking into account possible aliases
for columns
|
String | getStatement(boolean lock) - This should work for JDBC drivers with a full support of JDBC specification.
|
addColumn , addCondition , addInnerJoin , addInnerJoin , addInnerJoin , addInnerJoin , addLimitClause , addOrderClause , addOuterJoin , addOuterJoin , addOuterJoin , addOuterJoin , addParameter , addSelect , addTable , addTable , addWhereClause , addWhereClause , clone , encodeColumn , getColumnList , getStandardStatement , getStatement , setDistinct , toString |
HsqlQueryExpression
public HsqlQueryExpression(PersistenceFactory factory)
Public constructor
addColumn
public final void addColumn(String tableName,
String columnName)
Redefinition of JDBCQueryExpression.addColumn() method. This is needed
because aliases are sometimes needed during the creation of HSQL
expressions involving multiple outer joins. The original implementation
does not allows this.
- addColumn in interface QueryExpression
- addColumn in interface JDBCQueryExpression
addCondition
public void addCondition(String tableName,
String columnName,
String condOp,
String value)
Redefinition of JDBCQueryExpression.addCondition() method. This is needed
because aliases are sometimes needed during the creation of HSQL
expressions involving multiple outer joins. The original implementation
does not allows this.
- addCondition in interface QueryExpression
- addCondition in interface JDBCQueryExpression
addWhereClause
protected boolean addWhereClause(StringBuffer buffer,
HsqlQueryExpression.HsqlAliasInfo aliasInfo,
boolean first)
This method adds the where clause taking into account possible aliases
for columns
buffer
- The buffer being appendedaliasInfo
- The information of the aliases to be substituted for
some tables
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com