public class DBAccessFactory extends Object
| Constructor and Description |
|---|
DBAccessFactory() |
| Modifier and Type | Method and Description |
|---|---|
static IDBAccess |
createDBAccess(DBType dbType,
Properties properties)
create an IDBAccess (an accessor) for a specific database.
|
static IDBAccess |
createDBAccess(DBType dbType,
Properties properties,
String userId,
String password)
create an IDBAccess (an accessor) for a specific database,
supports authentication and authorization.
|
public static IDBAccess createDBAccess(DBType dbType, Properties properties)
dbType - the type of database to access. Can be
properties - to configure the database connection.
public static IDBAccess createDBAccess(DBType dbType, Properties properties, String userId, String password)
dbType - the type of database to access. Can be
properties - to configure the database connection.
userId - password - Copyright © 2016. All rights reserved.