public class WikittyStorageJDBC extends Object implements WikittyStorage
WikittyStorage.DataStatistic, WikittyStorage.Scanner| Modifier and Type | Field and Description |
|---|---|
protected org.nuiton.util.ApplicationConfig |
config |
protected WikittyExtensionStorage |
extensionStorage |
protected Properties |
jdbcQuery
Properties file
|
protected static org.apache.commons.logging.Log |
log
to use log facility, just put in your code: log.info(\"...\");
|
| Constructor and Description |
|---|
WikittyStorageJDBC(org.nuiton.util.ApplicationConfig config,
WikittyExtensionStorage extensionStorage) |
protected static org.apache.commons.logging.Log log
protected final Properties jdbcQuery
protected org.nuiton.util.ApplicationConfig config
protected WikittyExtensionStorage extensionStorage
public WikittyStorageJDBC(org.nuiton.util.ApplicationConfig config,
WikittyExtensionStorage extensionStorage)
protected void checkTableOrCreation(WikittyTransaction tx)
protected String getColName(WikittyTypes type)
public WikittyEvent store(WikittyTransaction tx, Collection<Wikitty> wikitties, boolean force) throws WikittyException
store in interface WikittyStorageWikittyExceptionpublic boolean exists(WikittyTransaction tx, String id)
exists in interface WikittyStoragepublic boolean isDeleted(WikittyTransaction tx, String id)
isDeleted in interface WikittyStoragepublic Wikitty restore(WikittyTransaction tx, String id, String... fqFieldName) throws WikittyException
restore in interface WikittyStorageWikittyExceptionpublic WikittyEvent delete(WikittyTransaction tx, Collection<String> ids) throws WikittyException
delete in interface WikittyStorageWikittyExceptionpublic void scanWikitties(WikittyTransaction tx, WikittyStorage.Scanner scanner)
scanWikitties in interface WikittyStorageprotected Wikitty constructWikitty(WikittyTransaction tx, String id, String version, String extensionList, ResultSet resultSet, String... fqFieldName) throws SQLException
id - the id of the wikitty to restoreversion - the version of the wikitty to restoreextensionList - the list of the extensions of the wikitty to restoreresulSet - the ResultSet as the result of the selection of the in the data tablefqFieldName - minimum field to restoreSQLExceptionprotected boolean isAcceptedField(Set<String> acceptedField, String fqfieldName)
acceptedField - list of all accepted fieldfqfieldName - fully qualified field name with potential [n/m] at endpublic WikittyEvent clear(WikittyTransaction tx)
clear in interface WikittyStoragepublic WikittyStorage.DataStatistic getDataStatistic(WikittyTransaction tx)
getDataStatistic in interface WikittyStorageCopyright © 2009–2013 CodeLutin. All rights reserved.