|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--velosurf.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 |
|
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 actionMethod Detail |
protected void defineQuery(org.jdom.Element inJDOMAction)
inJDOMAction
- the XML treepublic int perform(DataAccessor inSource) throws java.sql.SQLException
inSource
- the object on which apply the actionjava.sql.SQLException
- an SQL problem occurspublic java.util.List buildArrayList(DataAccessor inSource) throws java.sql.SQLException
inSource
- the DataAccessorjava.sql.SQLException
- thrown by the DataAccessorpublic java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
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: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |