org.apache.ojb.broker.accesslayer.sql
Class SqlDeleteByQuery

java.lang.Object
  extended byorg.apache.ojb.broker.accesslayer.sql.SqlQueryStatement
      extended byorg.apache.ojb.broker.accesslayer.sql.SqlDeleteByQuery
All Implemented Interfaces:
JoinSyntaxTypes, SqlStatement

public class SqlDeleteByQuery
extends SqlQueryStatement

Model a DELETE by Query Statement

Version:
$Id: SqlDeleteByQuery.java,v 1.12 2004/02/14 19:36:53 brj Exp $
Author:
Thomas Mahler

Nested Class Summary
 
Nested classes inherited from class org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement
SqlQueryStatement.AttributeInfo, SqlQueryStatement.Join, SqlQueryStatement.TableAlias
 
Field Summary
 
Fields inherited from class org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement
m_logger
 
Fields inherited from interface org.apache.ojb.broker.accesslayer.JoinSyntaxTypes
ORACLE_JOIN_SYNTAX, SQL92_JOIN_SYNTAX, SQL92_NOPAREN_JOIN_SYNTAX, SYBASE_JOIN_SYNTAX
 
Constructor Summary
SqlDeleteByQuery(Platform pf, ClassDescriptor cld, Query query, Logger logger)
          Constructor for SqlDeleteByQuery.
 
Method Summary
protected  java.lang.String getColName(SqlQueryStatement.TableAlias aTableAlias, SqlHelper.PathInfo aPathInfo, boolean translate)
          Answer the column name for alias and path info
if translate try to convert attribute name into column name otherwise use attribute name
if a FieldDescriptor is found for the attribute name the column name is taken from there prefixed with the alias (firstname -> A0.F_NAME).
 java.lang.String getStatement()
          Answer the SELECT by primary key Sql for the Statement
 
Methods inherited from class org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement
appendClause, appendColName, appendColName, appendColName, appendCriteria, appendGroupByClause, appendHavingClause, appendOrderByClause, appendSQLClause, appendTableWithJoins, appendWhereClause, buildSuperJoinTree, ensureColumns, getAttributeInfo, getBaseClassDescriptor, getFieldDescriptor, getJoinSyntaxType, getJoinTreeToCriteria, getLogger, getQuery, getRoot, getSearchClassDescriptor, getSearchTable, setRoot, splitCriteria
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlDeleteByQuery

public SqlDeleteByQuery(Platform pf,
                        ClassDescriptor cld,
                        Query query,
                        Logger logger)
Constructor for SqlDeleteByQuery.

Parameters:
cld -
Method Detail

getStatement

public java.lang.String getStatement()
Description copied from interface: SqlStatement
Answer the SELECT by primary key Sql for the Statement

See Also:
org.apache.ojb.broker.accesslayer.SqlStatement#getStatement()

getColName

protected java.lang.String getColName(SqlQueryStatement.TableAlias aTableAlias,
                                      SqlHelper.PathInfo aPathInfo,
                                      boolean translate)
Description copied from class: SqlQueryStatement
Answer the column name for alias and path info
if translate try to convert attribute name into column name otherwise use attribute name
if a FieldDescriptor is found for the attribute name the column name is taken from there prefixed with the alias (firstname -> A0.F_NAME).

Overrides:
getColName in class SqlQueryStatement
Parameters:
aTableAlias -
aPathInfo -
translate -
Returns:


Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14