|
Protege-2000 1.7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.stanford.smi.protege.model.framedb.FrameDBStorage
Description of Type
Constructor Summary | |
FrameDBStorage()
|
Method Summary | |
void |
addFrame(Frame frame)
Add an existing frame to the frame container |
void |
addValue(Frame frame,
Slot slot,
Facet facet,
boolean isTemplate,
Object value)
|
void |
addValue(Frame frame,
Slot slot,
Facet facet,
boolean isTemplate,
Object value,
int index)
|
void |
addValues(FrameID frame,
FrameID slot,
FrameID facet,
boolean isTemplate,
Collection values)
|
boolean |
beginTransaction()
|
boolean |
containsFrame(Frame frame)
|
boolean |
containsFrame(String name)
|
void |
dispose()
|
boolean |
endTransaction(boolean doCommit)
|
void |
flush()
|
int |
getClsCount()
|
int |
getFacetCount()
|
Frame |
getFrame(FrameID id)
|
Frame |
getFrame(String name)
|
int |
getFrameCount()
|
Collection |
getFrames()
|
List |
getLoadedValues(FrameID frame,
FrameID slot,
FrameID facet,
boolean isTemplate)
|
Collection |
getMatchingFrames(Slot slot,
Facet facet,
boolean isTemplate,
String s,
int maxMatches)
|
Collection |
getRecords()
|
Collection |
getReferences(Object o,
int maxReferences)
|
Collection |
getReferences(Slot slot,
Facet facet,
boolean isTemplate,
Object o,
int maxReferences)
|
int |
getSlotCount()
|
Object |
getValue(Frame frame,
Slot slot,
Facet facet,
boolean isTemplate)
|
int |
getValueCount(Frame frame,
Slot slot,
Facet facet,
boolean isTemplate)
|
ArrayList |
getValues(Frame frame,
Slot slot,
Facet facet,
boolean isTemplate)
|
boolean |
hasValue(Frame frame,
Slot slot,
Facet facet,
boolean isTemplate,
Object value)
|
boolean |
hasValueAtSomeFrame(Slot slot,
Facet facet,
boolean isTemplate)
|
boolean |
isCaching()
|
void |
moveValue(Frame frame,
Slot slot,
Facet facet,
boolean isTemplate,
int from,
int to)
|
void |
moveValue(Frame frame,
Slot slot,
Facet facet,
boolean isTemplate,
Object value,
int toIndex)
|
void |
remove(Frame frame,
Slot slot,
Facet facet,
boolean isTemplate)
|
void |
removeFrame(Frame frame)
Removes all references to a frame from storage. |
void |
removeSingleValue(Frame frame,
Slot slot,
Facet facet,
boolean isTemplate,
Object value)
remove a single occurance of value from the slot/facet value |
Object |
removeValue(Frame frame,
Slot slot,
Facet facet,
boolean isTemplate,
int index)
|
void |
removeValues(Slot slot,
Facet facet,
boolean isTemplate,
Cls cls)
|
void |
replace(Frame from,
Frame to)
replaceValue method comment. |
void |
replaceValue(Frame frame,
Slot slot,
Facet facet,
boolean isTemplate,
int index,
Object value)
replaceValue method comment. |
void |
replaceValue(Frame frame,
Slot slot,
Facet facet,
boolean isTemplate,
Object fromValue,
Object toValue)
replaceValue method comment. |
void |
setCaching(boolean caching)
|
void |
setUseWeakReference(boolean b)
Used for testing only. |
void |
setValue(Frame frame,
Slot slot,
Facet facet,
boolean isTemplate,
Object value)
setValue method comment. |
void |
setValues(FrameID frame,
FrameID slot,
FrameID facet,
boolean isTemplate,
Collection values)
setValues method comment. |
void |
setValues(Frame frame,
Slot slot,
Facet facet,
boolean isTemplate,
Collection values)
setValues method comment. |
boolean |
supportsTransactions()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public FrameDBStorage()
Method Detail |
public void addFrame(Frame frame)
addFrame
in interface Storage
public void addValue(Frame frame, Slot slot, Facet facet, boolean isTemplate, Object value)
addValue
in interface Storage
public void addValue(Frame frame, Slot slot, Facet facet, boolean isTemplate, Object value, int index)
addValue
in interface Storage
public void addValues(FrameID frame, FrameID slot, FrameID facet, boolean isTemplate, Collection values)
public boolean beginTransaction()
beginTransaction
in interface Storage
public boolean containsFrame(Frame frame)
containsFrame
in interface Storage
public boolean containsFrame(String name)
containsFrame
in interface Storage
public void dispose()
dispose
in interface Disposable
public boolean endTransaction(boolean doCommit)
endTransaction
in interface Storage
public void flush()
public Frame getFrame(FrameID id)
getFrame
in interface Storage
public Frame getFrame(String name)
getFrame
in interface Storage
public int getFrameCount()
getFrameCount
in interface Storage
public int getFacetCount()
getFacetCount
in interface Storage
public int getSlotCount()
getSlotCount
in interface Storage
public int getClsCount()
getClsCount
in interface Storage
public Collection getFrames()
getFrames
in interface Storage
public List getLoadedValues(FrameID frame, FrameID slot, FrameID facet, boolean isTemplate)
public Collection getMatchingFrames(Slot slot, Facet facet, boolean isTemplate, String s, int maxMatches)
getMatchingFrames
in interface Storage
public Collection getRecords()
public Collection getReferences(Slot slot, Facet facet, boolean isTemplate, Object o, int maxReferences)
public Collection getReferences(Object o, int maxReferences)
getReferences
in interface Storage
public Object getValue(Frame frame, Slot slot, Facet facet, boolean isTemplate)
getValue
in interface Storage
public int getValueCount(Frame frame, Slot slot, Facet facet, boolean isTemplate)
getValueCount
in interface Storage
public ArrayList getValues(Frame frame, Slot slot, Facet facet, boolean isTemplate)
getValues
in interface Storage
public boolean hasValue(Frame frame, Slot slot, Facet facet, boolean isTemplate, Object value)
hasValue
in interface Storage
public boolean hasValueAtSomeFrame(Slot slot, Facet facet, boolean isTemplate)
hasValueAtSomeFrame
in interface Storage
public boolean isCaching()
public void moveValue(Frame frame, Slot slot, Facet facet, boolean isTemplate, int from, int to)
moveValue
in interface Storage
public void moveValue(Frame frame, Slot slot, Facet facet, boolean isTemplate, Object value, int toIndex)
public void remove(Frame frame, Slot slot, Facet facet, boolean isTemplate)
remove
in interface Storage
public void removeFrame(Frame frame)
removeFrame
in interface Storage
public void removeSingleValue(Frame frame, Slot slot, Facet facet, boolean isTemplate, Object value)
Storage
removeSingleValue
in interface Storage
public Object removeValue(Frame frame, Slot slot, Facet facet, boolean isTemplate, int index)
public void removeValues(Slot slot, Facet facet, boolean isTemplate, Cls cls)
removeValues
in interface Storage
public void replace(Frame from, Frame to)
replace
in interface Storage
public void replaceValue(Frame frame, Slot slot, Facet facet, boolean isTemplate, int index, Object value)
public void replaceValue(Frame frame, Slot slot, Facet facet, boolean isTemplate, Object fromValue, Object toValue)
public void setCaching(boolean caching)
public void setUseWeakReference(boolean b)
public void setValue(Frame frame, Slot slot, Facet facet, boolean isTemplate, Object value)
setValue
in interface Storage
public void setValues(Frame frame, Slot slot, Facet facet, boolean isTemplate, Collection values)
setValues
in interface Storage
public void setValues(FrameID frame, FrameID slot, FrameID facet, boolean isTemplate, Collection values)
public boolean supportsTransactions()
supportsTransactions
in interface Storage
public String toString()
toString
in class Object
|
Protege-2000 1.7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |