public abstract class AbstractOntopolyURLReference extends AbstractURLTopicMapReference implements TransactionEventListenerIF
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
alwaysReindexOnLoad |
protected Set<FulltextImplementationIF> |
ftmanagers |
base_address, duplicate_suppression, indexDirectory, maintainFulltextIndexes, reuse_store, store, urldeleted, id, isopen, listeners, source, title, topic_listeners| Constructor and Description |
|---|
AbstractOntopolyURLReference(URL url,
String id,
String title,
LocatorIF base) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
PUBLIC: Closes all open stores and the reference itself.
|
void |
delete()
INTERNAL: Deletes the topic map pointed to.
|
void |
deleteFullTextIndex()
PUBLIC: Removes the full-text index of the topicmap if full-text indexing is enabled.
|
boolean |
getAlwaysReindexOnLoad() |
protected abstract TopicMapReaderIF |
getImporter() |
protected long |
getLastModifiedAt(File file) |
protected long |
getLastModifiedAt(URL url) |
protected TopicMapIF |
loadTopicMap(boolean readonly) |
void |
open()
PUBLIC: Opens the reference.
|
void |
reindexFulltextIndex()
PUBLIC: Triggers a full reindexing of the topicmap if full-text indexing is enabled.
|
void |
setAlwaysReindexOnLoad(boolean alwaysReindexOnLoad) |
void |
synchronizeFulltextIndex(TopicMapStoreIF store)
INTERNAL: Synchronizes the underlying fulltext index with the latest
changes in the topic map.
|
void |
transactionAbort(TopicMapTransactionIF transaction) |
void |
transactionCommit(TopicMapTransactionIF transaction) |
createStore, getBaseAddress, getDuplicateSuppression, getIndexDirectory, getMaintainFulltextIndexes, getReuseStore, getURL, setBaseAddress, setDuplicateSuppression, setIndexDirectory, setMaintainFulltextIndexes, setReuseStore, setTopicListeners, toStringaddTopicListener, clear, getId, getSource, getTitle, getTopicListeners, isDeleted, isOpen, makeListenerArray, registerTopicListeners, removeTopicListener, setId, setSource, setTitle, storeClosedprotected boolean alwaysReindexOnLoad
protected Set<FulltextImplementationIF> ftmanagers
public void open()
TopicMapReferenceIFopen in interface TopicMapReferenceIFopen in class AbstractURLTopicMapReferenceprotected TopicMapIF loadTopicMap(boolean readonly) throws IOException
loadTopicMap in class AbstractURLTopicMapReferenceIOExceptionprotected long getLastModifiedAt(File file)
protected long getLastModifiedAt(URL url)
public boolean getAlwaysReindexOnLoad()
public void setAlwaysReindexOnLoad(boolean alwaysReindexOnLoad)
public void delete()
AbstractURLTopicMapReferencedelete in interface TopicMapReferenceIFdelete in class AbstractURLTopicMapReferencepublic void close()
TopicMapReferenceIFclose in interface AutoCloseableclose in interface TopicMapReferenceIFclose in class AbstractURLTopicMapReferencepublic void synchronizeFulltextIndex(TopicMapStoreIF store)
public void reindexFulltextIndex()
public void deleteFullTextIndex()
public void transactionCommit(TopicMapTransactionIF transaction)
transactionCommit in interface TransactionEventListenerIFpublic void transactionAbort(TopicMapTransactionIF transaction)
transactionAbort in interface TransactionEventListenerIFprotected abstract TopicMapReaderIF getImporter() throws IOException
IOException