Package org.postgresql.core

Examples of org.postgresql.core.ProtocolConnection


    try {
      Logger logger = new Logger();
      Properties info = new Properties();
      info.setProperty("password", password);
      ConnectionFactory connectionFactory = new ConnectionFactoryImpl();
      ProtocolConnection connection = connectionFactory.openConnectionImpl(
          host, port, getDataSource().getUser(), "template1", info, logger);
      connection.close();
      passwordCorrect = true;
    } catch (SQLException e) {
      // expected for wrong password
      LOG.warn("Password validation failed.", e);
    }
View Full Code Here

TOP

Related Classes of org.postgresql.core.ProtocolConnection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.