org.castor.cpa.persistence.sql.driver
Class DerbyQueryExpression

java.lang.Object
  extended by org.castor.cpa.persistence.sql.driver.JDBCQueryExpression
      extended by org.castor.cpa.persistence.sql.driver.DerbyQueryExpression
All Implemented Interfaces:
QueryExpression

public final class DerbyQueryExpression
extends JDBCQueryExpression

QueryExpression for DB2.

Version:
$Revision: 7585 $ $Date$
Author:
Assaf Arkin

Field Summary
 
Fields inherited from class org.castor.cpa.persistence.sql.driver.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
DerbyQueryExpression(PersistenceFactory factory)
           
 
Method Summary
 java.lang.String getStatement(boolean lock)
          Creates a SQL statement.
 
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, getStandardStatement, isLimitClauseSupported, isOffsetClauseSupported, setDbMetaInfo, setDistinct, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DerbyQueryExpression

public DerbyQueryExpression(PersistenceFactory factory)
Method Detail

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


Copyright © 2011. All Rights Reserved.