public class GeneratorExtensions extends Object
GeneratorExtensions generates repositories, service and unit test classes from
the model classes that are in the gen.res.model package.| Modifier and Type | Field and Description |
|---|---|
static String |
SOURCE_FOLDER_SRC_MAIN_WEBAPP
The Constant SOURCE_FOLDER_SRC_MAIN_RESOURCES keeps the relative path for the source folder
'src/main/resources' in maven projects.
|
| Constructor and Description |
|---|
GeneratorExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static void |
generate(PomGenerationModelBean generationData,
boolean withClasses) |
static void |
generateClasses(ClassGenerationModelBean generator,
List<RepositoryClassModelBean> repositoryModels,
PomGenerationModelBean pomGenerationData,
boolean withProjectPath)
Generate classes.
|
static void |
generatePomFiles()
Generate pom files.
|
static void |
generateRepositoryClasses(boolean withProjectPath)
Generate repository classes.
|
static void |
generateRepositoryClasses(ClassGenerationModelBean classGenerationModelBean,
PomGenerationModelBean pomGenerationModelBean,
boolean withProjectPath) |
static List<RepositoryClassModelBean> |
getRepositoryClassModels(ClassGenerationModelBean generator)
Gets the repository class models.
|
static void |
initializeQualifiedModelClassNames(ClassGenerationModelBean generationData)
Reads the qualified entity class names from the entities in the specified package.
|
static void |
initWithdefaultValues(ClassGenerationModelBean generator) |
static ClassGenerationModelBean |
loadClassGenerationModelBean(String classGenerationModel)
Load class generation model.
|
static PomGenerationModelBean |
loadPomGenerationModelBean(String pomGenerationBean)
Load class generation model.
|
public static final String SOURCE_FOLDER_SRC_MAIN_WEBAPP
public static void generateClasses(ClassGenerationModelBean generator, List<RepositoryClassModelBean> repositoryModels, PomGenerationModelBean pomGenerationData, boolean withProjectPath) throws IOException
generator - the generatorrepositoryModels - the repository modelspomGenerationData - the pom generation datawithProjectPath - the with project pathIOException - Signals that an I/O exception has occurred.public static void generatePomFiles()
throws Exception
Exception - the exceptionpublic static void generate(PomGenerationModelBean generationData, boolean withClasses) throws Exception
Exceptionpublic static void generateRepositoryClasses(boolean withProjectPath)
throws Exception
withProjectPath - the with project pathException - the exceptionpublic static void generateRepositoryClasses(ClassGenerationModelBean classGenerationModelBean, PomGenerationModelBean pomGenerationModelBean, boolean withProjectPath) throws Exception, IOException
ExceptionIOExceptionpublic static List<RepositoryClassModelBean> getRepositoryClassModels(ClassGenerationModelBean generator)
generator - the generatorpublic static void initializeQualifiedModelClassNames(ClassGenerationModelBean generationData) throws Exception
generationData - the generation dataException - the exceptionpublic static ClassGenerationModelBean loadClassGenerationModelBean(String classGenerationModel)
classGenerationModel - the class generation modelpublic static void initWithdefaultValues(ClassGenerationModelBean generator)
public static PomGenerationModelBean loadPomGenerationModelBean(String pomGenerationBean)
pomGenerationBean - the pom generation beanCopyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.