simpledb.parse
Class InsertData

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

public class InsertData
extends Object

Data for the SQL insert statement.

Author:
Edward Sciore

Constructor Summary
InsertData(String tblname, List<String> flds, List<Constant> vals)
          Saves the table name and the field and value lists.
 
Method Summary
 List<String> fields()
          Returns a list of fields for which values will be specified in the new record.
 String tableName()
          Returns the name of the affected table.
 List<Constant> vals()
          Returns a list of values for the specified fields.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InsertData

public InsertData(String tblname,
                  List<String> flds,
                  List<Constant> vals)
Saves the table name and the field and value lists.

Method Detail

tableName

public String tableName()
Returns the name of the affected table.

Returns:
the name of the affected table

fields

public List<String> fields()
Returns a list of fields for which values will be specified in the new record.

Returns:
a list of field names

vals

public List<Constant> vals()
Returns a list of values for the specified fields. There is a one-one correspondence between this list of values and the list of fields.

Returns:
a list of Constant values.


Copyright © 2011. All Rights Reserved.