Class BooleanOrStatement<P extends WhereStatement>

java.lang.Object
com.invirgance.convirgance.jdbc.sql.WhereStatement
com.invirgance.convirgance.jdbc.sql.BooleanOrStatement<P>
Type Parameters:
P - The parent WhereStatement type this returns to when done.
All Implemented Interfaces:
ComparisonStatement, SQLStatement

public class BooleanOrStatement<P extends WhereStatement> extends WhereStatement implements ComparisonStatement
Creates a logical OR grouping in SQL. This wraps conditions in parentheses and joins them with OR keywords.

 Table table = layout.getCurrentSchema().getTable("customer");
 
 SQLStatement query = table
     .select()
     .column(table.getColumn("name"))
     .where()
         .or() // BooleanOrStatement                             
             .equals(table.getColumn("type"), "fish")
             .equals(table.getColumn("type"), "crustacean")
         .end()
     .done();
 
Author:
jbanes