public class ConfigurationPersistenceManager extends java.lang.Object implements org.apache.felix.cm.NotCachablePersistenceManager, org.apache.felix.cm.PersistenceManager, ReloadablePersistenceManager
Constructor and Description |
---|
ConfigurationPersistenceManager() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
buildSQL(java.lang.String sql) |
protected void |
cleanUp(java.sql.Connection connection,
java.sql.Statement statement,
java.sql.ResultSet resultSet) |
protected void |
createConfigurationTable() |
void |
delete(java.lang.String pid) |
protected void |
deleteFromDatabase(java.lang.String pid) |
protected void |
doDelete(java.lang.String pid) |
protected void |
doStore(java.lang.String pid,
java.util.Dictionary dictionary) |
boolean |
exists(java.lang.String pid) |
java.util.Enumeration<?> |
getDictionaries() |
protected java.util.Dictionary<?,?> |
getDictionary(java.lang.String pid) |
protected boolean |
hasConfigurationTable() |
protected boolean |
hasPid(java.lang.String pid) |
java.util.Dictionary<?,?> |
load(java.lang.String pid) |
protected void |
populateDictionaries() |
protected java.sql.PreparedStatement |
prepareStatement(java.sql.Connection connection,
java.lang.String sql) |
void |
reload(java.lang.String pid) |
void |
setDataSource(javax.sql.DataSource dataSource) |
void |
start() |
void |
stop() |
protected void |
store(java.sql.ResultSet resultSet,
java.util.Dictionary<?,?> dictionary) |
void |
store(java.lang.String pid,
java.util.Dictionary dictionary) |
protected void |
storeInDatabase(java.lang.String pid,
java.util.Dictionary<?,?> dictionary) |
protected java.util.Dictionary<?,?> |
toDictionary(java.lang.String dictionaryString) |
public void delete(java.lang.String pid) throws java.io.IOException
delete
in interface org.apache.felix.cm.PersistenceManager
java.io.IOException
public boolean exists(java.lang.String pid)
exists
in interface org.apache.felix.cm.PersistenceManager
public java.util.Enumeration<?> getDictionaries()
getDictionaries
in interface org.apache.felix.cm.PersistenceManager
public java.util.Dictionary<?,?> load(java.lang.String pid)
load
in interface org.apache.felix.cm.PersistenceManager
public void reload(java.lang.String pid) throws java.io.IOException
reload
in interface ReloadablePersistenceManager
java.io.IOException
public void setDataSource(javax.sql.DataSource dataSource)
public void start()
public void stop()
public void store(java.lang.String pid, java.util.Dictionary dictionary) throws java.io.IOException
store
in interface org.apache.felix.cm.PersistenceManager
java.io.IOException
protected java.lang.String buildSQL(java.lang.String sql) throws java.io.IOException
java.io.IOException
protected void cleanUp(java.sql.Connection connection, java.sql.Statement statement, java.sql.ResultSet resultSet)
protected void createConfigurationTable()
protected void deleteFromDatabase(java.lang.String pid) throws java.io.IOException
java.io.IOException
protected void doDelete(java.lang.String pid) throws java.io.IOException
java.io.IOException
protected void doStore(java.lang.String pid, java.util.Dictionary dictionary) throws java.io.IOException
java.io.IOException
protected java.util.Dictionary<?,?> getDictionary(java.lang.String pid) throws java.io.IOException
java.io.IOException
protected boolean hasConfigurationTable()
protected boolean hasPid(java.lang.String pid)
protected void populateDictionaries()
protected java.sql.PreparedStatement prepareStatement(java.sql.Connection connection, java.lang.String sql) throws java.io.IOException, java.sql.SQLException
java.io.IOException
java.sql.SQLException
protected void store(java.sql.ResultSet resultSet, java.util.Dictionary<?,?> dictionary) throws java.io.IOException, java.sql.SQLException
java.io.IOException
java.sql.SQLException
protected void storeInDatabase(java.lang.String pid, java.util.Dictionary<?,?> dictionary) throws java.io.IOException
java.io.IOException
protected java.util.Dictionary<?,?> toDictionary(java.lang.String dictionaryString) throws java.io.IOException
java.io.IOException