org.castor.cpa.persistence.sql.driver
Class HsqlQueryExpression
java.lang.Object
org.castor.cpa.persistence.sql.driver.JDBCQueryExpression
org.castor.cpa.persistence.sql.driver.HsqlQueryExpression
- All Implemented Interfaces:
- QueryExpression
public final class HsqlQueryExpression
- extends JDBCQueryExpression
QueryExpression for MySQL.
- Version:
- $Revision: 7585 $ $Date: 2005-07-05 07:25:41 -0600 (Tue, 05 Jul 2005) $
- Author:
- Oleg Nitz
Method Summary |
protected java.lang.StringBuffer |
getStandardStatement(boolean lock,
boolean oj)
Helper method. |
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.castor.cpa.persistence.sql.driver.JDBCQueryExpression |
addColumn, addCondition, addInnerJoin, addInnerJoin, addInnerJoin, addInnerJoin, addLimitClause, addOffsetClause, addOrderClause, addOuterJoin, addOuterJoin, addOuterJoin, addOuterJoin, addParameter, addSelect, addTable, addTable, addWhereClause, addWhereClause, clone, encodeColumn, getColumnList, setDbMetaInfo, setDistinct, toString |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
HsqlQueryExpression
public HsqlQueryExpression(PersistenceFactory factory)
getStatement
public java.lang.String getStatement(boolean lock)
- Description copied from class:
JDBCQueryExpression
- Creates a SQL statement.
In general, for a RDBMS/JDBC driver with a full support of the SQL standard/JDBC
specification, this will return a valid SQL statement. For some features,
a particular RDBMS might indicate that it does not support this feature by
throwing a
SyntaxNotSupportedException
.
- Specified by:
getStatement
in interface QueryExpression
- Overrides:
getStatement
in class JDBCQueryExpression
- Parameters:
lock
- True if a write lock is required
- Returns:
- The SQL statement
getStandardStatement
protected java.lang.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 class JDBCQueryExpression
- Parameters:
lock
- whether to lock selected tablesoj
- true in the first case above, false in the second case.
isLimitClauseSupported
public boolean isLimitClauseSupported()
- Provides an implementation of
QueryExpression#isLimitClauseSupported()
.
- Specified by:
isLimitClauseSupported
in interface QueryExpression
- Overrides:
isLimitClauseSupported
in class JDBCQueryExpression
- Returns:
- true to indicate that this feature is supported by mySQL.
- See Also:
QueryExpression.isLimitClauseSupported()
isOffsetClauseSupported
public boolean isOffsetClauseSupported()
- Provides an implementation of
QueryExpression#isOffsetClauseSupported()
.
- Specified by:
isOffsetClauseSupported
in interface QueryExpression
- Overrides:
isOffsetClauseSupported
in class JDBCQueryExpression
- Returns:
- true to indicate that this feature is supported by mySQL.
- See Also:
QueryExpression.isOffsetClauseSupported()
Copyright © 2011. All Rights Reserved.