com.caucho.db.sql
Class ExistsQuery

java.lang.Object
  extended by com.caucho.db.sql.Query
      extended by com.caucho.db.sql.SelectQuery
          extended by com.caucho.db.sql.ExistsQuery

public class ExistsQuery
extends SelectQuery


Field Summary
 
Fields inherited from class com.caucho.db.sql.Query
_whereExpr
 
Constructor Summary
protected ExistsQuery(Database db, java.lang.String sql)
           
 
Method Summary
 void execute(QueryContext queryCtx, DbTransaction xa)
          Executes the query.
 boolean exists(QueryContext context, DbTransaction xa)
          Executes the query.
 
Methods inherited from class com.caucho.db.sql.SelectQuery
bind, executeCursor, isSelect, nextCursor, setGroupResult, setLimit, toString
 
Methods inherited from class com.caucho.db.sql.Query
bind, freeRows, generateWhere, getDatabase, getDataFields, getFromItems, getParamExprs, getParent, getSubSelect, getWhereExprs, isGroup, isReadOnly, nextTuple, setDataFields, setFromItems, setFromItems, setGroup, setParams, setParent, setSubSelect, setWhereExpr, setWhereExprs, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExistsQuery

protected ExistsQuery(Database db,
                      java.lang.String sql)
               throws java.sql.SQLException
Throws:
java.sql.SQLException
Method Detail

exists

public boolean exists(QueryContext context,
                      DbTransaction xa)
               throws java.sql.SQLException
Executes the query.

Throws:
java.sql.SQLException

execute

public void execute(QueryContext queryCtx,
                    DbTransaction xa)
             throws java.sql.SQLException
Executes the query.

Overrides:
execute in class SelectQuery
Throws:
java.sql.SQLException