|
Anyframe Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IRiaQueryService
This is the interface used for manipulating database in developing the presentation layer using RIA product. This class is referenced by MiPQueryService, NitobiQueryService, etc. We recommend to use it directly.
RiaQueryService Configuration Example:
<bean name="riaQueryService" class="anyframe.core.query.ria.impl.RiaQueryServiceImpl">
<property name="jdbcTemplate" ref="pagingNamedParamJdbcTemplate"/>
<property name="lobHandler" ref="lobHandler"/>
<property name="sqlRepository" ref="sqlLoader"/>
</bean>
The RiaQueryService's configuration has
jdbcTemplate,
lobHandler,sqlRepository.
| Method Summary | |
|---|---|
void |
containesQueryId(String queryId)
Checks whether the query identifier exists. |
anyframe.core.query.impl.config.loader.SQLLoader |
getSqlRepository()
This is the method for getting SQLLoader which includes loaded information about mapping xml files. |
void |
search(String queryId,
anyframe.core.query.impl.jdbc.setter.ExtMapSqlParameterSource params,
IRowCallbackHandler rowCallbackHandler)
This is a method for querying at developing the screen using RIA |
void |
search(String queryId,
anyframe.core.query.impl.jdbc.setter.ExtMapSqlParameterSource params,
IRowCallbackHandler rowCallbackHandler,
int pageIndex,
int pageSize)
This is a method for querying with paging at developing the screen using RIA |
void |
searchLive(String queryId,
anyframe.core.query.impl.jdbc.setter.ExtMapSqlParameterSource params,
IRowCallbackHandler rowCallbackHandler,
int startIndex,
int pageSize)
This is a method for querying with paging at developing the screen using RIA |
int |
update(String queryId,
anyframe.core.query.impl.jdbc.setter.ExtMapSqlParameterSource params)
This is the method for inserting, updating and deleting at developing the screen using RIA |
| Method Detail |
|---|
void containesQueryId(String queryId)
throws QueryServiceException
queryId - identifier of query statement
QueryServiceException - if query identifier doesn't exist
void search(String queryId,
anyframe.core.query.impl.jdbc.setter.ExtMapSqlParameterSource params,
IRowCallbackHandler rowCallbackHandler)
throws Exception
queryId - identifier of query statement to executeparams - ExtMapSqlParameterSource includes
searchParams with key, the Map composed
as transfer object including the query
conditionsrowCallbackHandler - Result handler for saving a result to
arbitrary object
Exception - if there is any problem executing the
query
void search(String queryId,
anyframe.core.query.impl.jdbc.setter.ExtMapSqlParameterSource params,
IRowCallbackHandler rowCallbackHandler,
int pageIndex,
int pageSize)
throws Exception
queryId - identifier of query statement to executeparams - ExtMapSqlParameterSource includes
searchParams with key, the Map composed
as transfer object including the query
conditionsrowCallbackHandler - Result handler for saving a result to
arbitrary objectpageIndex - page number which expected to be
displayed (pageIndex > 0)pageSize - page size which expected to be displayed
per page (pageSize > 0)
Exception - if there is any problem executing the
query
void searchLive(String queryId,
anyframe.core.query.impl.jdbc.setter.ExtMapSqlParameterSource params,
IRowCallbackHandler rowCallbackHandler,
int startIndex,
int pageSize)
throws Exception
queryId - identifier of query statement to executeparams - ExtMapSqlParameterSource includes
searchParams with key, the Map composed
as transfer object including the query
conditionsrowCallbackHandler - Result handler for saving a result to
arbitrary objectstartIndex - start row number which expected to be
displayed (startIndex > 0)pageSize - page size which expected to be displayed
per page (pageSize > 0)
Exception - if there is any problem executing the
query
int update(String queryId,
anyframe.core.query.impl.jdbc.setter.ExtMapSqlParameterSource params)
throws QueryServiceException
queryId - identifier of query statement to executeparams - ExtMapSqlParameterSource includes
searchParams with key, the Map composed
as transfer object including the query
conditions
QueryServiceException - if there is any problem executing the
queryanyframe.core.query.impl.config.loader.SQLLoader getSqlRepository()
|
Anyframe Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||