|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.jdo.drivers.JDBCQueryExpression
org.exolab.castor.jdo.drivers.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.
Nested Class Summary | |
(package private) class |
HsqlQueryExpression.HsqlAliasInfo
This class encapsulates the information of the aliases related to sql outer joins. |
Nested classes inherited from class org.exolab.castor.jdo.drivers.JDBCQueryExpression |
JDBCQueryExpression.Join |
Field Summary |
Fields inherited from class org.exolab.castor.jdo.drivers.JDBCQueryExpression |
_cols, _conds, _dbInfo, _distinct, _factory, _joins, _limit, _offset, _order, _select, _tables, _where |
Fields inherited from interface org.exolab.castor.persist.spi.QueryExpression |
OpBetween, OpBetweenAnd, OpEquals, OpGreater, OpGreaterEquals, OpLess, OpLessEquals, OpLike, OpNotEquals, OpNotLike |
Constructor Summary | |
HsqlQueryExpression(PersistenceFactory factory)
Public constructor |
Method Summary | |
void |
addColumn(java.lang.String tableName,
java.lang.String columnName)
Redefinition of JDBCQueryExpression.addColumn() method. |
void |
addCondition(java.lang.String tableName,
java.lang.String columnName,
java.lang.String condOp,
java.lang.String value)
Redefinition of JDBCQueryExpression.addCondition() method. |
protected boolean |
addWhereClause(java.lang.StringBuffer buffer,
HsqlQueryExpression.HsqlAliasInfo aliasInfo,
boolean first)
This method adds the where clause taking into account possible aliases for columns |
java.lang.String |
getStatement(boolean lock)
Creates a SQL statement. |
boolean |
isLimitClauseSupported()
Provides an implementation of QueryExpression.isLimitClauseSupported() . |
boolean |
isOffsetClauseSupported()
Provides an implementation of QueryExpression.isOffsetClauseSupported() . |
Methods inherited from class org.exolab.castor.jdo.drivers.JDBCQueryExpression |
addInnerJoin, addInnerJoin, addInnerJoin, addInnerJoin, addLimitClause, addOffsetClause, addOrderClause, addOuterJoin, addOuterJoin, addOuterJoin, addOuterJoin, addParameter, addSelect, addTable, addTable, addWhereClause, addWhereClause, clone, encodeColumn, getColumnList, getStandardStatement, setDbMetaInfo, setDistinct, toString |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public HsqlQueryExpression(PersistenceFactory factory)
Method Detail |
public final void addColumn(java.lang.String tableName, java.lang.String columnName)
addColumn
in interface QueryExpression
addColumn
in class JDBCQueryExpression
public void addCondition(java.lang.String tableName, java.lang.String columnName, java.lang.String condOp, java.lang.String value)
addCondition
in interface QueryExpression
addCondition
in class JDBCQueryExpression
public java.lang.String getStatement(boolean lock)
JDBCQueryExpression
getStatement
in interface QueryExpression
getStatement
in class JDBCQueryExpression
protected boolean addWhereClause(java.lang.StringBuffer buffer, HsqlQueryExpression.HsqlAliasInfo aliasInfo, boolean first)
buffer
- The buffer being appendedaliasInfo
- The information of the aliases to be substituted for
some tablespublic boolean isLimitClauseSupported()
QueryExpression.isLimitClauseSupported()
.
isLimitClauseSupported
in interface QueryExpression
isLimitClauseSupported
in class JDBCQueryExpression
QueryExpression.isLimitClauseSupported()
public boolean isOffsetClauseSupported()
QueryExpression.isOffsetClauseSupported()
.
isOffsetClauseSupported
in interface QueryExpression
isOffsetClauseSupported
in class JDBCQueryExpression
QueryExpression.isOffsetClauseSupported()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |