public NetConnection(NetLogWriter netLogWriter, String ipaddr, int portNumber, com.pivotal.gemfirexd.internal.jdbc.ClientBaseDataSource dataSource, boolean isXAConn) throws SqlException { super(netLogWriter, isXAConn, dataSource); this.pooledConnection_ = null; this.closeStatementsOnClose = true; netAgent_ = (NetAgent) super.agent_; if (netAgent_.exceptionOpeningSocket_ != null) { throw netAgent_.exceptionOpeningSocket_; } checkDatabaseName(); this.isXAConnection_ = isXAConn; flowSimpleConnect(); productID_ = targetSrvrlslv_; super.completeConnect(); }
public NetConnection(NetLogWriter netLogWriter, String ipaddr, int portNumber, com.pivotal.gemfirexd.internal.jdbc.ClientBaseDataSource dataSource, boolean isXAConn) throws SqlException { super(netLogWriter, isXAConn, dataSource); this.pooledConnection_ = null; this.closeStatementsOnClose = true; netAgent_ = (NetAgent) super.agent_; if (netAgent_.exceptionOpeningSocket_ != null) { throw netAgent_.exceptionOpeningSocket_; } checkDatabaseName(); this.isXAConnection_ = isXAConn; flowSimpleConnect(); productID_ = targetSrvrlslv_; super.completeConnect(); }
checkDatabaseName(); dataSource_ = dataSource;
checkDatabaseName(); dataSource_ = dataSource;
public NetConnection(NetLogWriter netLogWriter, int driverManagerLoginTimeout, String serverName, int portNumber, String databaseName, java.util.Properties properties) throws SqlException { super(netLogWriter, driverManagerLoginTimeout, serverName, portNumber, databaseName, properties); this.pooledConnection_ = null; this.closeStatementsOnClose = true; netAgent_ = (NetAgent) super.agent_; if (netAgent_.exceptionOpeningSocket_ != null) { throw netAgent_.exceptionOpeningSocket_; } checkDatabaseName(); String password = ClientBaseDataSource.getPassword(properties); securityMechanism_ = ClientBaseDataSource.getSecurityMechanism(properties); isODBCDriver = ClientBaseDataSource.getIsODBCDriver(properties); flowConnect(password, securityMechanism_, true /* GemStone change */); if(!isConnectionNull()) completeConnect(); if (isODBCDriver) { if (SanityManager.TraceClientHA) { SanityManager.DEBUG_PRINT(SanityManager.TRACE_CLIENT_HA, "ODBC: Adding odbc connection to the connections list"); } odbcConnectionList.add(this); } }
public NetConnection(NetLogWriter netLogWriter, int driverManagerLoginTimeout, String serverName, int portNumber, String databaseName, java.util.Properties properties) throws SqlException { super(netLogWriter, driverManagerLoginTimeout, serverName, portNumber, databaseName, properties); this.pooledConnection_ = null; this.closeStatementsOnClose = true; netAgent_ = (NetAgent) super.agent_; if (netAgent_.exceptionOpeningSocket_ != null) { throw netAgent_.exceptionOpeningSocket_; } checkDatabaseName(); String password = ClientBaseDataSource.getPassword(properties); securityMechanism_ = ClientBaseDataSource.getSecurityMechanism(properties); isODBCDriver = ClientBaseDataSource.getIsODBCDriver(properties); flowConnect(password, securityMechanism_, true /* GemStone change */); if(!isConnectionNull()) completeConnect(); if (isODBCDriver) { if (SanityManager.TraceClientHA) { SanityManager.DEBUG_PRINT(SanityManager.TRACE_CLIENT_HA, "ODBC: Adding odbc connection to the connections list"); } odbcConnectionList.add(this); } }