de.topicmapslab.majortom.database.jdbc.index
Class JdbcRevisionIndex

java.lang.Object
  extended by de.topicmapslab.majortom.index.IndexImpl<JdbcTopicMapStore>
      extended by de.topicmapslab.majortom.database.jdbc.index.JdbcRevisionIndex
All Implemented Interfaces:
de.topicmapslab.majortom.model.index.IIndex, de.topicmapslab.majortom.model.index.IRevisionIndex, org.tmapi.index.Index

public class JdbcRevisionIndex
extends IndexImpl<JdbcTopicMapStore>
implements de.topicmapslab.majortom.model.index.IRevisionIndex

Author:
Sven Krosse

Constructor Summary
JdbcRevisionIndex(JdbcTopicMapStore store)
          constructor
 
Method Summary
 void clear()
          
 de.topicmapslab.majortom.model.revision.Changeset getAssociationChangeset(org.tmapi.core.Topic associationType)
          
 java.util.List<de.topicmapslab.majortom.model.revision.IRevision> getAssociationRevisions(org.tmapi.core.Topic associationType)
          
 de.topicmapslab.majortom.model.revision.Changeset getChangeset(org.tmapi.core.Topic topic)
          
 de.topicmapslab.majortom.model.revision.IRevision getFirstRevision()
          
 java.util.Calendar getLastModification()
          
 java.util.Calendar getLastModification(org.tmapi.core.Topic topic)
          
 de.topicmapslab.majortom.model.revision.IRevision getLastRevision()
          
 de.topicmapslab.majortom.model.revision.IRevision getRevision(java.util.Calendar timestamp)
          
 de.topicmapslab.majortom.model.revision.IRevision getRevision(long id)
          
 de.topicmapslab.majortom.model.revision.IRevision getRevision(java.lang.String tag)
          
 java.util.List<de.topicmapslab.majortom.model.revision.IRevision> getRevisions(org.tmapi.core.Topic topic)
          
 void toXml(java.io.File file)
          
 
Methods inherited from class de.topicmapslab.majortom.index.IndexImpl
close, getTopicMapStore, isAutoUpdated, isOpen, open, reindex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.tmapi.index.Index
close, isAutoUpdated, isOpen, open, reindex
 

Constructor Detail

JdbcRevisionIndex

public JdbcRevisionIndex(JdbcTopicMapStore store)
constructor

Parameters:
store -
Method Detail

getAssociationChangeset

public de.topicmapslab.majortom.model.revision.Changeset getAssociationChangeset(org.tmapi.core.Topic associationType)

Specified by:
getAssociationChangeset in interface de.topicmapslab.majortom.model.index.IRevisionIndex

getAssociationRevisions

public java.util.List<de.topicmapslab.majortom.model.revision.IRevision> getAssociationRevisions(org.tmapi.core.Topic associationType)

Specified by:
getAssociationRevisions in interface de.topicmapslab.majortom.model.index.IRevisionIndex

getChangeset

public de.topicmapslab.majortom.model.revision.Changeset getChangeset(org.tmapi.core.Topic topic)

Specified by:
getChangeset in interface de.topicmapslab.majortom.model.index.IRevisionIndex

getFirstRevision

public de.topicmapslab.majortom.model.revision.IRevision getFirstRevision()

Specified by:
getFirstRevision in interface de.topicmapslab.majortom.model.index.IRevisionIndex

getLastModification

public java.util.Calendar getLastModification()

Specified by:
getLastModification in interface de.topicmapslab.majortom.model.index.IRevisionIndex

getLastModification

public java.util.Calendar getLastModification(org.tmapi.core.Topic topic)

Specified by:
getLastModification in interface de.topicmapslab.majortom.model.index.IRevisionIndex

getLastRevision

public de.topicmapslab.majortom.model.revision.IRevision getLastRevision()

Specified by:
getLastRevision in interface de.topicmapslab.majortom.model.index.IRevisionIndex

getRevision

public de.topicmapslab.majortom.model.revision.IRevision getRevision(java.util.Calendar timestamp)

Specified by:
getRevision in interface de.topicmapslab.majortom.model.index.IRevisionIndex

getRevision

public de.topicmapslab.majortom.model.revision.IRevision getRevision(java.lang.String tag)
                                                              throws de.topicmapslab.majortom.model.exception.IndexException

Specified by:
getRevision in interface de.topicmapslab.majortom.model.index.IRevisionIndex
Throws:
de.topicmapslab.majortom.model.exception.IndexException

getRevision

public de.topicmapslab.majortom.model.revision.IRevision getRevision(long id)

Specified by:
getRevision in interface de.topicmapslab.majortom.model.index.IRevisionIndex

getRevisions

public java.util.List<de.topicmapslab.majortom.model.revision.IRevision> getRevisions(org.tmapi.core.Topic topic)

Specified by:
getRevisions in interface de.topicmapslab.majortom.model.index.IRevisionIndex

toXml

public void toXml(java.io.File file)
           throws de.topicmapslab.majortom.model.exception.IndexException

Specified by:
toXml in interface de.topicmapslab.majortom.model.index.IRevisionIndex
Throws:
de.topicmapslab.majortom.model.exception.IndexException

clear

public void clear()

Specified by:
clear in interface de.topicmapslab.majortom.model.index.IIndex
Overrides:
clear in class IndexImpl<JdbcTopicMapStore>