ca.krasnay.sqlbuilder
Class ExistsPredicateImpl

java.lang.Object
  extended by ca.krasnay.sqlbuilder.ExistsPredicateImpl
All Implemented Interfaces:
ExistsPredicate, Predicate

public class ExistsPredicateImpl
extends Object
implements ExistsPredicate


Constructor Summary
ExistsPredicateImpl(String table)
           
 
Method Summary
 ExistsPredicate and(Predicate predicate)
           
 ExistsPredicate and(String predicate)
           
 void init(AbstractSqlCreator creator)
          Initializes the predicate.
 ExistsPredicate join(String join)
           
 String toSql()
          Returns an SQL expression representing the predicate.
 ExistsPredicate where(Predicate predicate)
           
 ExistsPredicate where(String predicate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExistsPredicateImpl

public ExistsPredicateImpl(String table)
Method Detail

and

public ExistsPredicate and(Predicate predicate)
Specified by:
and in interface ExistsPredicate

and

public ExistsPredicate and(String predicate)
Specified by:
and in interface ExistsPredicate

init

public void init(AbstractSqlCreator creator)
Description copied from interface: Predicate
Initializes the predicate. For example, this may allocate one or more parameters from the creator and set values for the parameters. This is called by the creator when the predicate is added to it.

Specified by:
init in interface Predicate

join

public ExistsPredicate join(String join)
Specified by:
join in interface ExistsPredicate

toSql

public String toSql()
Description copied from interface: Predicate
Returns an SQL expression representing the predicate. Parameters may be included preceded by a colon.

Specified by:
toSql in interface Predicate

where

public ExistsPredicate where(Predicate predicate)
Specified by:
where in interface ExistsPredicate

where

public ExistsPredicate where(String predicate)
Specified by:
where in interface ExistsPredicate


Copyright © 2014. All rights reserved.