org.castor.cpa.persistence.sql.driver
Class MySQLQueryExpression
java.lang.Object
org.castor.cpa.persistence.sql.driver.JDBCQueryExpression
org.castor.cpa.persistence.sql.driver.MySQLQueryExpression
- All Implemented Interfaces:
- QueryExpression
public final class MySQLQueryExpression
- extends JDBCQueryExpression
QueryExpression for MySQL.
- Version:
- $Revision: 7585 $ $Date: 2004-10-01 13:45:49 -0600 (Fri, 01 Oct 2004) $
- Author:
- Oleg Nitz
| Methods inherited from class org.castor.cpa.persistence.sql.driver.JDBCQueryExpression |
addColumn, addCondition, addInnerJoin, addLimitClause, addOffsetClause, addOrderClause, addOuterJoin, addParameter, addSelect, addTable, addWhereClause, addWhereClause, clone, encodeColumn, getColumnList, getStandardStatement, setDbMetaInfo, setDistinct, toString |
MySQLQueryExpression
public MySQLQueryExpression(PersistenceFactory factory)
getStatement
public 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
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 © 2010. All Rights Reserved.