ca.krasnay.sqlbuilder
Interface Predicate

All Known Subinterfaces:
ExistsPredicate
All Known Implementing Classes:
ExistsPredicateImpl

public interface Predicate

Component in the where clause of a SelectCreator, UpdateCreator, or DeleteCreator.

Author:
John Krasnay

Method Summary
 void init(AbstractSqlCreator creator)
          Initializes the predicate.
 String toSql()
          Returns an SQL expression representing the predicate.
 

Method Detail

init

void init(AbstractSqlCreator creator)
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.


toSql

String toSql()
Returns an SQL expression representing the predicate. Parameters may be included preceded by a colon.



Copyright © 2014. All rights reserved.