|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvelosurf.model.Action
public class Action
This class correspond to custom update and delete queries
| Field Summary | |
|---|---|
protected Database |
db
the satabase connection |
protected Entity |
entity
the entity this action belongs to |
protected java.lang.String |
name
the name of this action |
protected java.util.List<java.lang.String> |
paramNames
parameter names of this action |
protected java.lang.String |
query
query of this action |
| Constructor Summary | |
|---|---|
Action(java.lang.String name,
Entity entity)
Constructor |
|
| Method Summary | |
|---|---|
void |
addParamName(java.lang.String paramName)
|
java.util.List |
buildArrayList(ReadOnlyMap source)
get the list of values for all parameters |
Database |
getDB()
get the database connection |
java.lang.String |
getName()
get the name of the action |
int |
perform(ReadOnlyMap source)
executes this action |
void |
setQuery(java.lang.String query)
|
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 Database db
protected Entity entity
protected java.lang.String name
protected java.util.List<java.lang.String> paramNames
protected java.lang.String query
| Constructor Detail |
|---|
public Action(java.lang.String name,
Entity entity)
name - nameentity - entity| Method Detail |
|---|
public void addParamName(java.lang.String paramName)
public void setQuery(java.lang.String query)
public int perform(ReadOnlyMap source)
throws java.sql.SQLException
source - the object on which apply the action
java.sql.SQLException - an SQL problem occurs
public java.util.List buildArrayList(ReadOnlyMap source)
throws java.sql.SQLException
source - the DataAccessor
java.sql.SQLException - thrown by the DataAccessorpublic java.lang.String getName()
public java.lang.String toString()
toString in class java.lang.Objectpublic Database getDB()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||