Codota Logo
ConnectionFactoryImpl
Code IndexAdd Codota to your IDE (free)

How to use
ConnectionFactoryImpl
in
org.postgresql.core.v2

Best Java code snippets using org.postgresql.core.v2.ConnectionFactoryImpl (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: postgresql/postgresql

  newStream = enableSSL(newStream, requireSSL, info, logger);
sendStartupPacket(newStream, user, database, logger);
doAuthentication(newStream, user, info.getProperty("password"), logger);
readStartupMessages(newStream, protoConnection, logger);
runInitialQueries(protoConnection, info, logger);
origin: org.ancoron.postgresql/org.postgresql.osgi

private void runInitialQueries(ProtocolConnectionImpl protoConnection, String charSet, Logger logger) throws SQLException, IOException {
  byte[][] results = runSetupQuery(protoConnection, "set datestyle = 'ISO'; select version(), case when pg_encoding_to_char(1) = 'SQL_ASCII' then 'UNKNOWN' else getdatabaseencoding() end", true);
    runSetupQuery(protoConnection, sql, false);
    protoConnection.setEncoding(Encoding.getDatabaseEncoding("UNICODE"));
    results = runSetupQuery(protoConnection, "select current_setting('standard_conforming_strings')", true);
    String value = protoConnection.getEncoding().decode(results[0]);
    protoConnection.setStandardConformingStrings(value.equalsIgnoreCase("on"));
origin: org.ancoron.postgresql/org.postgresql

  newStream = enableSSL(newStream, requireSSL, info, logger);
sendStartupPacket(newStream, user, database, logger);
doAuthentication(newStream, user, info.getProperty("password"), logger);
readStartupMessages(newStream, protoConnection, logger);
runInitialQueries(protoConnection, info, logger);
origin: org.ancoron.postgresql/org.postgresql.osgi

  newStream = enableSSL(newStream, requireSSL, info, logger);
sendStartupPacket(newStream, user, database, logger);
doAuthentication(newStream, user, info.getProperty("password"), logger);
readStartupMessages(newStream, protoConnection, logger);
runInitialQueries(protoConnection, info.getProperty("charSet"), logger);
org.postgresql.core.v2ConnectionFactoryImpl

Javadoc

ConnectionFactory implementation for version 2 (pre-7.4) connections.

Most used methods

  • doAuthentication
  • enableSSL
  • readStartupMessages
  • runInitialQueries
  • sendStartupPacket
  • runSetupQuery

Popular in Java

  • Reading from database using SQL prepared statement
  • setScale (BigDecimal)
  • requestLocationUpdates (LocationManager)
  • putExtra (Intent)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Option (scala)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now