Class NetConnection

java.lang.Object
org.apache.derby.client.am.ClientConnection
org.apache.derby.client.net.NetConnection
All Implemented Interfaces:
AutoCloseable, Connection, Wrapper, ConnectionCallbackInterface

public class NetConnection extends ClientConnection
  • Field Details

    • msgutil

      private static final MessageUtil msgutil
    • netAgent_

      protected NetAgent netAgent_
    • pooledConnection_

      private final ClientPooledConnection pooledConnection_
    • closeStatementsOnClose

      private final boolean closeStatementsOnClose
    • targetAgent_

      protected int targetAgent_
    • targetCmntcpip_

      protected int targetCmntcpip_
    • targetRdb_

      protected int targetRdb_
    • targetSecmgr_

      int targetSecmgr_
    • targetCmnappc_

      protected int targetCmnappc_
    • targetXamgr_

      protected int targetXamgr_
    • targetSyncptmgr_

      protected int targetSyncptmgr_
    • targetRsyncmgr_

      protected int targetRsyncmgr_
    • targetUnicodemgr_

      protected int targetUnicodemgr_
    • extnam_

      private String extnam_
    • targetSrvclsnm_

      String targetSrvclsnm_
    • targetSrvrlslv_

      String targetSrvrlslv_
    • publicKey_

      private transient byte[] publicKey_
    • targetPublicKey_

      private transient byte[] targetPublicKey_
    • sourceSeed_

      private transient byte[] sourceSeed_
    • targetSeed_

      private transient byte[] targetSeed_
    • prddta_

      private ByteBuffer prddta_
    • crrtkn_

      byte[] crrtkn_
    • targetSecmec_

      private int targetSecmec_
    • securityMechanism_

      private int securityMechanism_
    • deferredResetPassword_

      private transient char[] deferredResetPassword_
    • connectionNull

      private boolean connectionNull
    • xares_

      protected NetXAResource xares_
    • indoubtTransactions_

      private List<Xid> indoubtTransactions_
    • currXACallInfoOffset_

      protected int currXACallInfoOffset_
    • isValidStmt

      private PreparedStatement isValidStmt
      Prepared statement that is used each time isValid() is called on this connection. The statement is created the first time isValid is called and closed when the connection is closed (by the close call).
  • Constructor Details

    • NetConnection

      NetConnection(LogWriter logWriter, int driverManagerLoginTimeout, String serverName, int portNumber, String databaseName, Properties properties) throws SqlException
      Throws:
      SqlException
    • NetConnection

      NetConnection(LogWriter logWriter, String user, String password, BasicClientDataSource40 dataSource, int rmId, boolean isXAConn) throws SqlException
      Throws:
      SqlException
    • NetConnection

      NetConnection(LogWriter logWriter, String user, String password, BasicClientDataSource40 dataSource, int rmId, boolean isXAConn, ClientPooledConnection cpc) throws SqlException
      This constructor is called from the ClientPooledConnection object to enable the NetConnection to pass this on to the associated prepared statement object thus enabling the prepared statement object to in turn raise the statement events to the ClientPooledConnection object
      Parameters:
      logWriter - LogWriter object associated with this connection
      user - user id for this connection
      password - password for this connection
      dataSource - The DataSource object passed from the PooledConnection object from which this constructor was called
      rmId - The Resource manager ID for XA Connections
      isXAConn - true if this is a XA connection
      cpc - The ClientPooledConnection object from which this NetConnection constructor was called. This is used to pass StatementEvents back to the pooledConnection object
      Throws:
      SqlException
  • Method Details