net.anotheria.db.config
Class JDBCConfigFactory

java.lang.Object
  extended by net.anotheria.db.config.JDBCConfigFactory

public final class JDBCConfigFactory
extends Object

A factory for creation of JDBCConfig instance.

Author:
lrosenberg

Method Summary
static JDBCConfig getJDBCConfig()
          Returns the only existing instance.
static JDBCConfig getNamedJDBCConfig(String name)
          Returns a named copy of a jdbc config.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getJDBCConfig

public static JDBCConfig getJDBCConfig()
Returns the only existing instance. of the JDBCConfig.

Returns:
a JDBCConfig

getNamedJDBCConfig

public static JDBCConfig getNamedJDBCConfig(String name)
Returns a named copy of a jdbc config. Useful if you need multiple connections in the same vm.

Parameters:
name -
Returns:


Copyright © 2010-2013 anotheria.net. All Rights Reserved.