home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 1999 April / DPPCPRO0499.ISO / April / Notes / 50b2wic.exe / DATA1.CAB / NotesProgramFilesJavaSupport / rt.jar / java / sql / Connection.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-04-23  |  1.4 KB  |  48 lines

  1. package java.sql;
  2.  
  3. public interface Connection {
  4.    int TRANSACTION_NONE = 0;
  5.    int TRANSACTION_READ_UNCOMMITTED = 1;
  6.    int TRANSACTION_READ_COMMITTED = 2;
  7.    int TRANSACTION_REPEATABLE_READ = 4;
  8.    int TRANSACTION_SERIALIZABLE = 8;
  9.  
  10.    Statement createStatement() throws SQLException;
  11.  
  12.    PreparedStatement prepareStatement(String var1) throws SQLException;
  13.  
  14.    CallableStatement prepareCall(String var1) throws SQLException;
  15.  
  16.    String nativeSQL(String var1) throws SQLException;
  17.  
  18.    void setAutoCommit(boolean var1) throws SQLException;
  19.  
  20.    boolean getAutoCommit() throws SQLException;
  21.  
  22.    void commit() throws SQLException;
  23.  
  24.    void rollback() throws SQLException;
  25.  
  26.    void close() throws SQLException;
  27.  
  28.    boolean isClosed() throws SQLException;
  29.  
  30.    DatabaseMetaData getMetaData() throws SQLException;
  31.  
  32.    void setReadOnly(boolean var1) throws SQLException;
  33.  
  34.    boolean isReadOnly() throws SQLException;
  35.  
  36.    void setCatalog(String var1) throws SQLException;
  37.  
  38.    String getCatalog() throws SQLException;
  39.  
  40.    void setTransactionIsolation(int var1) throws SQLException;
  41.  
  42.    int getTransactionIsolation() throws SQLException;
  43.  
  44.    SQLWarning getWarnings() throws SQLException;
  45.  
  46.    void clearWarnings() throws SQLException;
  47. }
  48.