Protege 2.1

edu.stanford.smi.protege.storage.jdbc
Class RobustConnection

java.lang.Object
  extended byedu.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

Constructor Summary
RobustConnection(String driver, String url, String username, String password)
           
 
Method Summary
 void close()
           
 void commit()
           
 Statement createStatement()
           
 DatabaseMetaData getMetaData()
           
 PreparedStatement prepareStatement(String stmtText)
           
 void rollback()
           
 void setAutoCommit(boolean b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RobustConnection

public RobustConnection(String driver,
                        String url,
                        String username,
                        String password)
                 throws SQLException
Method Detail

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

Protege 2.1

Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2004 Stanford University.