|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object velosurf.model.Action velosurf.model.Transaction
public class Transaction
This class is an action that gather several consecutive update/delete/insert queries.
Field Summary | |
---|---|
private java.util.List<java.util.List<java.lang.String>> |
paramNamesList
List of lists of parameter names. |
private java.util.List<java.lang.String> |
queries
All the queries. |
Fields inherited from class velosurf.model.Action |
---|
db, paramNames |
Constructor Summary | |
---|---|
Transaction(java.lang.String name,
Entity entity)
Builds a new transaction. |
Method Summary | |
---|---|
int |
perform(java.util.Map<java.lang.String,java.lang.Object> source)
Performs this action. |
void |
setParamNamesLists(java.util.List<java.util.List<java.lang.String>> paramLists)
Set the list of list of parameters. |
void |
setQueries(java.util.List<java.lang.String> queries)
Set the list of queries. |
java.lang.String |
toString()
Debug method. |
Methods inherited from class velosurf.model.Action |
---|
addParamName, buildArrayList, getDB, getEntity, getName, setQuery |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.util.List<java.lang.String> queries
private java.util.List<java.util.List<java.lang.String>> paramNamesList
Constructor Detail |
---|
public Transaction(java.lang.String name, Entity entity)
name
- transaction nameentity
- entityMethod Detail |
---|
public void setQueries(java.util.List<java.lang.String> queries)
queries
- list of SQL queriespublic void setParamNamesLists(java.util.List<java.util.List<java.lang.String>> paramLists)
paramLists
- list of list of parameterspublic int perform(java.util.Map<java.lang.String,java.lang.Object> source) throws java.sql.SQLException
perform
in class Action
source
- ReadOnlyMap containing parameter values
java.sql.SQLException
- thrown from the databasepublic java.lang.String toString()
toString
in class Action
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |