edu.stanford.smi.protege.storage.jdbc
Class RobustConnection
java.lang.Object
edu.stanford.smi.protege.storage.jdbc.RobustConnection
- public class RobustConnection
- extends Object
A connection that can reestablish itself if it gets disconnected. It also caches
prepared statements.
- Author:
- Ray Fergerson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RobustConnection
public RobustConnection(String driver,
String url,
String username,
String password)
throws SQLException
close
public void close()
throws SQLException
- Throws:
SQLException
prepareStatement
public PreparedStatement prepareStatement(String stmtText)
throws SQLException
- Throws:
SQLException
setAutoCommit
public void setAutoCommit(boolean b)
throws SQLException
- Throws:
SQLException
createStatement
public Statement createStatement()
throws SQLException
- Throws:
SQLException
commit
public void commit()
throws SQLException
- Throws:
SQLException
rollback
public void rollback()
throws SQLException
- Throws:
SQLException
getMetaData
public DatabaseMetaData getMetaData()
throws SQLException
- Throws:
SQLException
Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2004 Stanford University.