public class JdbcStorageDAOImpl extends Object implements JdbcStorageDAO
Constructor and Description |
---|
JdbcStorageDAOImpl(org.osgi.service.jdbc.DataSourceFactory dataSourceFactory,
Properties dataSourceProperties,
boolean usePool) |
Modifier and Type | Method and Description |
---|---|
protected List<Entry> |
chunk(List<Entry> data) |
protected List<Entry> |
deChunk(List<Entry> data) |
void |
deleteConfiguration(String factoryId,
String configurationId) |
void |
dispose() |
protected List<Entry> |
fixNulls(List<Entry> data) |
protected void |
internalDeleteConfiguration(ConnectionContext connectionContext,
String factoryId,
String configurationId) |
protected List<Entry> |
internalLoad(ConnectionContext connectionContext,
String sql,
Object... parameters) |
protected Map<String,String> |
internalStoreConfiguration(ConnectionContext connectionContext,
String factoryId,
String configurationId,
Map<String,String> properties,
boolean fullSet) |
List<String> |
listFactories() |
protected List<Entry> |
load(String sql,
Object... parameters) |
List<Entry> |
loadAll() |
List<Entry> |
loadFactory(String factoryId) |
List<Entry> |
purgeFactory(String factoryId) |
Map<String,String> |
storeConfiguration(String factoryId,
String configurationId,
Map<String,String> properties,
boolean fullSet) |
public JdbcStorageDAOImpl(org.osgi.service.jdbc.DataSourceFactory dataSourceFactory, Properties dataSourceProperties, boolean usePool) throws SQLException
SQLException
public void dispose()
protected List<Entry> internalLoad(ConnectionContext connectionContext, String sql, Object... parameters) throws SQLException
SQLException
public List<Entry> loadAll()
loadAll
in interface JdbcStorageDAO
public List<Entry> loadFactory(String factoryId)
loadFactory
in interface JdbcStorageDAO
public List<String> listFactories()
listFactories
in interface JdbcStorageDAO
public Map<String,String> storeConfiguration(String factoryId, String configurationId, Map<String,String> properties, boolean fullSet)
storeConfiguration
in interface JdbcStorageDAO
protected Map<String,String> internalStoreConfiguration(ConnectionContext connectionContext, String factoryId, String configurationId, Map<String,String> properties, boolean fullSet) throws SQLException
SQLException
public List<Entry> purgeFactory(String factoryId)
purgeFactory
in interface JdbcStorageDAO
public void deleteConfiguration(String factoryId, String configurationId)
deleteConfiguration
in interface JdbcStorageDAO
protected void internalDeleteConfiguration(ConnectionContext connectionContext, String factoryId, String configurationId) throws SQLException
SQLException
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.