public class SQLCollectionDAO extends AbstractMyBatisDAO
SynchronizableContentsCollections which need to access a SQL database| Modifier 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, setPluginInfogetLogger, setLoggerprotected String _dataSourceId
public SQLCollectionDAO()
protected Configuration _getMyBatisConfiguration(Environment env)
AbstractMyBatisDAO_getMyBatisConfiguration in class AbstractMyBatisDAOenv - 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 AbstractMyBatisDAOconfiguration - the configurationConfigurationException - if an error occurredprotected String _getDataSourceId()
AbstractMyBatisDAO_getDataSourceId in class AbstractMyBatisDAOprotected void _setDataSourceId(String dataSourceId)
dataSourceId - the datasource id