se.unlogic.standardutils.dao.querys
Class UpdateQuery

java.lang.Object
  extended by se.unlogic.standardutils.dao.querys.PreparedStatementQuery
      extended by se.unlogic.standardutils.dao.querys.UpdateQuery

public class UpdateQuery
extends PreparedStatementQuery


Field Summary
 
Fields inherited from class se.unlogic.standardutils.dao.querys.PreparedStatementQuery
closeConnectionOnExit, closed, connection, pstmt
 
Constructor Summary
UpdateQuery(Connection connection, boolean closeConnectionOnExit, String query)
           
UpdateQuery(DataSource dataSource, boolean closeConnectionOnExit, String query)
           
 
Method Summary
 void executeUpdate()
           
 void executeUpdate(GeneratedKeyCollector... keyCollectors)
           
 void executeUpdate(List<GeneratedKeyCollector> keyCollectors)
           
 Integer getAffectedRows()
           
 
Methods inherited from class se.unlogic.standardutils.dao.querys.PreparedStatementQuery
abort, autoCloseQuery, getPreparedStatement, isCloseConnectionOnExit, isClosed, setArray, setAsciiStream, setBigDecimal, setBinaryStream, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setClob, setCursorName, setDate, setDate, setDouble, setEscapeProcessing, setFetchDirection, setFetchSize, setFloat, setInt, setLong, setMaxFieldSize, setMaxRows, setNull, setNull, setObject, setObject, setObject, setQueryTimeout, setRef, setShort, setString, setTime, setTime, setTimestamp, setTimestamp, setURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateQuery

public UpdateQuery(Connection connection,
                   boolean closeConnectionOnExit,
                   String query)
            throws SQLException
Throws:
SQLException

UpdateQuery

public UpdateQuery(DataSource dataSource,
                   boolean closeConnectionOnExit,
                   String query)
            throws SQLException
Throws:
SQLException
Method Detail

executeUpdate

public void executeUpdate()
                   throws SQLException
Throws:
SQLException

executeUpdate

public void executeUpdate(List<GeneratedKeyCollector> keyCollectors)
                   throws SQLException
Throws:
SQLException

executeUpdate

public void executeUpdate(GeneratedKeyCollector... keyCollectors)
                   throws SQLException
Throws:
SQLException

getAffectedRows

public Integer getAffectedRows()


Copyright © 2011. All Rights Reserved.