|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.araneaframework.backend.list.helper.SqlStatement
| Field Summary | |
protected List |
parameters
|
protected String |
query
|
| Constructor Summary | |
SqlStatement()
|
|
SqlStatement(String query)
|
|
SqlStatement(String query,
List parameters)
|
|
| Method Summary | |
void |
addAllParams(int index,
List params)
Adds parameters at the specified position. |
void |
addAllParams(List params)
Adds parameters. |
void |
addNullParam(int valueType)
Adds a NULL parameter. |
void |
addNullParam(int index,
int valueType)
Adds a NULL parameter at the specified position. |
void |
addParam(int index,
Object param)
Adds a parameter at the specified position. |
void |
addParam(Object param)
Adds a parameter. |
void |
clearParams()
Clears all parameters. |
Object |
clone()
Constructs a new SqlStatement with the same
Query and Parameters. |
int |
countParams()
Counts all parameters. |
List |
getParams()
|
String |
getQuery()
|
protected void |
propagateStatementWithParams(PreparedStatement pstmt)
Helper method that sets the parameters to the PreparedStatement. |
void |
setParams(List params)
|
void |
setQuery(String query)
|
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected String query
protected List parameters
| Constructor Detail |
public SqlStatement(String query,
List parameters)
public SqlStatement(String query)
public SqlStatement()
| Method Detail |
public List getParams()
public void setParams(List params)
public String getQuery()
public void setQuery(String query)
public void addParam(int index,
Object param)
index - index at witch the specified parameter will be inserted.param - a parameter.
public void addNullParam(int index,
int valueType)
NULL parameter at the specified position.
index - index at witch the specified parameter will be inserted.valueType - the type of the NULL value.
public void addAllParams(int index,
List params)
index - index at witch the specified parameters will be inserted.params - parameters.public int countParams()
public void addParam(Object param)
param - a parameter.public void addNullParam(int valueType)
NULL parameter.
valueType - the type of the NULL value.public void addAllParams(List params)
params - parameters.public void clearParams()
public Object clone()
SqlStatement with the same
Query and Parameters.
Object.clone()
protected void propagateStatementWithParams(PreparedStatement pstmt)
throws SQLException
PreparedStatement.
pstmt - PreparedStatement which parameters will be set.
SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||