private void initialize(String password, com.pivotal.gemfirexd.internal.jdbc.ClientBaseDataSource dataSource, int rmId, boolean isXAConn) throws SqlException { this.rmId_ = rmId; this.isXAConnection_ = isXAConn; /* (original code) securityMechanism_ = dataSource.getSecurityMechanism(password); setDeferredResetPassword(password); checkDatabaseName(); dataSource_ = dataSource; this.rmId_ = rmId; this.isXAConnection_ = isXAConn; */ // GemStone changes END flowConnect(password, securityMechanism_, true /* GemStone change */); completeConnect(); }
private void initialize(String password, com.pivotal.gemfirexd.internal.jdbc.ClientBaseDataSource dataSource, int rmId, boolean isXAConn) throws SqlException { this.rmId_ = rmId; this.isXAConnection_ = isXAConn; /* (original code) securityMechanism_ = dataSource.getSecurityMechanism(password); setDeferredResetPassword(password); checkDatabaseName(); dataSource_ = dataSource; this.rmId_ = rmId; this.isXAConnection_ = isXAConn; */ // GemStone changes END flowConnect(password, securityMechanism_, true /* GemStone change */); completeConnect(); }
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); } }
flowConnect(password, this.securityMechanism_, false);
flowConnect(password, this.securityMechanism_, false);