|
Anyframe Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IMiPQueryService
This is the interface used for manipulating database in developing the presentation layer using MiPlatform which is the X-Internet solution of the TOBE Software company.
In order to use MiPQueryService the anyframe.core.query.ria.impl.RiaQueryServiceImpl class has to be registered as Bean.
MiPQueryService 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.mip.impl.MiPQueryServiceImpl">
<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 MiQueryService's configuration has riaQueryService,
sqlRepository.
| Field Summary | |
|---|---|
static String |
QUERY_DELETE
|
static String |
QUERY_INSERT
|
static String |
QUERY_UPDATE
|
| Method Summary | |
|---|---|
com.tobesoft.platform.data.Dataset |
search(String queryId,
com.tobesoft.platform.data.Dataset dataSet)
This is a method for querying using the Dataset |
com.tobesoft.platform.data.Dataset |
search(String queryId,
com.tobesoft.platform.data.VariableList variableList)
This is a method for querying using the VariableList |
com.tobesoft.platform.data.Dataset |
search(String queryId,
com.tobesoft.platform.data.VariableList variableList,
int pageIndex,
int pageSize)
This is a method for querying with paging using the VariableList |
void |
search(String queryId,
com.tobesoft.platform.data.VariableList variableList,
int pageIndex,
int pageSize,
String dataSetName,
PrintWriter writer)
This is the method at querying using the VariableList. |
com.tobesoft.platform.data.Dataset |
searchWithPaging(String queryId,
com.tobesoft.platform.data.Dataset dataSet)
This is a method for querying using the Dataset for paging |
int |
update(Map queryMap,
com.tobesoft.platform.data.Dataset dataSet)
the method for inserting, updating and deleting using the Dataset to the database. |
int |
update(Map queryMap,
com.tobesoft.platform.data.Dataset dataSet,
IMiPActionCommand actionCommand)
This is the method for inserting, updating and deleting using the Dataset to the database. |
int |
update(String queryId,
com.tobesoft.platform.data.VariableList variableList)
This is the method for inserting, updating and deleting the unitary data using the VariableList. |
int |
update(String queryId,
com.tobesoft.platform.data.VariableList variableList,
Map queryMap,
com.tobesoft.platform.data.Dataset paramDataSet)
This is the method for inserting, updating and deleting using VariableList and Dataset. |
int |
update(String queryId,
com.tobesoft.platform.data.VariableList variableList,
Map queryMap,
com.tobesoft.platform.data.Dataset dataSet,
IMiPActionCommand actionCommand)
This is for inserting, updating and deleting using VariableList and Dataset. |
| Field Detail |
|---|
static final String QUERY_INSERT
static final String QUERY_UPDATE
static final String QUERY_DELETE
| Method Detail |
|---|
com.tobesoft.platform.data.Dataset search(String queryId,
com.tobesoft.platform.data.VariableList variableList)
throws Exception
queryId - identifier of query statement to executevariableList - VariableList including the query conditions
Exception - if there is any problem executing the query
com.tobesoft.platform.data.Dataset search(String queryId,
com.tobesoft.platform.data.VariableList variableList,
int pageIndex,
int pageSize)
throws Exception
queryId - identifier of query statement to executevariableList - VariableList including the query conditionspageIndex - 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
com.tobesoft.platform.data.Dataset search(String queryId,
com.tobesoft.platform.data.Dataset dataSet)
throws Exception
queryId - identifier of query statement to executedataSet - the Dataset including the query conditions
Exception - if there is any problem executing the query
void search(String queryId,
com.tobesoft.platform.data.VariableList variableList,
int pageIndex,
int pageSize,
String dataSetName,
PrintWriter writer)
throws Exception
void because the query result is put to the screen as
Stream using PrintWriter. At large scale querying, this is recommended.
queryId - identifier of query statement to executevariableList - the VariableList including the query conditionspageIndex - page number which expected to be displayed (pageIndex > 0)pageSize - page size which expected to be displayed per page (pageSize >
0)dataSetName - the id of Dataset for saving the query resultwriter - the PrintWriter object for writing the query result
Exception - if there is any problem executing the query
com.tobesoft.platform.data.Dataset searchWithPaging(String queryId,
com.tobesoft.platform.data.Dataset dataSet)
throws Exception
queryId - identifier of query statement to executedataSet - the Dataset including the query conditions, page
index("pageIndex") and page size("pageSize").
Exception - if there is any problem executing the query
int update(String queryId,
com.tobesoft.platform.data.VariableList variableList)
throws QueryServiceException
queryId - identifier of query statement to executevariableList - the VariableList including the query conditions
QueryServiceException - if there is any problem executing the query
int update(String queryId,
com.tobesoft.platform.data.VariableList variableList,
Map queryMap,
com.tobesoft.platform.data.Dataset paramDataSet)
throws QueryServiceException
queryId - identifier of query statement to executevariableList - the VariableList including the query conditionsqueryMap - 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 Dataset the value of
appropriate record's Status is set.paramDataSet - the Dataset including the query conditions
QueryServiceException - if there is any problem executing the query
int update(String queryId,
com.tobesoft.platform.data.VariableList variableList,
Map queryMap,
com.tobesoft.platform.data.Dataset dataSet,
IMiPActionCommand actionCommand)
throws QueryServiceException
queryId - identifier of query statement to executevariableList - the VariableList including the query conditionsqueryMap - 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 Dataset the value of
appropriate record's Status is set.dataSet - the Dataset including the query conditionsactionCommand - the MiPActionCommand including the business logic before/after
the insert, update, delete execution.
QueryServiceException - if there is any problem executing the query
int update(Map queryMap,
com.tobesoft.platform.data.Dataset dataSet)
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 Dataset the value of
appropriate record's Status is set.dataSet - the Dataset including the query conditions
QueryServiceException - if there is any problem executing the query
int update(Map queryMap,
com.tobesoft.platform.data.Dataset dataSet,
IMiPActionCommand 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 Dataset the value of
appropriate record's Status is set.dataSet - the Dataset including the query conditionsactionCommand - the MiPActionCommand 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 | |||||||||