|
Anyframe Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IGauceQueryService
This is the interface used for manipulating database in developing the presentation layer using Gauce component which is the X-Internet solution of the Shift Software company.
In order to use GauceQueryService the anyframe.core.query.ria.impl.RiaQueryServiceImpl class has to be registered as Bean.
GauceQueryService 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>
<bean id="mipQueryService" class="anyframe.core.query.ria.gauce.impl.GauceQueryServiceImpl">
<property name="riaQueryService" ref="riaQueryService"/>
<property name="sqlRepository" ref="sqlLoader"/>
</bean>
<bean id="pagingNamedParamJdbcTemplate"
class="anyframe.core.query.impl.jdbc.PagingNamedParamJdbcTemplate">
<constructor-arg index="0" ref="pagingJdbcTemplate"/>
<constructor-arg index="1" ref="dataSource"/>
</bean>
The GauceQueryService's configuration has riaQueryService,
sqlRepository.
| Method Summary | |
|---|---|
com.gauce.GauceDataSet |
search(String queryId,
com.gauce.GauceDataSet serarchParams)
This is a method for querying using the GauceDataSet |
int |
update(Map queryMap,
com.gauce.GauceDataSet updateParams)
the method for inserting, updating and deleting using the GauceDataSet to the database. |
int |
update(Map queryMap,
com.gauce.GauceDataSet updateParams,
IGauceActionCommand actionCommand)
This is the method for inserting, updating and deleting using the GauceDataSet to the database. |
| Method Detail |
|---|
com.gauce.GauceDataSet search(String queryId,
com.gauce.GauceDataSet serarchParams)
throws Exception
queryId - identifier of query statement to executedataSet - the GauceDataSet including the query
conditions
QueryServiceException - if there is any problem executing the
query
Exception
int update(Map queryMap,
com.gauce.GauceDataSet updateParams)
throws QueryServiceException
queryMap - the map with status of row and query
identifier. For insert status, the Map's
key is insert, update status is update,
delete status is delete. We decide the
query id executed in using the Status
value because in the GauceDataSet the
value of appropriate row's Status is set.dataSet - the GauceDataSet including the query
conditions
QueryServiceException - if there is any problem executing the
query
int update(Map queryMap,
com.gauce.GauceDataSet updateParams,
IGauceActionCommand actionCommand)
throws QueryServiceException
queryMap - the map with status of row and query
identifier. For insert status, the Map's
key is insert, update status is update,
delete status is delete. We decide the
query id executed in using the Status
value because in the GauceDataSet the
value of appropriate record's Status is
set.dataSet - the GauceDataSet including the query
conditionsactionCommand - the GauceActionCommand including the
business logic before/after the insert,
update, delete execution.
QueryServiceException - if there is any problem executing the
query
|
Anyframe Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||