public class DBCreator extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DBCreator.EOperation |
| Constructor and Description |
|---|
DBCreator() |
| Modifier and Type | Method and Description |
|---|---|
void |
doOperation(DBCreator.EOperation eOperation)
do the requested operation.
|
void |
setAdminCredentials(String sUser,
String sPassword)
set the credentials for an administrative DB account used here
to create all needed resources.
|
void |
setEntities(List<String> lEntities)
same as setEntities(java.lang.String...)
|
void |
setEntities(String... lEntities)
define the list of entities.
|
void |
setPersistenceUnits(List<String> lUnits)
same as setPersistenceUnits(java.lang.String...)
|
void |
setPersistenceUnits(String... lUnits)
define the list of persistence unit names.
|
public void setAdminCredentials(String sUser, String sPassword) throws Exception
sUser - [IN]
the name of the admin user.sPassword - [IN]
the password of the admin user.Exceptionpublic void setPersistenceUnits(List<String> lUnits) throws Exception
Exceptionpublic void setEntities(List<String> lEntities) throws Exception
Exceptionpublic void setPersistenceUnits(String... lUnits) throws Exception
lUnits - [IN]
the list of a persistence unit names.Exceptionpublic void setEntities(String... lEntities) throws Exception
lEntities - [IN]
the list of a persistence unit names.Exceptionpublic void doOperation(DBCreator.EOperation eOperation) throws Exception
eOperation - [IN]
the requested operation.ExceptionCopyright © 2016 as-development.net. All rights reserved.