org.silverpeas.jdbc
Class JdbcSqlQueries

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<JdbcSqlQuery>
              extended by org.silverpeas.jdbc.JdbcSqlQueries
All Implemented Interfaces:
Serializable, Cloneable, Iterable<JdbcSqlQuery>, Collection<JdbcSqlQuery>, List<JdbcSqlQuery>, RandomAccess

public class JdbcSqlQueries
extends ArrayList<JdbcSqlQuery>

This class handles list of JdbcSqlQuery instance and provide a method execute to perform each one.
As there is no sense that the collection handles other query than those of modification, this collection is oriented to SQL query modifications.
The queries are executed into processes (transactional or not) without handling the connection to the database.

Author:
Yohann Chastagnier
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
JdbcSqlQueries()
           
 
Method Summary
 long execute()
          Executes all the queries contained into the list.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

JdbcSqlQueries

public JdbcSqlQueries()
Method Detail

execute

public long execute()
             throws SQLException
Executes all the queries contained into the list.

Throws:
SQLException


Copyright © 2016 Silverpeas. All Rights Reserved.