org.rimudb.generic
Class GenericUpdate

java.lang.Object
  extended by org.rimudb.generic.AbstractGenericBase
      extended by org.rimudb.generic.GenericUpdate

public class GenericUpdate
extends AbstractGenericBase

This class provides a way to execute update and delete queries. The class always ensures that the connections are closed so they can be returned to the connection pool.


Constructor Summary
GenericUpdate(Database database)
          Constructor for AdHocQuery.
GenericUpdate(Database database, java.lang.String sql)
          Constructor for AdHocQuery.
 
Method Summary
 int executeUpdate(java.lang.Object... parameters)
          Execute a query
 
Methods inherited from class org.rimudb.generic.AbstractGenericBase
buildElementString, buildParameterString, getDatabase, getFetchSize, getSQL, parse, setFetchSize, setSQL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericUpdate

public GenericUpdate(Database database)
              throws RimuDBException
Constructor for AdHocQuery.

Throws:
RimuDBException

GenericUpdate

public GenericUpdate(Database database,
                     java.lang.String sql)
              throws RimuDBException
Constructor for AdHocQuery.

Throws:
RimuDBException
Method Detail

executeUpdate

public int executeUpdate(java.lang.Object... parameters)
                  throws RimuDBException
Execute a query

Throws:
RimuDBException


Copyright © 2008-2011 Simon Ritchie. All Rights Reserved.