net.ontopia.topicmaps.impl.rdbms
Class RDBMSTopicMapReference

java.lang.Object
  extended by net.ontopia.topicmaps.entry.AbstractTopicMapReference
      extended by net.ontopia.topicmaps.impl.rdbms.RDBMSTopicMapReference
All Implemented Interfaces:
TopicMapReferenceIF

public class RDBMSTopicMapReference
extends AbstractTopicMapReference

INTERNAL: RDBMS database topic map reference.


Constructor Summary
RDBMSTopicMapReference(java.lang.String _id, java.lang.String _title, net.ontopia.persistence.proxy.StorageIF _storage, long _topicmap_id, LocatorIF _base_address)
           
 
Method Summary
 void clear()
          EXPERIMENTAL: Closes all open stores and clears the topic map by removing all data.
 void close()
          PUBLIC: Closes all open stores and the reference itself.
 TopicMapStoreIF createStore(boolean readonly)
          PUBLIC: Creates a topic map store that lets you access the referenced topic map.
 void delete()
          PUBLIC: Closes all open stores and deletes the topic map.
 long getTopicMapId()
           
 void open()
          PUBLIC: Opens the reference.
 void storeClosed(TopicMapStoreIF store)
          INTERNAL: Callback from the specified TopicMapStoreIF after it has been closed.
 java.lang.String toString()
           
 void writeReport(java.io.Writer out, boolean dumpCaches)
           
 
Methods inherited from class net.ontopia.topicmaps.entry.AbstractTopicMapReference
addTopicListener, getId, getSource, getTitle, isDeleted, isOpen, registerTopicListeners, removeTopicListener, setId, setSource, setTitle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RDBMSTopicMapReference

public RDBMSTopicMapReference(java.lang.String _id,
                              java.lang.String _title,
                              net.ontopia.persistence.proxy.StorageIF _storage,
                              long _topicmap_id,
                              LocatorIF _base_address)
Method Detail

open

public void open()
Description copied from interface: TopicMapReferenceIF
PUBLIC: Opens the reference.

Specified by:
open in interface TopicMapReferenceIF
Overrides:
open in class AbstractTopicMapReference

createStore

public TopicMapStoreIF createStore(boolean readonly)
Description copied from interface: TopicMapReferenceIF
PUBLIC: Creates a topic map store that lets you access the referenced topic map.

Specified by:
createStore in interface TopicMapReferenceIF
Specified by:
createStore in class AbstractTopicMapReference

close

public void close()
Description copied from interface: TopicMapReferenceIF
PUBLIC: Closes all open stores and the reference itself. Note that topic map stores created through this reference are closed and dereferenced when the reference is closed. The reference can be reopened after it has been closed.

Specified by:
close in interface TopicMapReferenceIF
Overrides:
close in class AbstractTopicMapReference

clear

public void clear()
Description copied from interface: TopicMapReferenceIF
EXPERIMENTAL: Closes all open stores and clears the topic map by removing all data. The reference is closed before the topic map is deleted. The reference can be reopened after the topic map has been deleted.

Specified by:
clear in interface TopicMapReferenceIF
Overrides:
clear in class AbstractTopicMapReference

delete

public void delete()
Description copied from interface: TopicMapReferenceIF
PUBLIC: Closes all open stores and deletes the topic map. The reference is closed before the topic map is deleted. The reference cannot be reopened after the topic map has been deleted.

Specified by:
delete in interface TopicMapReferenceIF
Overrides:
delete in class AbstractTopicMapReference

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getTopicMapId

public long getTopicMapId()

storeClosed

public void storeClosed(TopicMapStoreIF store)
Description copied from interface: TopicMapReferenceIF
INTERNAL: Callback from the specified TopicMapStoreIF after it has been closed. Warning: Intended for internal use only.

Specified by:
storeClosed in interface TopicMapReferenceIF
Overrides:
storeClosed in class AbstractTopicMapReference

writeReport

public void writeReport(java.io.Writer out,
                        boolean dumpCaches)
                 throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2000-2010 Ontopia.