org.exolab.castor.jdo.drivers

Class HsqlQueryExpression

Implemented Interfaces:
QueryExpression

public final class HsqlQueryExpression
extends JDBCQueryExpression

QueryExpression for MySQL.
Version:
$Revision: 7116 $ $Date: 2005-07-05 07:25:41 -0600 (Tue, 05 Jul 2005) $
Author:
Oleg Nitz

Nested Class Summary

Nested classes/interfaces inherited from class org.exolab.castor.jdo.drivers.JDBCQueryExpression

JDBCQueryExpression.Join

Field Summary

Fields inherited from class org.exolab.castor.jdo.drivers.JDBCQueryExpression

_dbInfo, _distinct, _factory, _joins, _limit, _offset, _order, _select, _tables

Fields inherited from interface org.exolab.castor.persist.spi.QueryExpression

OP_BETWEEN, OP_BETWEEN_AND, OP_EQUALS, OP_GREATER, OP_GREATER_EQUALS, OP_LESS, OP_LESS_EQUALS, OP_LIKE, OP_NOT_EQUALS, OP_NOT_LIKE

Constructor Summary

HsqlQueryExpression(PersistenceFactory factory)

Method Summary

protected StringBuffer
getStandardStatement(boolean lock, boolean oj)
Helper method.
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

addColumn, addCondition, addInnerJoin, addInnerJoin, addInnerJoin, addInnerJoin, addLimitClause, addOffsetClause, addOrderClause, addOuterJoin, addOuterJoin, addOuterJoin, addOuterJoin, addParameter, addSelect, addTable, addTable, addWhereClause, addWhereClause, clone, encodeColumn, getColumnList, getStandardStatement, getStatement, isLimitClauseSupported, isOffsetClauseSupported, setDbMetaInfo, setDistinct, toString

Constructor Details

HsqlQueryExpression

public HsqlQueryExpression(PersistenceFactory factory)

Method Details

getStandardStatement

protected StringBuffer getStandardStatement(boolean lock,
                                            boolean oj)
Helper method. Can be used in two cases: 1) for JDBC drivers which support "{oj ...OUTER JOIN ...}" notation (in accordance with JDBC specification); 2) for the databases which support "... OUTER JOIN ..." notation (in accordance with SQL-92 standard); .
Overrides:
getStandardStatement in interface JDBCQueryExpression
Parameters:
lock - whether to lock selected tables
oj - true in the first case above, false in the second case.

getStatement

public String getStatement(boolean lock)
Specified by:
getStatement in interface QueryExpression
Overrides:
getStatement in interface JDBCQueryExpression

isLimitClauseSupported

public boolean isLimitClauseSupported()
Provides an implementation of QueryExpression.isLimitClauseSupported().
Specified by:
isLimitClauseSupported in interface QueryExpression
Overrides:
isLimitClauseSupported in interface JDBCQueryExpression
Returns:
true to indicate that this feature is supported by mySQL.

isOffsetClauseSupported

public boolean isOffsetClauseSupported()
Provides an implementation of QueryExpression.isOffsetClauseSupported().
Specified by:
isOffsetClauseSupported in interface QueryExpression
Overrides:
isOffsetClauseSupported in interface JDBCQueryExpression
Returns:
true to indicate that this feature is supported by mySQL.

Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com