Protege 3.3.1

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

java.lang.Object
  extended by edu.stanford.smi.protege.storage.database.RobustConnection

public class RobustConnection
extends Object


Constructor Summary
RobustConnection(String driver, String url, String username, String password, TransactionMonitor transactionMonitor, RemoteSession session)
           
 
Method Summary
 boolean beginTransaction()
           
 void checkConnection()
           
 void close()
           
 void closeStatements()
           
 void commit()
           
 boolean commitTransaction()
           
 String getBitTypeName()
           
 String getCharTypeName()
           
 int getDatabaseMajorVersion()
           
 int getDatabaseMinorVersion()
           
 String getDatabaseProductName()
           
 char getEscapeCharacter()
           
 String getEscapeClause()
           
 String getIntegerTypeName()
           
 String getLongvarcharTypeName()
           
 int getMaxVarcharSize()
           
 PreparedStatement getPreparedStatement(String text)
           
 String getSmallIntTypeName()
           
 Statement getStatement()
           
 int getTransactionIsolationLevel()
           
 String getVarcharTypeName()
           
 boolean isMsAccess()
           
 boolean isMySql()
           
 boolean isOracle()
           
 boolean isPostgres()
           
 boolean isSqlServer()
           
 boolean rollbackTransaction()
           
 void setAutoCommit(boolean b)
           
 void setTransactionIsolationLevel(int level)
           
 boolean supportsBatch()
           
 boolean supportsCaseInsensitiveMatches()
           
 boolean supportsIndexOnFunction()
           
 boolean supportsTransactions()
           
 
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,
                        TransactionMonitor transactionMonitor,
                        RemoteSession session)
                 throws SQLException
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

getEscapeCharacter

public char getEscapeCharacter()

getEscapeClause

public String getEscapeClause()

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

isPostgres

public boolean isPostgres()
                   throws SQLException
Throws:
SQLException

getDatabaseProductName

public String getDatabaseProductName()
                              throws SQLException
Throws:
SQLException

getDatabaseMajorVersion

public int getDatabaseMajorVersion()
                            throws SQLException
Throws:
SQLException

getDatabaseMinorVersion

public int getDatabaseMinorVersion()
                            throws SQLException
Throws:
SQLException

getMaxVarcharSize

public int getMaxVarcharSize()

getLongvarcharTypeName

public String getLongvarcharTypeName()

getSmallIntTypeName

public String getSmallIntTypeName()

getIntegerTypeName

public String getIntegerTypeName()

getBitTypeName

public String getBitTypeName()

getVarcharTypeName

public String getVarcharTypeName()

getCharTypeName

public String getCharTypeName()

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()

supportsTransactions

public boolean supportsTransactions()

getTransactionIsolationLevel

public int getTransactionIsolationLevel()
                                 throws SQLException
Throws:
SQLException

setTransactionIsolationLevel

public void setTransactionIsolationLevel(int level)
                                  throws SQLException
Throws:
SQLException

Protege 3.3.1

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