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

java.lang.Object
  extended by org.apache.ojb.broker.accesslayer.sql.SqlPkStatement
      extended by org.apache.ojb.broker.accesslayer.sql.SqlExistStatement
All Implemented Interfaces:
SqlStatement

public class SqlExistStatement
extends SqlPkStatement

Generate a select to check existence of an object. Something like "SELECT id_1 FROM myTable where id_1 = 123 and id_2 = 'kjngzt'".

Version:
$Id: SqlExistStatement.java,v 1.1 2007-08-24 22:17:39 ewestfal Exp $
Author:
Armin Waibel

Field Summary
private static String FROM
           
private static String SELECT
           
private  String sql
           
 
Constructor Summary
SqlExistStatement(ClassDescriptor aCld, Logger aLogger)
           
 
Method Summary
 String getStatement()
          Return SELECT clause for object existence call
 
Methods inherited from class org.apache.ojb.broker.accesslayer.sql.SqlPkStatement
appendTable, appendWhereClause, appendWhereClause, getClassDescriptor, getLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SELECT

private static final String SELECT
See Also:
Constant Field Values

FROM

private static final String FROM
See Also:
Constant Field Values

sql

private String sql
Constructor Detail

SqlExistStatement

public SqlExistStatement(ClassDescriptor aCld,
                         Logger aLogger)
Method Detail

getStatement

public String getStatement()
Return SELECT clause for object existence call



Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.