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

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

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

origin: postgresql/postgresql

  newStream = enableSSL(newStream, requireSSL, info, logger);
          };
sendStartupPacket(newStream, params, logger);
doAuthentication(newStream, host, user, info, logger);
readStartupMessages(newStream, protoConnection, logger);
runInitialQueries(protoConnection, info, logger);
origin: org.postgresql/postgresql

ConnectionFactory connectionFactory = new ConnectionFactoryImpl();
QueryExecutor queryExecutor = connectionFactory.openConnectionImpl(
  hostSpecs, user, database, info);
origin: org.postgresql/postgresql

try {
 try {
  newStream = tryConnect(user, database, info, socketFactory, hostSpec, sslMode);
 } catch (SQLException e) {
  if (sslMode == SslMode.PREFER
   try {
    newStream =
      tryConnect(user, database, info, socketFactory, hostSpec, SslMode.DISABLE);
    LOGGER.log(Level.FINE, "Downgraded to non-encrypted connection for host {0}",
      hostSpec);
    log(Level.FINE, "sslMode==PREFER, however non-SSL connection failed as well", ex);
   try {
    newStream =
      tryConnect(user, database, info, socketFactory, hostSpec, SslMode.REQUIRE);
    LOGGER.log(Level.FINE, "Upgraded to encrypted connection for host {0}",
      hostSpec);
    log(Level.FINE, "sslMode==ALLOW, however SSL connection failed as well", ex);
  hostStatus = isMaster(queryExecutor) ? HostStatus.Master : HostStatus.Secondary;
 runInitialQueries(queryExecutor, info);
 knownStates.put(hostSpec, HostStatus.ConnectFail);
 if (hostIter.hasNext()) {
  log(Level.FINE, "ConnectException occurred while connecting to {0}", cex, hostSpec);
origin: org.postgresql/postgresql

newStream = enableSSL(newStream, sslMode, info, connectTimeout);
List<String[]> paramList = getParametersForStartup(user, database, info);
sendStartupPacket(newStream, paramList);
doAuthentication(newStream, hostSpec.getHost(), user, info);
origin: org.ancoron.postgresql/org.postgresql

  newStream = enableSSL(newStream, requireSSL, info, logger);
          };
sendStartupPacket(newStream, params, logger);
doAuthentication(newStream, host, user, info, logger);
readStartupMessages(newStream, protoConnection, logger);
runInitialQueries(protoConnection, info, logger);
origin: org.ancoron.postgresql/org.postgresql.osgi

  newStream = enableSSL(newStream, requireSSL, info, logger);
          };
sendStartupPacket(newStream, params, logger);
doAuthentication(newStream, host, user, info, logger);
readStartupMessages(newStream, protoConnection, logger);
org.postgresql.core.v3ConnectionFactoryImpl

Javadoc

ConnectionFactory implementation for version 3 (7.4+) connections.

Most used methods

  • doAuthentication
  • enableSSL
  • sendStartupPacket
  • readStartupMessages
  • runInitialQueries
  • <init>
  • closeStream
  • createPostgresTimeZone
    Convert Java time zone to postgres time zone. All others stay the same except that GMT+nn changes to
  • createSSPI
  • getParametersForStartup
  • isMaster
  • log
  • isMaster,
  • log,
  • tryConnect

Popular in Java

  • Reading from database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • scheduleAtFixedRate (Timer)
  • compareTo (BigDecimal)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • JPanel (javax.swing)
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now