コード例 #1
0
ファイル: DbConnIn.java プロジェクト: JordanChin/Ingres
  protected void close() {
    super.close();

    try {
      while (in.receive() != JDBC_TL_DC) ;
      if (trace.enabled(2)) trace.write(title + ": Disconnect Confirm received");
    } catch (Exception ignore) {
    }

    return;
  } // close
コード例 #2
0
ファイル: DbConnIn.java プロジェクト: JordanChin/Ingres
  protected void disconnect() {
    /*
     ** We don't set the input buffer reference to null
     ** here so that we don't have to check it on each
     ** use.  I/O buffer functions will continue to work
     ** until a request results in a stream I/O request,
     ** in which case an exception will be thrown by the
     ** I/O buffer.
     **
     ** We must, however, test the reference for null
     ** since we may be called by the constructor with
     ** a null input buffer.
     */
    if (in != null) {
      try {
        in.close();
      } catch (Exception ignore) {
      }
    }

    super.disconnect();
    return;
  } // disconnect
コード例 #3
0
ファイル: DbConnIn.java プロジェクト: JordanChin/Ingres
 protected void setBuffSize(int size) {
   in.setBuffSize(size);
   super.setBuffSize(size);
   return;
 } // setBuffSize