org.exolab.castor.jdo.drivers
Class SybaseQueryExpression

java.lang.Object
  extended by org.exolab.castor.jdo.drivers.JDBCQueryExpression
      extended by org.exolab.castor.jdo.drivers.SybaseQueryExpression
All Implemented Interfaces:
QueryExpression

public final class SybaseQueryExpression
extends JDBCQueryExpression

QueryExpression for Sybase Adaptive Servers.

Version:
$Revision: 1.3 $ $Date: 2004/10/01 13:24:58 $
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
_cols, _conds, _dbInfo, _distinct, _factory, _joins, _limit, _offset, _order, _select, _tables, _where
 
Fields inherited from interface org.exolab.castor.persist.spi.QueryExpression
OpBetween, OpBetweenAnd, OpEquals, OpGreater, OpGreaterEquals, OpLess, OpLessEquals, OpLike, OpNotEquals, OpNotLike
 
Constructor Summary
SybaseQueryExpression(PersistenceFactory factory)
           
 
Method Summary
 void addInnerJoin(java.lang.String leftTable, java.lang.String leftColumn, java.lang.String leftTableAlias, java.lang.String rightTable, java.lang.String rightColumn, java.lang.String rightTableAlias)
          Add an inner join with an aliases for the tables
 java.lang.String getStatement(boolean lock)
          Creates a SQL statement.
 
Methods inherited from class org.exolab.castor.jdo.drivers.JDBCQueryExpression
addColumn, addCondition, 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

SybaseQueryExpression

public SybaseQueryExpression(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 .

Specified by:
getStatement in interface QueryExpression
Overrides:
getStatement in class JDBCQueryExpression
Parameters:
lock - True if a write lock is required
Returns:
The SQL statement

addInnerJoin

public void addInnerJoin(java.lang.String leftTable,
                         java.lang.String leftColumn,
                         java.lang.String leftTableAlias,
                         java.lang.String rightTable,
                         java.lang.String rightColumn,
                         java.lang.String rightTableAlias)
Description copied from interface: QueryExpression
Add an inner join with an aliases for the tables

Specified by:
addInnerJoin in interface QueryExpression
Overrides:
addInnerJoin in class JDBCQueryExpression
Parameters:
leftTable - The table name on the left side
leftColumn - The column name on the left side
leftTableAlias - The alias name to use for the table on the left side
rightTable - The table name on the right side
rightColumn - The column name on the right side
rightTableAlias - The alias name to use for the table on the right side


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