edu.stanford.smi.protegex.owl.swrl.ddm.impl
Class DatabaseConnectionImpl
java.lang.Object
edu.stanford.smi.protegex.owl.swrl.ddm.impl.DatabaseConnectionImpl
- All Implemented Interfaces:
- DatabaseConnection
public class DatabaseConnectionImpl
- extends Object
- implements DatabaseConnection
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DatabaseConnectionImpl
public DatabaseConnectionImpl(Database database,
String userID,
String password)
throws SQLException
- Throws:
SQLException
open
public void open()
throws JDBCException,
SQLException
- Specified by:
open
in interface DatabaseConnection
- Throws:
JDBCException
SQLException
isOpen
public boolean isOpen()
- Specified by:
isOpen
in interface DatabaseConnection
getDatabase
public Database getDatabase()
- Specified by:
getDatabase
in interface DatabaseConnection
executeQuery
public ResultSet executeQuery(String query)
throws SQLException
- Specified by:
executeQuery
in interface DatabaseConnection
- Throws:
SQLException
close
public void close()
throws SQLException
- Specified by:
close
in interface DatabaseConnection
- Throws:
SQLException
getUserID
public String getUserID()
- Specified by:
getUserID
in interface DatabaseConnection
getPassword
public String getPassword()
- Specified by:
getPassword
in interface DatabaseConnection
getSchemaNames
public Set<String> getSchemaNames()
throws SQLException
- Specified by:
getSchemaNames
in interface DatabaseConnection
- Throws:
SQLException
getTables
public Set<Table> getTables(String schemaName)
throws SQLException
- Specified by:
getTables
in interface DatabaseConnection
- Throws:
SQLException
getPrimaryKeys
public Set<PrimaryKey> getPrimaryKeys(String schemaName)
throws SQLException
- Specified by:
getPrimaryKeys
in interface DatabaseConnection
- Throws:
SQLException
getForeignKeys
public Set<ForeignKey> getForeignKeys(String schemaName)
throws SQLException
- Specified by:
getForeignKeys
in interface DatabaseConnection
- Throws:
SQLException
getTables
public Set<Table> getTables()
throws SQLException
- Specified by:
getTables
in interface DatabaseConnection
- Throws:
SQLException
getPrimaryKeys
public Set<PrimaryKey> getPrimaryKeys()
throws SQLException
- Specified by:
getPrimaryKeys
in interface DatabaseConnection
- Throws:
SQLException
getForeignKeys
public Set<ForeignKey> getForeignKeys()
throws SQLException
- Specified by:
getForeignKeys
in interface DatabaseConnection
- Throws:
SQLException
Submit a bug report or feature request
Copyright (c) 1998-2009 Stanford University.