| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|
com.newstep.solid.persistence.db
public class DbPreQueryCriteria
Helper to generate SQL statements from pre-Prepared Statements that
have yet to be initialized with values in the clause.
Accepts parsable statements such as:
SELECT something FROM TABLE WHERE COL1 = {2} AND COL2 = {1}
Will do internal quoting of Strings where necessary.
Author:
msimonsen
Implements:
PreQueryCriteria
Links:
Kernel Association Association Link
Associates type:
association
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
private
Implementation Implementation Link
Helper to generate SQL statements from pre-Prepared Statements that
have yet to be initialized with values in the clause.
Accepts parsable statements such as:
SELECT something FROM TABLE WHERE COL1 = {2} AND COL2 = {1}
Will do internal quoting of Strings where necessary.
Author:
msimonsen
| Field Summary |
|
|
private List |
|
private List |
|
|
|
String |
|
private static String |
|
StringBuffer |
|
private List |
|
| Constructor Summary |
public void |
|
| Method Summary |
public String |
|
|
|
public void |
|
private void |
|
public void |
set(Integer index, Object value) |
public void |
set(Integer index, String value) |
public void |
set(Integer index, Long value) |
public void |
set(Integer index, Integer value) |
public void |
set(Integer index, Double value) |
public void |
set(Integer index, Float value) |
public void |
|
private void |
|
public String |
|
private List indexList
Multiplicity:
1
private List literalList
Multiplicity:
1
Multiplicity:
1
String pps
Multiplicity:
1
private static String quote
Multiplicity:
1
Static.
StringBuffer statement
Multiplicity:
1
private List valueList
Multiplicity:
1
public void DbPreQueryCriteria (String prePreparedStatement)
Stereotype:
create
public String buildQuery ()
public void initValues (Object values)
builds the complete statement by substituting the
object values (toString) with appropriate quoted sql
statement.
ie. {1} = values[0];
Parameters:
values
private void prepareList ()
public void set (Integer index, Object value)
public void set (Integer index, String value)
public void set (Integer index, Long value)
public void set (Integer index, Integer value)
public void set (Integer index, Double value)
public void set (Integer index, Float value)
public void setPagedQuery (PagedQuery pagedResults)
private void swap ()
public String toString ()
| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|