Protege 3.0

edu.stanford.smi.protege.model.framestore
Class InMemoryFrameDb_new

java.lang.Object
  extended byedu.stanford.smi.protege.model.framestore.InMemoryFrameDb_new
All Implemented Interfaces:
NarrowFrameStore

public class InMemoryFrameDb_new
extends Object
implements NarrowFrameStore


Constructor Summary
InMemoryFrameDb_new()
           
 
Method Summary
 void addValue(Frame frame, Slot slot, Facet facet, boolean isTemplate, Object value)
           
 void addValues(Frame frame, Slot slot, Facet facet, boolean isTemplate, Collection values)
           
 boolean beginTransaction(String name)
           
 void close()
           
 boolean commitTransaction()
           
 List createList()
           
 Set createSet()
           
 void deleteFrame(Frame frame)
           
static boolean equals(Object o1, Object o2)
           
 Set executeQuery(Query query)
          TODO implement executeQuery
 FrameID generateFrameID()
           
 Set getClosure(Frame frame, Slot slot, Facet facet, boolean isTemplate)
           
 int getClsCount()
           
 NarrowFrameStore getDelegate()
           
 int getFacetCount()
           
 Frame getFrame(FrameID id)
           
 int getFrameCount()
           
 Set getFrames()
           
 Set getFrames(Slot slot, Facet facet, boolean isTemplate, Object value)
           
 Set getFramesWithAnyValue(Slot slot, Facet facet, boolean isTemplate)
           
 Set getMatchingFrames(Slot slot, Facet facet, boolean isTemplate, String value, int maxMatches)
           
 Set getMatchingReferences(String value, int maxMatches)
           
 Set getReferences(Object value)
           
 int getSimpleInstanceCount()
           
 int getSlotCount()
           
 List getValues(Frame frame, Slot slot, Facet facet, boolean isTemplate)
           
 int getValuesCount(Frame frame, Slot slot, Facet facet, boolean isTemplate)
           
 void moveValue(Frame frame, Slot slot, Facet facet, boolean isTemplate, int from, int to)
           
 void removeRecord(Map map, Object key, edu.stanford.smi.protege.model.framestore.Record record)
           
 void removeValue(Frame frame, Slot slot, Facet facet, boolean isTemplate, Object value)
           
 void replaceFrame(Frame frame)
          A complete hack to work around problems with the java packages feature
 boolean rollbackTransaction()
           
 void setValues(Frame frame, Slot slot, Facet facet, boolean isTemplate, Collection values)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InMemoryFrameDb_new

public InMemoryFrameDb_new()
Method Detail

generateFrameID

public FrameID generateFrameID()
Specified by:
generateFrameID in interface NarrowFrameStore

createList

public List createList()

createSet

public Set createSet()

close

public void close()
Specified by:
close in interface NarrowFrameStore

removeRecord

public void removeRecord(Map map,
                         Object key,
                         edu.stanford.smi.protege.model.framestore.Record record)

removeValue

public void removeValue(Frame frame,
                        Slot slot,
                        Facet facet,
                        boolean isTemplate,
                        Object value)
Specified by:
removeValue in interface NarrowFrameStore

moveValue

public void moveValue(Frame frame,
                      Slot slot,
                      Facet facet,
                      boolean isTemplate,
                      int from,
                      int to)
Specified by:
moveValue in interface NarrowFrameStore

getReferences

public Set getReferences(Object value)
Specified by:
getReferences in interface NarrowFrameStore

getMatchingReferences

public Set getMatchingReferences(String value,
                                 int maxMatches)
Specified by:
getMatchingReferences in interface NarrowFrameStore

executeQuery

public Set executeQuery(Query query)
TODO implement executeQuery

Specified by:
executeQuery in interface NarrowFrameStore

setValues

public void setValues(Frame frame,
                      Slot slot,
                      Facet facet,
                      boolean isTemplate,
                      Collection values)
Specified by:
setValues in interface NarrowFrameStore

addValues

public void addValues(Frame frame,
                      Slot slot,
                      Facet facet,
                      boolean isTemplate,
                      Collection values)
Specified by:
addValues in interface NarrowFrameStore

addValue

public void addValue(Frame frame,
                     Slot slot,
                     Facet facet,
                     boolean isTemplate,
                     Object value)

getValues

public List getValues(Frame frame,
                      Slot slot,
                      Facet facet,
                      boolean isTemplate)
Specified by:
getValues in interface NarrowFrameStore

getValuesCount

public int getValuesCount(Frame frame,
                          Slot slot,
                          Facet facet,
                          boolean isTemplate)
Specified by:
getValuesCount in interface NarrowFrameStore

deleteFrame

public void deleteFrame(Frame frame)
Specified by:
deleteFrame in interface NarrowFrameStore

equals

public static boolean equals(Object o1,
                             Object o2)

getFrames

public Set getFrames(Slot slot,
                     Facet facet,
                     boolean isTemplate,
                     Object value)
Specified by:
getFrames in interface NarrowFrameStore

getFramesWithAnyValue

public Set getFramesWithAnyValue(Slot slot,
                                 Facet facet,
                                 boolean isTemplate)
Specified by:
getFramesWithAnyValue in interface NarrowFrameStore

getMatchingFrames

public Set getMatchingFrames(Slot slot,
                             Facet facet,
                             boolean isTemplate,
                             String value,
                             int maxMatches)
Specified by:
getMatchingFrames in interface NarrowFrameStore

beginTransaction

public boolean beginTransaction(String name)
Specified by:
beginTransaction in interface NarrowFrameStore

commitTransaction

public boolean commitTransaction()
Specified by:
commitTransaction in interface NarrowFrameStore

rollbackTransaction

public boolean rollbackTransaction()
Specified by:
rollbackTransaction in interface NarrowFrameStore

replaceFrame

public void replaceFrame(Frame frame)
Description copied from interface: NarrowFrameStore
A complete hack to work around problems with the java packages feature

Specified by:
replaceFrame in interface NarrowFrameStore

getClsCount

public int getClsCount()
Specified by:
getClsCount in interface NarrowFrameStore

getSlotCount

public int getSlotCount()
Specified by:
getSlotCount in interface NarrowFrameStore

getFacetCount

public int getFacetCount()
Specified by:
getFacetCount in interface NarrowFrameStore

getFrameCount

public int getFrameCount()
Specified by:
getFrameCount in interface NarrowFrameStore

getFrames

public Set getFrames()
Specified by:
getFrames in interface NarrowFrameStore

getSimpleInstanceCount

public int getSimpleInstanceCount()
Specified by:
getSimpleInstanceCount in interface NarrowFrameStore

getFrame

public Frame getFrame(FrameID id)
Specified by:
getFrame in interface NarrowFrameStore

toString

public String toString()

getClosure

public Set getClosure(Frame frame,
                      Slot slot,
                      Facet facet,
                      boolean isTemplate)
Specified by:
getClosure in interface NarrowFrameStore

getDelegate

public NarrowFrameStore getDelegate()
Specified by:
getDelegate in interface NarrowFrameStore

Protege 3.0

Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2005 Stanford University.