|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.araneaframework.backend.list.helper.BaseListSqlHelper
org.araneaframework.backend.list.helper.ListSqlHelper
org.araneaframework.backend.list.helper.HSqlListSqlHelper
| Nested Class Summary |
| Nested classes inherited from class org.araneaframework.backend.list.helper.BaseListSqlHelper |
BaseListSqlHelper.BeanResultReader, BaseListSqlHelper.CountSqlCallback, BaseListSqlHelper.ItemRangeSqlCallback, BaseListSqlHelper.ListItemsDataCallback |
| Field Summary | |
protected String |
countSqlQuery
|
protected SqlStatement |
statement
|
| Fields inherited from class org.araneaframework.backend.list.helper.ListSqlHelper |
converterBasedColumnReader, log, mappingNamingStrategyAndFields, prefixMapNamingStrategy, standardFields, standardValueConverter |
| Fields inherited from class org.araneaframework.backend.list.helper.BaseListSqlHelper |
DEFAULT_RANGE_START, ds, fields, filterExpr, filterSqlExpr, itemRangeCount, itemRangeStart, namingStrategy, orderExpr, orderSqlExpr, resultSetColumnReader, valueConverter, variableResolver |
| Constructor Summary | |
HSqlListSqlHelper()
|
|
HSqlListSqlHelper(DataSource dataSource)
|
|
HSqlListSqlHelper(DataSource dataSource,
ListQuery query)
|
|
HSqlListSqlHelper(ListQuery query)
|
|
| Method Summary | |
void |
addNullParam(int valueType)
Adds a NULL PreparedStatement parameter for
later setting. |
void |
addStatementParam(Object param)
Adds a PreparedStatement parameter for later setting. |
void |
addStatementParams(List params)
Adds PreparedStatement parameters for later setting. |
protected SqlStatement |
getCountSqlStatement()
Returns the total count SQL query String and parameters. |
protected SqlStatement |
getRangeSqlStatement()
Returns the itme range SQL query String and parameters. |
protected boolean |
isShowAll()
|
void |
setCountSqlQuery(String countSqlQuery)
Sets the SQL query used to count the items in the database. |
void |
setSqlQuery(String sqlQuery)
Sets the SQL query that will be used to retrieve the item range from the list and count the items. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected SqlStatement statement
protected String countSqlQuery
| Constructor Detail |
public HSqlListSqlHelper(DataSource dataSource,
ListQuery query)
public HSqlListSqlHelper(DataSource dataSource)
public HSqlListSqlHelper(ListQuery query)
public HSqlListSqlHelper()
| Method Detail |
protected SqlStatement getCountSqlStatement()
BaseListSqlHelper
getCountSqlStatement in class BaseListSqlHelperprotected SqlStatement getRangeSqlStatement()
BaseListSqlHelper
getRangeSqlStatement in class BaseListSqlHelperprotected boolean isShowAll()
public void setSqlQuery(String sqlQuery)
setSqlQuery in class BaseListSqlHelpersqlQuery - the SQL query that will be used to retrieve the item range
from the list and count the items.public void setCountSqlQuery(String countSqlQuery)
setCountSqlQuery in class BaseListSqlHelpercountSqlQuery - the SQL query used to count the items in the database.public void addNullParam(int valueType)
NULL PreparedStatement parameter for
later setting.
addNullParam in class BaseListSqlHelpervalueType - the type of the NULL value.public void addStatementParam(Object param)
PreparedStatement parameter for later setting.
addStatementParam in class BaseListSqlHelperparam - a PreparedStatement parameter.public void addStatementParams(List params)
PreparedStatement parameters for later setting.
addStatementParams in class BaseListSqlHelperparams - PreparedStatement parameters.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||