edu.stanford.smi.protege.storage.jdbc
Class JdbcKnowledgeBaseFactory
java.lang.Object
edu.stanford.smi.protege.storage.jdbc.JdbcKnowledgeBaseFactory
- All Implemented Interfaces:
- KnowledgeBaseFactory
- public class JdbcKnowledgeBaseFactory
- extends Object
- implements KnowledgeBaseFactory
Storage backend for relational databases. This class doesn't actually contain the SQL code but delegates to the
class that does (an implementation of DatabaseManager
). It simply translates between the two interfaces.
- Author:
- Ray Fergerson
Method Summary |
KnowledgeBase |
createKnowledgeBase(Collection errors)
|
KnowledgeBaseSourcesEditor |
createKnowledgeBaseSourcesEditor(String projectURIString,
PropertyList sources)
Note that this method should really take a URI for a param rather than a string. |
String |
getDescription()
|
static String |
getDriver(PropertyList sources)
|
static String |
getPassword(PropertyList sources)
|
String |
getProjectFilePath()
|
static String |
getTableName(PropertyList sources)
|
static String |
getURL(PropertyList sources)
|
static String |
getUsername(PropertyList sources)
|
void |
includeKnowledgeBase(KnowledgeBase kb,
PropertyList sources,
Collection errors)
|
boolean |
isComplete(PropertyList sources)
|
void |
loadKnowledgeBase(KnowledgeBase kb,
PropertyList sources,
Collection errors)
|
void |
loadKnowledgeBase(KnowledgeBase kb,
String driver,
String tableName,
String url,
String username,
String password,
Collection errors)
|
void |
saveKnowledgeBase(KnowledgeBase kb,
PropertyList sources,
Collection errors)
|
static void |
setDriver(PropertyList sources,
String driver)
|
static void |
setPassword(PropertyList sources,
String password)
|
static void |
setSources(PropertyList sources,
String driver,
String url,
String table,
String user,
String password)
|
static void |
setTablename(PropertyList sources,
String tablename)
|
static void |
setURL(PropertyList sources,
String url)
|
static void |
setUsername(PropertyList sources,
String username)
|
String |
toString()
|
JdbcKnowledgeBaseFactory
public JdbcKnowledgeBaseFactory()
createKnowledgeBase
public KnowledgeBase createKnowledgeBase(Collection errors)
- Specified by:
createKnowledgeBase
in interface KnowledgeBaseFactory
createKnowledgeBaseSourcesEditor
public KnowledgeBaseSourcesEditor createKnowledgeBaseSourcesEditor(String projectURIString,
PropertyList sources)
- Description copied from interface:
KnowledgeBaseFactory
- Note that this method should really take a URI for a param rather than a string. I maintain the string
for backwards compatibility
- Specified by:
createKnowledgeBaseSourcesEditor
in interface KnowledgeBaseFactory
- Parameters:
projectURIString
- sources
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interface KnowledgeBaseFactory
getDriver
public static String getDriver(PropertyList sources)
getPassword
public static String getPassword(PropertyList sources)
getProjectFilePath
public String getProjectFilePath()
- Specified by:
getProjectFilePath
in interface KnowledgeBaseFactory
getTableName
public static String getTableName(PropertyList sources)
getURL
public static String getURL(PropertyList sources)
getUsername
public static String getUsername(PropertyList sources)
includeKnowledgeBase
public void includeKnowledgeBase(KnowledgeBase kb,
PropertyList sources,
Collection errors)
- Specified by:
includeKnowledgeBase
in interface KnowledgeBaseFactory
isComplete
public boolean isComplete(PropertyList sources)
- Specified by:
isComplete
in interface KnowledgeBaseFactory
loadKnowledgeBase
public void loadKnowledgeBase(KnowledgeBase kb,
PropertyList sources,
Collection errors)
- Specified by:
loadKnowledgeBase
in interface KnowledgeBaseFactory
loadKnowledgeBase
public void loadKnowledgeBase(KnowledgeBase kb,
String driver,
String tableName,
String url,
String username,
String password,
Collection errors)
saveKnowledgeBase
public void saveKnowledgeBase(KnowledgeBase kb,
PropertyList sources,
Collection errors)
- Specified by:
saveKnowledgeBase
in interface KnowledgeBaseFactory
setDriver
public static void setDriver(PropertyList sources,
String driver)
setPassword
public static void setPassword(PropertyList sources,
String password)
setTablename
public static void setTablename(PropertyList sources,
String tablename)
setURL
public static void setURL(PropertyList sources,
String url)
setUsername
public static void setUsername(PropertyList sources,
String username)
setSources
public static void setSources(PropertyList sources,
String driver,
String url,
String table,
String user,
String password)
toString
public String toString()
Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2004 Stanford University.