|
Protege 2.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface to a database. All SQL commands are hidden away in the implementation of this interface.
Field Summary |
Fields inherited from interface edu.stanford.smi.protege.storage.jdbc.DatabaseConstants |
TYPE_BOOLEAN, TYPE_CLASS, TYPE_FACET, TYPE_FLOAT, TYPE_INTEGER, TYPE_INVALID, TYPE_SIMPLE_INSTANCE, TYPE_SLOT, TYPE_STRING |
Method Summary | |
void |
addValue(Frame frame,
Slot slot,
Facet facet,
boolean isTemplate,
Object value)
|
boolean |
beginTransaction()
|
boolean |
endTransaction(boolean doCommit)
|
Collection |
getAllFrameIDs()
|
Collection |
getDBReferences(Object o,
int maxReferences)
returns a collection of DBReference objects |
String |
getDriverName()
|
int |
getFrameCount(int type)
|
Collection |
getFrameIDs(FrameID slot,
FrameID facet,
boolean isTemplate,
String value)
|
Collection |
getFramesWithAnyValue(Slot slot,
Facet facet,
boolean isTemplate)
returns a collection of FrameIDs |
Collection |
getFramesWithValue(Slot slot,
Facet facet,
boolean isTemplate,
Object value)
returns a collection of FrameIDs |
int |
getFrameType(FrameID id)
|
Collection |
getMatchingFrameIDs(FrameID slot,
FrameID facet,
boolean isTemplate,
String matchString,
int maxMatches)
|
String |
getTableName()
|
int |
getValueCount(FrameID frame,
FrameID slot,
FrameID facet,
boolean isTemplate)
|
List |
getValues(FrameID frame,
FrameID slot,
FrameID facet,
boolean isTemplate)
returns a collection of Objects. |
boolean |
hasValueAtSomeFrame(Slot slot,
Facet facet,
boolean isTemplate)
|
void |
removeAllReferences(Frame frame)
|
void |
removeAllValues(Frame frame,
Slot slot,
Facet facet,
boolean isTemplate)
|
void |
removeFramesWithValue(Slot slot,
Facet facet,
boolean isTemplate)
|
void |
removeSingleValue(Frame frame,
Slot slot,
Facet facet,
boolean isTemplate,
Object value)
|
void |
saveKnowledgeBase(KnowledgeBase kb)
|
void |
setTracing(boolean b)
|
void |
setValue(Frame frame,
Slot slot,
Facet facet,
boolean isTemplate,
Object value)
|
void |
setValues(Frame frame,
Slot slot,
Facet facet,
boolean isTemplate,
Collection values)
|
boolean |
supportsTransactions()
|
Methods inherited from interface edu.stanford.smi.protege.util.Disposable |
dispose |
Method Detail |
public void addValue(Frame frame, Slot slot, Facet facet, boolean isTemplate, Object value) throws SQLException
SQLException
public boolean beginTransaction()
public boolean endTransaction(boolean doCommit)
public Collection getAllFrameIDs() throws SQLException
SQLException
public int getFrameCount(int type) throws SQLException
SQLException
public Collection getDBReferences(Object o, int maxReferences) throws SQLException
o
- Description of Parameter
SQLException
- Description of Exceptionpublic String getDriverName()
public Collection getFrameIDs(FrameID slot, FrameID facet, boolean isTemplate, String value) throws SQLException
SQLException
public Collection getFramesWithValue(Slot slot, Facet facet, boolean isTemplate, Object value) throws SQLException
SQLException
public Collection getFramesWithAnyValue(Slot slot, Facet facet, boolean isTemplate) throws SQLException
SQLException
public int getFrameType(FrameID id) throws SQLException
SQLException
public Collection getMatchingFrameIDs(FrameID slot, FrameID facet, boolean isTemplate, String matchString, int maxMatches) throws SQLException
SQLException
public String getTableName()
public int getValueCount(FrameID frame, FrameID slot, FrameID facet, boolean isTemplate) throws SQLException
SQLException
public List getValues(FrameID frame, FrameID slot, FrameID facet, boolean isTemplate) throws SQLException
SQLException
public boolean hasValueAtSomeFrame(Slot slot, Facet facet, boolean isTemplate) throws SQLException
SQLException
public void removeAllReferences(Frame frame) throws SQLException
SQLException
public void removeAllValues(Frame frame, Slot slot, Facet facet, boolean isTemplate) throws SQLException
SQLException
public void removeFramesWithValue(Slot slot, Facet facet, boolean isTemplate) throws SQLException
SQLException
public void removeSingleValue(Frame frame, Slot slot, Facet facet, boolean isTemplate, Object value) throws SQLException
SQLException
public void saveKnowledgeBase(KnowledgeBase kb) throws SQLException
SQLException
public void setTracing(boolean b)
public void setValue(Frame frame, Slot slot, Facet facet, boolean isTemplate, Object value) throws SQLException
SQLException
public void setValues(Frame frame, Slot slot, Facet facet, boolean isTemplate, Collection values) throws SQLException
SQLException
public boolean supportsTransactions()
|
Protege 2.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |