public class PersistenceXml extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PERSISTENCE_XML_LOCATION |
| Constructor and Description |
|---|
PersistenceXml() |
| Modifier and Type | Method and Description |
|---|---|
static String |
generateXml(PersistenceUnit aUnit) |
static List<String> |
getListOfUnits() |
static void |
readXml(PersistenceUnit aUnit)
read persistence.xml into given set of properties.
|
public static final String PERSISTENCE_XML_LOCATION
public static List<String> getListOfUnits() throws Exception
Exceptionpublic static void readXml(PersistenceUnit aUnit) throws Exception
aUnit - [IN]
name of persistence unit where all config settings
should be read for.Exception - in case configuration seems to be damaged
but no exception if config will be empty.public static String generateXml(PersistenceUnit aUnit) throws Exception
aUnit - persistence unit to be transformed to Xml.ExceptionCopyright © 2016 as-development.net. All rights reserved.