velosurf.model
Class Transaction
java.lang.Object
|
+--velosurf.model.Action
|
+--velosurf.model.Transaction
- public class Transaction
- extends Action
This class is an action that gather several consecutive queries
- Author:
- Claude Brisson
Field Summary |
protected java.util.List |
mParamNamesList
list of lists of parameter names |
protected java.util.List |
mQueries
all the queries |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
mQueries
protected java.util.List mQueries
- all the queries
mParamNamesList
protected java.util.List mParamNamesList
- list of lists of parameter names
Transaction
public Transaction(DBConnection inDB,
org.jdom.Element inJDOMAction)
- Builds a new transaction
- Parameters:
inDB
- database connectioninJDOMAction
- XML tree
defineQuery
protected void defineQuery(org.jdom.Element inJDOMAction)
- builds the queries
- Overrides:
defineQuery
in class Action
- Parameters:
inJDOMAction
- XML tree
perform
public int perform(DataAccessor inSource)
throws java.sql.SQLException
- performs this action
- Overrides:
perform
in class Action
- Parameters:
inSource
- DataAccessor containing parameter values- Returns:
- number of affected rows (addition of all the partial counts)
- Throws:
java.sql.SQLException
- thrown from the database
toString
public java.lang.String toString()
- debug method
- Overrides:
toString
in class Action
- Returns:
- the definition string of the transaction
ooOoo