org.apache.ojb.broker.accesslayer.sql
Class SqlDeleteByQuery
java.lang.Object
org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement
org.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.1 2007-08-24 22:17:39 ewestfal Exp $
- Author:
- Thomas Mahler
|
Method Summary |
protected String |
buildStatement()
Build the SQL String. |
protected String |
getColName(org.apache.ojb.broker.accesslayer.sql.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). |
| Methods inherited from class org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement |
appendClause, appendColName, appendColName, appendColName, appendCriteria, appendGroupByClause, appendHavingClause, appendOrderByClause, appendSQLClause, appendTableWithJoins, appendWhereClause, buildSuperJoinTree, ensureColumns, ensureColumns, getAttributeInfo, getBaseClassDescriptor, getFieldDescriptor, getJoinSyntaxType, getJoinTreeToCriteria, getLogger, getQuery, getRoot, getSearchClassDescriptor, getSearchTable, getStatement, getTableAliasForClassDescriptor, setRoot, splitCriteria |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SqlDeleteByQuery
public SqlDeleteByQuery(Platform pf,
ClassDescriptor cld,
Query query,
Logger logger)
- Constructor for SqlDeleteByQuery.
- Parameters:
cld -
buildStatement
protected String buildStatement()
- Description copied from class:
SqlQueryStatement
- Build the SQL String.
- Specified by:
buildStatement in class SqlQueryStatement
- Returns:
- SQL String
- See Also:
SqlQueryStatement.buildStatement()
getColName
protected String getColName(org.apache.ojb.broker.accesslayer.sql.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
Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.