com.iplanet.jato.model.sql
Interface InsertQueryModel

All Superinterfaces:
ExecutingModel, InsertingModel, Model, ModifyingQueryModel, QueryModel, SQLModel
All Known Implementing Classes:
QueryModelBase

public interface InsertQueryModel
extends ModifyingQueryModel, InsertingModel

Specialization of QueryModel that supports INSERT SQL queries

Version:
JATO/1.2.2 $Id: InsertQueryModel.java,v 1.9 2002/03/16 03:26:32 todd Exp $

Method Summary
 int executeInsert(ModelExecutionContext context)
          Executes the model in inserting mode, using the provided execution context
 
Methods inherited from interface com.iplanet.jato.model.sql.ModifyingQueryModel
getNumAffectedRows
 
Methods inherited from interface com.iplanet.jato.model.sql.QueryModel
getFieldSchema
 
Methods inherited from interface com.iplanet.jato.model.sql.SQLModel
getDataSourceName
 
Methods inherited from interface com.iplanet.jato.model.ExecutingModel
execute
 
Methods inherited from interface com.iplanet.jato.model.Model
getName, getValue, getValues, setName, setValue, setValues
 
Methods inherited from interface com.iplanet.jato.model.InsertingModel
insert
 

Method Detail

executeInsert

public int executeInsert(ModelExecutionContext context)
                  throws java.sql.SQLException,
                         ModelControlException
Executes the model in inserting mode, using the provided execution context
Parameters:
context - The execution context to be used during the execution of this query. This parameter cannot be null or an java.lang.IllegalArgumentException will be thrown.
Returns:
The number of rows in the database affected by this query