org.deegree.commons.jdbc
Class UpdateRow

java.lang.Object
  extended by org.deegree.commons.jdbc.TransactionRow
      extended by org.deegree.commons.jdbc.UpdateRow

public class UpdateRow
extends TransactionRow

Encapsulates columns and values for updating one row in a database table.

Version:
$Revision: $, $Date: $
Author:
Lyn Goltz, last edited by: $Author: lyn $

Field Summary
 
Fields inherited from class org.deegree.commons.jdbc.TransactionRow
columnToLiteral, columnToObject, table
 
Constructor Summary
UpdateRow(QTableName table)
           
 
Method Summary
 String getSql()
           
 String getWhereClause()
           
 void performUpdate(Connection conn)
           
 void setWhereClause(String whereClause)
           
 String toString()
           
 
Methods inherited from class org.deegree.commons.jdbc.TransactionRow
addLiteralValue, addPreparedArgument, addPreparedArgument, addPreparedArgument, get, getColumns, getTable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UpdateRow

public UpdateRow(QTableName table)
Method Detail

setWhereClause

public void setWhereClause(String whereClause)
Parameters:
whereClause - the whereClause to set, without 'WHERE' in the beginning

getWhereClause

public String getWhereClause()
Returns:
the whereClause

getSql

public String getSql()
Specified by:
getSql in class TransactionRow
Returns:
the generated sl statement

toString

public String toString()
Overrides:
toString in class Object

performUpdate

public void performUpdate(Connection conn)
                   throws SQLException
Throws:
SQLException


Copyright © 2011. All Rights Reserved.