Codota Logo
AbstractJdbc23PoolingDataSource.getPassword
Code IndexAdd Codota to your IDE (free)

How to use
getPassword
method
in
org.postgresql.ds.jdbc23.AbstractJdbc23PoolingDataSource

Best Java code snippets using org.postgresql.ds.jdbc23.AbstractJdbc23PoolingDataSource.getPassword (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: postgresql/postgresql

/**
 * Gets a <b>non-pooled</b> connection, unless the user and password are the
 * same as the default values for this connection pool.
 *
 * @return A pooled connection.
 * @throws SQLException
 *     Occurs when no pooled connection is available, and a new physical
 *     connection cannot be created.
 */
public Connection getConnection(String user, String password) throws SQLException
{
  // If this is for the default user/password, use a pooled connection
  if (user == null ||
      (user.equals(getUser()) && ((password == null && getPassword() == null) || (password != null && password.equals(getPassword())))))
  {
    return getConnection();
  }
  // Otherwise, use a non-pooled connection
  if (!initialized)
  {
    initialize();
  }
  return super.getConnection(user, password);
}
origin: org.ancoron.postgresql/org.postgresql

/**
 * Gets a <b>non-pooled</b> connection, unless the user and password are the
 * same as the default values for this connection pool.
 *
 * @return A pooled connection.
 * @throws SQLException
 *     Occurs when no pooled connection is available, and a new physical
 *     connection cannot be created.
 */
public Connection getConnection(String user, String password) throws SQLException
{
  // If this is for the default user/password, use a pooled connection
  if (user == null ||
      (user.equals(getUser()) && ((password == null && getPassword() == null) || (password != null && password.equals(getPassword())))))
  {
    return getConnection();
  }
  // Otherwise, use a non-pooled connection
  if (!initialized)
  {
    initialize();
  }
  return super.getConnection(user, password);
}
origin: org.ancoron.postgresql/org.postgresql.osgi

/**
 * Gets a <b>non-pooled</b> connection, unless the user and password are the
 * same as the default values for this connection pool.
 *
 * @return A pooled connection.
 * @throws SQLException
 *     Occurs when no pooled connection is available, and a new physical
 *     connection cannot be created.
 */
public Connection getConnection(String user, String password) throws SQLException
{
  // If this is for the default user/password, use a pooled connection
  if (user == null ||
      (user.equals(getUser()) && ((password == null && getPassword() == null) || (password != null && password.equals(getPassword())))))
  {
    return getConnection();
  }
  // Otherwise, use a non-pooled connection
  if (!initialized)
  {
    initialize();
  }
  return super.getConnection(user, password);
}
org.postgresql.ds.jdbc23AbstractJdbc23PoolingDataSourcegetPassword

Popular methods of AbstractJdbc23PoolingDataSource

  • addDataSource
  • createConnectionPool
    Creates the appropriate ConnectionPool to use for this DataSource.
  • getConnection
    Gets a non-pooled connection, unless the user and password are the same as the default values for th
  • getDataSource
  • getPooledConnection
    Gets a connection from the pool. Will get an available one if present, or create a new one if under
  • getUser
  • initialize
    Initializes this DataSource. If the initialConnections is greater than zero, that number of connecti
  • removeStoredDataSource

Popular in Java

  • Making http post requests using okhttp
  • onCreateOptionsMenu (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • getContentResolver (Context)
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • URI (java.net)
    Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
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