info.informatica.data.sql
Class InsertStatement

java.lang.Object
  extended by info.informatica.data.sql.SQLStatement
      extended by info.informatica.data.sql.SQLDataStatement
          extended by info.informatica.data.sql.InsertStatement
All Implemented Interfaces:
Serializable

public class InsertStatement
extends SQLDataStatement
implements Serializable

Insert statement.

Author:
amengual at informatica dot info
See Also:
Serialized Form

Constructor Summary
InsertStatement(MetaData metadata)
           
 
Method Summary
 void fillStatement(PreparedStatement stmt, Valueset values)
          Fills the parameters of a given statement with the default fields for this type of query.
 String getStatement()
           
 PreparedStatement prepareStatement(Connection con)
           
 String toString()
           
 
Methods inherited from class info.informatica.data.sql.SQLDataStatement
getFlags, getTableReference, setFlags, setTableReference
 
Methods inherited from class info.informatica.data.sql.SQLStatement
fillStatement, onModify, setStatement
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InsertStatement

public InsertStatement(MetaData metadata)
Method Detail

prepareStatement

public PreparedStatement prepareStatement(Connection con)
                                   throws SQLException
Overrides:
prepareStatement in class SQLStatement
Throws:
SQLException

toString

public String toString()
Overrides:
toString in class SQLStatement

getStatement

public String getStatement()
Overrides:
getStatement in class SQLStatement

fillStatement

public void fillStatement(PreparedStatement stmt,
                          Valueset values)
                   throws SQLException,
                          DataException
Fills the parameters of a given statement with the default fields for this type of query.

You do not need to validate the fields first.

Overrides:
fillStatement in class SQLStatement
Parameters:
stmt - the statement
values - the set of values of the fields
Throws:
DataException - TODO
SQLException