public abstract class AbstractJDBCPreferenceStore extends Object implements PreferenceStore
| Constructor and Description |
|---|
AbstractJDBCPreferenceStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected abstract void |
doClose() |
protected abstract void |
doDelete() |
protected void |
dropTables(Connection connection) |
protected abstract String |
getBlobAsString(ResultSet rs,
int col) |
protected abstract Connection |
getConnection() |
protected abstract org.slf4j.Logger |
getLogger() |
protected ModelVersion |
getPreferencesVersion(Connection conn) |
protected abstract String |
getSqlBlobType() |
void |
onDelete() |
Collection<PreferenceRecord> |
openAndLoad(PreferenceStoreUpdater updater) |
void |
replace(Collection<UUID> preferenceRecordsToRemove,
Collection<PreferenceRecord> preferenceRecordsToAdd) |
protected void |
setTableNamePrefix(String tableNamePrefix) |
void |
updateOrCreate(Collection<PreferenceRecord> preferenceRecords) |
protected void setTableNamePrefix(String tableNamePrefix)
public Collection<PreferenceRecord> openAndLoad(PreferenceStoreUpdater updater) throws StoreException
openAndLoad in interface PreferenceStoreStoreExceptionpublic void updateOrCreate(Collection<PreferenceRecord> preferenceRecords)
updateOrCreate in interface PreferenceStorepublic void replace(Collection<UUID> preferenceRecordsToRemove, Collection<PreferenceRecord> preferenceRecordsToAdd)
replace in interface PreferenceStorepublic void onDelete()
onDelete in interface PreferenceStorepublic void close()
close in interface PreferenceStoreprotected void dropTables(Connection connection) throws SQLException
SQLExceptionprotected abstract void doDelete()
protected abstract void doClose()
protected abstract org.slf4j.Logger getLogger()
protected abstract Connection getConnection() throws SQLException
SQLExceptionprotected abstract String getSqlBlobType()
protected abstract String getBlobAsString(ResultSet rs, int col) throws SQLException
SQLExceptionprotected ModelVersion getPreferencesVersion(Connection conn) throws SQLException
SQLExceptionCopyright © 2006–2020 The Apache Software Foundation. All rights reserved.