| java.lang.Object org.compass.gps.device.AbstractGpsDevice org.compass.gps.device.ibatis.SqlMapClientGpsDevice
SqlMapClientGpsDevice | public class SqlMapClientGpsDevice extends AbstractGpsDevice (Code) | | A SqlMapClient device, provides support for iBatis 2 and the
index operation. The device holds a list of iBatis select
statements ids, executes them, and index the result.
The device must be initialized with a SqlMapClient instance.
When indexing the data, a SqlMapSession will be opened, and a
transaction will be started. The device will then execute the select
statement id, and use the iBatis PaginatedList to index the
data.
The page size for the PaginatedList can be controlled using
the pageSize property.
The select statment can have a parameter object associated with it. If one of
the select statements requires a parameter object, than the
statementsParameterObjects property must be set. It must have
the same size as the selectStatementsIds , and the matching
index of the selectStatementsIds should be set at the
statementsParameterObjects property.
author: kimchy |
SqlMapClientGpsDevice | public SqlMapClientGpsDevice()(Code) | | |
SqlMapClientGpsDevice | public SqlMapClientGpsDevice(String deviceName, SqlMapClient sqlMapClient, String[] selectStatementsIds)(Code) | | |
SqlMapClientGpsDevice | public SqlMapClientGpsDevice(String deviceName, SqlMapClient sqlMapClient, String[] selectStatementsIds, Object[] statementsParameterObjects)(Code) | | |
getPageSize | public int getPageSize()(Code) | | |
getSelectStatementsIds | public String[] getSelectStatementsIds()(Code) | | |
getSqlMapClient | public SqlMapClient getSqlMapClient()(Code) | | |
getStatementsParameterObjects | public Object[] getStatementsParameterObjects()(Code) | | |
setPageSize | public void setPageSize(int pageSize)(Code) | | |
setSelectStatementsIds | public void setSelectStatementsIds(String[] statementsNames)(Code) | | |
setSqlMapClient | public void setSqlMapClient(SqlMapClient sqlMapClient)(Code) | | |
setStatementsParameterObjects | public void setStatementsParameterObjects(Object[] statementsParameterObjects)(Code) | | |
|
|