Class SapDbQueryExpression
java.lang.Object
org.castor.cpa.persistence.sql.driver.JDBCQueryExpression
org.castor.cpa.persistence.sql.driver.SapDbQueryExpression
- All Implemented Interfaces:
QueryExpression
QueryExpression for SAP DB.
- Version:
- $Revision: 8465 $ $Date: 2004-10-01 07:25:46 -0600 (Fri, 01 Oct 2004) $
- Author:
- Oleg Nitz
-
Nested Class Summary
Nested classes/interfaces inherited from class org.castor.cpa.persistence.sql.driver.JDBCQueryExpression
JDBCQueryExpression.Join
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetStatement
(boolean lock) Creates a SQL statement.boolean
Indicates that SapDB supports an OQL LIMIT clause.boolean
Indicates that SapDB supports an OQL OFFSET clause for versions >= 7.6.0.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
-
Constructor Details
-
SapDbQueryExpression
-
-
Method Details
-
getStatement
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 aSyntaxNotSupportedException
.- Specified by:
getStatement
in interfaceQueryExpression
- Overrides:
getStatement
in classJDBCQueryExpression
- Parameters:
lock
- True if a write lock is required- Returns:
- The SQL statement
-
isLimitClauseSupported
public boolean isLimitClauseSupported()Indicates that SapDB supports an OQL LIMIT clause.- Specified by:
isLimitClauseSupported
in interfaceQueryExpression
- Overrides:
isLimitClauseSupported
in classJDBCQueryExpression
- Returns:
- true to indicate that SapDB supports an OQL LIMIT clause.
- See Also:
-
isOffsetClauseSupported
public boolean isOffsetClauseSupported()Indicates that SapDB supports an OQL OFFSET clause for versions >= 7.6.0.- Specified by:
isOffsetClauseSupported
in interfaceQueryExpression
- Overrides:
isOffsetClauseSupported
in classJDBCQueryExpression
- Returns:
- true to indicate that SapDB supports an OQL OFFSET clause.
- See Also:
-