Protege 2.1

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

java.lang.Object
  extended byedu.stanford.smi.protege.storage.database_with_include.RobustConnection

public class RobustConnection
extends Object


Constructor Summary
RobustConnection(String driver, String url, String username, String password)
           
 
Method Summary
 boolean beginTransaction()
           
 void checkConnection()
           
 void close()
           
 void closeStatements()
           
 void commit()
           
 boolean commitTransaction()
           
 String getBitTypeName()
           
 String getCharTypeName()
           
 String getIntegerTypeName()
           
 String getLongvarcharTypeName()
           
 int getMaxVarcharSize()
           
 PreparedStatement getPreparedStatement(String text)
           
 String getSmallIntTypeName()
           
 Statement getStatement()
           
 String getTinyIntTypeName()
           
 String getVarcharTypeName()
           
 boolean isMsAccess()
           
 boolean isMySql()
           
 boolean isOracle()
           
 boolean isSqlServer()
           
 boolean rollbackTransaction()
           
 void setAutoCommit(boolean b)
           
 boolean supportsBatch()
           
 boolean supportsCaseInsensitiveMatches()
           
 boolean supportsEscapeClause()
           
 boolean supportsIndexOnFunction()
           
 
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

setAutoCommit

public void setAutoCommit(boolean b)
                   throws SQLException
Throws:
SQLException

commit

public void commit()
            throws SQLException
Throws:
SQLException

close

public void close()
           throws SQLException
Throws:
SQLException

closeStatements

public void closeStatements()
                     throws SQLException
Throws:
SQLException

supportsBatch

public boolean supportsBatch()

getPreparedStatement

public PreparedStatement getPreparedStatement(String text)
                                       throws SQLException
Throws:
SQLException

getStatement

public Statement getStatement()
                       throws SQLException
Throws:
SQLException

checkConnection

public void checkConnection()
                     throws SQLException
Throws:
SQLException

isOracle

public boolean isOracle()
                 throws SQLException
Throws:
SQLException

isSqlServer

public boolean isSqlServer()
                    throws SQLException
Throws:
SQLException

isMsAccess

public boolean isMsAccess()
                   throws SQLException
Throws:
SQLException

isMySql

public boolean isMySql()
                throws SQLException
Throws:
SQLException

getMaxVarcharSize

public int getMaxVarcharSize()

getLongvarcharTypeName

public String getLongvarcharTypeName()

getSmallIntTypeName

public String getSmallIntTypeName()

getIntegerTypeName

public String getIntegerTypeName()

getTinyIntTypeName

public String getTinyIntTypeName()

getBitTypeName

public String getBitTypeName()

getVarcharTypeName

public String getVarcharTypeName()

getCharTypeName

public String getCharTypeName()

supportsEscapeClause

public boolean supportsEscapeClause()

supportsCaseInsensitiveMatches

public boolean supportsCaseInsensitiveMatches()
                                       throws SQLException
Throws:
SQLException

supportsIndexOnFunction

public boolean supportsIndexOnFunction()
                                throws SQLException
Throws:
SQLException

beginTransaction

public boolean beginTransaction()

commitTransaction

public boolean commitTransaction()

rollbackTransaction

public boolean rollbackTransaction()

Protege 2.1

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