public class HibernateProperties extends Object
| Constructor and Description |
|---|
HibernateProperties() |
| Modifier and Type | Method and Description |
|---|---|
void |
addProperty(String key,
String value)
Add a new property.
|
void |
addPropertyFile(String file)
Add a new property file to the list of property files.
|
Properties |
buildProperties()
Build a set of properties from the local properties and
property files.
|
Properties |
getProperties() |
List<String> |
getPropertyFiles() |
void |
setProperties(Properties properties)
Replace the set of properties.
|
void |
setPropertyFiles(List<String> propertyFiles)
Replace the list of property files.
|
public void setPropertyFiles(List<String> propertyFiles)
propertyFiles - the new list of property files to usepublic void addPropertyFile(String file)
file - the new property file.public Properties getProperties()
public void setProperties(Properties properties)
properties - the new set of properties to usepublic void addProperty(String key, String value)
key - the property keyvalue - the property valuepublic Properties buildProperties()
Copyright © 2006–2017 Esito AS. All rights reserved.