simpledb.parse
Class QueryData

java.lang.Object
  extended by simpledb.parse.QueryData

public class QueryData
extends Object

Data for the SQL select statement.

Author:
Edward Sciore

Constructor Summary
QueryData(Collection<String> fields, Collection<String> tables, Predicate pred)
          Saves the field and table list and predicate.
 
Method Summary
 Collection<String> fields()
          Returns the fields mentioned in the select clause.
 Predicate pred()
          Returns the predicate that describes which records should be in the output table.
 Collection<String> tables()
          Returns the tables mentioned in the from clause.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QueryData

public QueryData(Collection<String> fields,
                 Collection<String> tables,
                 Predicate pred)
Saves the field and table list and predicate.

Method Detail

fields

public Collection<String> fields()
Returns the fields mentioned in the select clause.

Returns:
a collection of field names

tables

public Collection<String> tables()
Returns the tables mentioned in the from clause.

Returns:
a collection of table names

pred

public Predicate pred()
Returns the predicate that describes which records should be in the output table.

Returns:
the query predicate

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.