public class InsertStatement extends SQLStatement
Constructor and Description |
---|
InsertStatement(Table t,
ArrayList<Column> colList,
ArrayList<Object> valList)
Constructs an InsertStatement object involving the specified table,
list of columns (if any), and list of values.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Executes this SQL statement.
|
addColumn, addColumnVal, addTable, getColumn, getColumnVal, getTable, getWhere, getWhereColumn, numColumns, numColumnVals, numTables, numWhereColumns, toString
public InsertStatement(Table t, ArrayList<Column> colList, ArrayList<Object> valList)
t
- the table in which the values should be insertedcolList
- the list of columns for which values are specifiedvalList
- the list of values to be insertedpublic void execute() throws DatabaseException, DeadlockException
SQLStatement
execute
in class SQLStatement
DatabaseException
- if Berkeley DB encounters another problem
accessing an underlying database.DeadlockException
- if deadlock occurs while accessing
an underlying database.