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

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

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

protected Object loadBaseDataSource(BaseDataSource ds, Reference ref)
{
  ds.setDatabaseName(getProperty(ref, "databaseName"));
  ds.setPassword(getProperty(ref, "password"));
  String port = getProperty(ref, "portNumber");
  if (port != null)
  {
    ds.setPortNumber(Integer.parseInt(port));
  }
  ds.setServerName(getProperty(ref, "serverName"));
  ds.setUser(getProperty(ref, "user"));
  String prepareThreshold = getProperty(ref, "prepareThreshold");
  if (prepareThreshold != null)
    ds.setPrepareThreshold(Integer.parseInt(prepareThreshold));
  return ds;
}
origin: org.postgresql/postgresql

private Object loadPoolingDataSource(Reference ref) {
 // If DataSource exists, return it
 String name = getProperty(ref, "dataSourceName");
 PGPoolingDataSource pds = PGPoolingDataSource.getDataSource(name);
 if (pds != null) {
  return pds;
 }
 // Otherwise, create a new one
 pds = new PGPoolingDataSource();
 pds.setDataSourceName(name);
 loadBaseDataSource(pds, ref);
 String min = getProperty(ref, "initialConnections");
 if (min != null) {
  pds.setInitialConnections(Integer.parseInt(min));
 }
 String max = getProperty(ref, "maxConnections");
 if (max != null) {
  pds.setMaxConnections(Integer.parseInt(max));
 }
 return pds;
}
origin: postgresql/postgresql

private Object loadPoolingDataSource(Reference ref)
{
  // If DataSource exists, return it
  String name = getProperty(ref, "dataSourceName");
  PGPoolingDataSource pds = PGPoolingDataSource.getDataSource(name);
  if (pds != null)
  {
    return pds;
  }
  // Otherwise, create a new one
  pds = new PGPoolingDataSource();
  pds.setDataSourceName(name);
  loadBaseDataSource(pds, ref);
  String min = getProperty(ref, "initialConnections");
  if (min != null)
  {
    pds.setInitialConnections(Integer.parseInt(min));
  }
  String max = getProperty(ref, "maxConnections");
  if (max != null)
  {
    pds.setMaxConnections(Integer.parseInt(max));
  }
  return pds;
}
origin: org.ancoron.postgresql/org.postgresql

protected Object loadBaseDataSource(BaseDataSource ds, Reference ref)
{
  ds.setDatabaseName(getProperty(ref, "databaseName"));
  ds.setPassword(getProperty(ref, "password"));
  String port = getProperty(ref, "portNumber");
  if (port != null)
  {
    ds.setPortNumber(Integer.parseInt(port));
  }
  ds.setServerName(getProperty(ref, "serverName"));
  ds.setUser(getProperty(ref, "user"));
  String prepareThreshold = getProperty(ref, "prepareThreshold");
  if (prepareThreshold != null)
    ds.setPrepareThreshold(Integer.parseInt(prepareThreshold));
  return ds;
}
origin: org.ancoron.postgresql/org.postgresql.osgi

protected Object loadBaseDataSource(BaseDataSource ds, Reference ref)
{
  ds.setDatabaseName(getProperty(ref, "databaseName"));
  ds.setPassword(getProperty(ref, "password"));
  String port = getProperty(ref, "portNumber");
  if (port != null)
  {
    ds.setPortNumber(Integer.parseInt(port));
  }
  ds.setServerName(getProperty(ref, "serverName"));
  ds.setUser(getProperty(ref, "user"));
  String prepareThreshold = getProperty(ref, "prepareThreshold");
  if (prepareThreshold != null)
    ds.setPrepareThreshold(Integer.parseInt(prepareThreshold));
  return ds;
}
origin: org.ancoron.postgresql/org.postgresql.osgi

private Object loadPoolingDataSource(Reference ref)
{
  // If DataSource exists, return it
  String name = getProperty(ref, "dataSourceName");
  PGPoolingDataSource pds = PGPoolingDataSource.getDataSource(name);
  if (pds != null)
  {
    return pds;
  }
  // Otherwise, create a new one
  pds = new PGPoolingDataSource();
  pds.setDataSourceName(name);
  loadBaseDataSource(pds, ref);
  String min = getProperty(ref, "initialConnections");
  if (min != null)
  {
    pds.setInitialConnections(Integer.parseInt(min));
  }
  String max = getProperty(ref, "maxConnections");
  if (max != null)
  {
    pds.setMaxConnections(Integer.parseInt(max));
  }
  return pds;
}
origin: org.ancoron.postgresql/org.postgresql

private Object loadPoolingDataSource(Reference ref)
{
  // If DataSource exists, return it
  String name = getProperty(ref, "dataSourceName");
  PGPoolingDataSource pds = PGPoolingDataSource.getDataSource(name);
  if (pds != null)
  {
    return pds;
  }
  // Otherwise, create a new one
  pds = new PGPoolingDataSource();
  pds.setDataSourceName(name);
  loadBaseDataSource(pds, ref);
  String min = getProperty(ref, "initialConnections");
  if (min != null)
  {
    pds.setInitialConnections(Integer.parseInt(min));
  }
  String max = getProperty(ref, "maxConnections");
  if (max != null)
  {
    pds.setMaxConnections(Integer.parseInt(max));
  }
  return pds;
}
org.postgresql.ds.commonPGObjectFactorygetProperty

Popular methods of PGObjectFactory

  • loadBaseDataSource
  • loadConnectionPool
  • loadPoolingDataSource
  • loadSimpleDataSource

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (Timer)
  • compareTo (BigDecimal)
  • runOnUiThread (Activity)
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
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