Codota Logo
PGObjectFactory.loadConnectionPool
Code IndexAdd Codota to your IDE (free)

How to use
loadConnectionPool
method
in
org.postgresql.ds.common.PGObjectFactory

Best Java code snippets using org.postgresql.ds.common.PGObjectFactory.loadConnectionPool (Showing top 4 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: org.postgresql/postgresql

/**
 * Dereferences a PostgreSQL DataSource. Other types of references are ignored.
 */
public Object getObjectInstance(Object obj, Name name, Context nameCtx,
  Hashtable<?, ?> environment) throws Exception {
 Reference ref = (Reference) obj;
 String className = ref.getClassName();
 // Old names are here for those who still use them
 if (className.equals("org.postgresql.ds.PGSimpleDataSource")
   || className.equals("org.postgresql.jdbc2.optional.SimpleDataSource")
   || className.equals("org.postgresql.jdbc3.Jdbc3SimpleDataSource")) {
  return loadSimpleDataSource(ref);
 } else if (className.equals("org.postgresql.ds.PGConnectionPoolDataSource")
   || className.equals("org.postgresql.jdbc2.optional.ConnectionPool")
   || className.equals("org.postgresql.jdbc3.Jdbc3ConnectionPool")) {
  return loadConnectionPool(ref);
 } else if (className.equals("org.postgresql.ds.PGPoolingDataSource")
   || className.equals("org.postgresql.jdbc2.optional.PoolingDataSource")
   || className.equals("org.postgresql.jdbc3.Jdbc3PoolingDataSource")) {
  return loadPoolingDataSource(ref);
 } else {
  return null;
 }
}
origin: postgresql/postgresql

   || className.equals("org.postgresql.jdbc3.Jdbc3ConnectionPool"))
return loadConnectionPool(ref);
origin: org.ancoron.postgresql/org.postgresql.osgi

   || className.equals("org.postgresql.jdbc3.Jdbc3ConnectionPool"))
return loadConnectionPool(ref);
origin: org.ancoron.postgresql/org.postgresql

   || className.equals("org.postgresql.jdbc3.Jdbc3ConnectionPool"))
return loadConnectionPool(ref);
org.postgresql.ds.commonPGObjectFactoryloadConnectionPool

Popular methods of PGObjectFactory

  • getProperty
  • loadBaseDataSource
  • loadPoolingDataSource
  • loadSimpleDataSource

Popular in Java

  • Creating JSON documents from java classes using gson
  • notifyDataSetChanged (ArrayAdapter)
  • putExtra (Intent)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • JButton (javax.swing)
  • JFileChooser (javax.swing)
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