public class VZDB extends Object
| Constructor and Description |
|---|
VZDB()
default constructor
|
VZDB(String dbConfigName)
construct the database connector
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
close
|
DBConfig |
getDbConfig() |
javax.persistence.EntityManager |
getEntityManager()
init
|
Map<String,String> |
getProperties() |
void |
init(String dbConfigName)
initialize the properties map for the given Database Configuration name
|
void |
setDbConfig(DBConfig dbConfig) |
void |
setProperties(Map<String,String> properties) |
void |
setProperty(String key,
String value)
set a property with the given key and value
|
public DBConfig getDbConfig()
public void setDbConfig(DBConfig dbConfig)
public void init(String dbConfigName) throws Exception
dbConfigName - - the name of the database configurationExceptionpublic javax.persistence.EntityManager getEntityManager()
public void setProperty(String key, String value)
key - value - public void close()
Copyright © 2018 BITPlan GmbH. All rights reserved.