Protege-2000 1.7

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

Description of the class

Author:
Ray Fergerson

Fields inherited from interface edu.stanford.smi.protege.model.KnowledgeBaseFactory
FACTORY_CLASS_NAME
 
Constructor Summary
JdbcKnowledgeBaseFactory()
           
 
Method Summary
 KnowledgeBase createKnowledgeBase(Collection errors)
           
 KnowledgeBaseSourcesEditor createKnowledgeBaseSourcesEditor(String projectName, PropertyList sources)
           
 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 setTablename(PropertyList sources, String tablename)
           
static void setURL(PropertyList sources, String url)
           
static void setUsername(PropertyList sources, String username)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JdbcKnowledgeBaseFactory

public JdbcKnowledgeBaseFactory()
Method Detail

createKnowledgeBase

public KnowledgeBase createKnowledgeBase(Collection errors)
Specified by:
createKnowledgeBase in interface KnowledgeBaseFactory

createKnowledgeBaseSourcesEditor

public KnowledgeBaseSourcesEditor createKnowledgeBaseSourcesEditor(String projectName,
                                                                   PropertyList sources)
Specified by:
createKnowledgeBaseSourcesEditor in interface KnowledgeBaseFactory

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)

toString

public String toString()
Overrides:
toString in class Object

Protege-2000 1.7

Submit a bug report or feature request
Protege-2000 is a trademark of Stanford University.
Copyright (c) 1998-2002 Stanford University.