public class SQLCollectionDAO extends AbstractMyBatisDAO
SynchronizableContentsCollection
s which need to access a SQL databaseModifier and Type | Field and Description |
---|---|
protected String |
_dataSourceId
The datesource id
|
static String |
ROLE
Avalon ROLE
|
_manager
Constructor and Description |
---|
SQLCollectionDAO() |
Modifier and Type | Method and Description |
---|---|
protected void |
_configureDatasource(Configuration configuration)
Configure datasource
|
protected String |
_getDataSourceId()
Get datasource id
|
protected Configuration |
_getMyBatisConfiguration(Environment env)
Get the mybatis configuration
|
protected void |
_setDataSourceId(String dataSourceId)
Set the datasource id
|
int |
getTotalCount(Map<String,Object> params,
String dataSourceId)
Get total count of synchronized content
|
List<Map<String,Object>> |
search(Map<String,Object> params,
String dataSourceId)
Get the list of synchronized content
|
configure, contextualize, getSession, getSession, reload, service, setPluginInfo
getLogger, setLogger
protected String _dataSourceId
public SQLCollectionDAO()
protected Configuration _getMyBatisConfiguration(Environment env)
AbstractMyBatisDAO
_getMyBatisConfiguration
in class AbstractMyBatisDAO
env
- the mybatis environnementpublic List<Map<String,Object>> search(Map<String,Object> params, String dataSourceId)
params
- the filter paramatersdataSourceId
- the datasource IDpublic int getTotalCount(Map<String,Object> params, String dataSourceId)
params
- the filter paramatersdataSourceId
- the datasource IDprotected void _configureDatasource(Configuration configuration) throws ConfigurationException
AbstractMyBatisDAO
_configureDatasource
in class AbstractMyBatisDAO
configuration
- the configurationConfigurationException
- if an error occurredprotected String _getDataSourceId()
AbstractMyBatisDAO
_getDataSourceId
in class AbstractMyBatisDAO
protected void _setDataSourceId(String dataSourceId)
dataSourceId
- the datasource id