info.informatica.data.sql
Class UpdateStatement
java.lang.Object
info.informatica.data.sql.SQLStatement
info.informatica.data.sql.SQLDataStatement
info.informatica.data.sql.UpdateStatement
- All Implemented Interfaces:
- Serializable
public class UpdateStatement
- extends SQLDataStatement
- implements Serializable
Update statement.
- Author:
- amengual at informatica dot info
- See Also:
- Serialized Form
UpdateStatement
public UpdateStatement(MetaData metadata)
setWhereClause
public void setWhereClause(WhereClause where)
setKeysInWhere
public void setKeysInWhere()
throws DataException
- Throws:
DataException
getOrderBy
public SortMap getOrderBy()
prepareStatement
public PreparedStatement prepareStatement(Connection con)
throws SQLException
- Overrides:
prepareStatement in class SQLStatement
- Throws:
SQLException
writeTo
public void writeTo(StringBuilder stmt)
throws DataException
- Throws:
DataException
getStatement
public String getStatement()
- Overrides:
getStatement in class SQLStatement
toString
public String toString()
- Overrides:
toString 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 statementvalues - the set of values of the fields
- Throws:
DataException - TODO
SQLException
fillStatementWithKeys
public void fillStatementWithKeys(PreparedStatement stmt,
Valueset values,
Iterator<FieldName> params)
throws SQLException,
DataException
- Throws:
SQLException
DataException