|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectvelosurf.model.Action
This class correspond to custom update and delete queries
| Field Summary | |
protected DBConnection |
mDB
the satabase connection |
protected java.lang.String |
mName
the name of this action |
protected java.util.List |
mParamNames
parameter names of this action |
protected java.lang.String |
mQuery
query of this action |
| Constructor Summary | |
Action(DBConnection inDB,
org.jdom.Element inJDOMAction)
Constructor |
|
| Method Summary | |
java.util.List |
buildArrayList(DataAccessor inSource)
get the list of values for all parameters |
protected void |
defineQuery(org.jdom.Element inJDOMAction)
define the query from the XML tree |
DBConnection |
getDB()
get the database connection |
java.lang.String |
getName()
get the name of the action |
static boolean |
isTransaction(org.jdom.Element inElement)
checks whether the action defined by this XML tree is a simple action or a transaction |
int |
perform(DataAccessor inSource)
executes this action |
java.lang.String |
toString()
for debugging purpose |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected DBConnection mDB
protected java.lang.String mName
protected java.util.List mParamNames
protected java.lang.String mQuery
| Constructor Detail |
public Action(DBConnection inDB,
org.jdom.Element inJDOMAction)
inDB - database connectioninJDOMAction - the XML tree for this action| Method Detail |
protected void defineQuery(org.jdom.Element inJDOMAction)
inJDOMAction - the XML tree
public int perform(DataAccessor inSource)
throws java.sql.SQLException
inSource - the object on which apply the action
java.sql.SQLException - an SQL problem occurs
public java.util.List buildArrayList(DataAccessor inSource)
throws java.sql.SQLException
inSource - the DataAccessor
java.sql.SQLException - thrown by the DataAccessorpublic java.lang.String getName()
public java.lang.String toString()
public DBConnection getDB()
public static boolean isTransaction(org.jdom.Element inElement)
inElement - XML tree defining an action
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||