public class ConnectionFactory extends Object
Modifier and Type | Field and Description |
---|---|
private static Connection |
connection |
private static com.mchange.v2.c3p0.ComboPooledDataSource |
dataSource |
Constructor and Description |
---|
ConnectionFactory() |
Modifier and Type | Method and Description |
---|---|
Connection |
connect() |
static Connection |
connect(String... args) |
static Connection |
getConnection() |
static Connection |
getConnection(String... args) |
private static Connection connection
private static com.mchange.v2.c3p0.ComboPooledDataSource dataSource
public static Connection getConnection()
public Connection connect()
public static Connection connect(String... args)
args
- public static Connection getConnection(String... args)
args
-