|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object PersistenceProperties
PersistenceProperties encapsulates the properties needed to configure the persistence environment and provides methods to get properties.
Constructor Summary | |
PersistenceProperties(String filename)
Constuct a PersistenceProperties with properties from the specified file. |
Method Summary | |
String |
getProperty(String name)
Get the value of the specified property. |
String |
getProperty(String pkgName,
String name)
Get the value of the specified property. |
String |
getProperty(String pkgName,
String name,
String defaultValue)
Get the value of the specified property. |
String[] |
getStringArray(String pkgName,
String name)
Gets a string array for the given key from this resource bundle. |
Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PersistenceProperties(String filename) throws PersistenceException
filename
- the name of the properties file.
PersistenceException
- if the properties file is not found
or an I/O exception occurs while loading the properties.Method Detail |
public String getProperty(String name)
name
- the fully qualified property name.
public String getProperty(String pkgName, String name)
pkgName
- the package name.name
- the unqualified property name.
public String getProperty(String pkgName, String name, String defaultValue)
pkgName
- the package name.name
- the unqualified property name.defaultValue
- the default value for the property.
public String[] getStringArray(String pkgName, String name)
pkgName
- the package name.name
- the unqualified property name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |