Class TableModelExtractor
java.lang.Object
de.yamass.redg.extractor.tablemodelextractor.TableModelExtractor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<TableModel>extractTableModelFromClasses(Path classDir, String packageName, String classPrefix) Extracts allTableModels from the compiled RedG entity classes at the specified location.static List<TableModel>extractTableModelsFromSourceCode(Path srcDir, String packageName, String classPrefix) Extracts allTableModels from the Java source code of the RedG entity classes at the specified location.
-
Constructor Details
-
TableModelExtractor
public TableModelExtractor()
-
-
Method Details
-
extractTableModelsFromSourceCode
public static List<TableModel> extractTableModelsFromSourceCode(Path srcDir, String packageName, String classPrefix) throws IOException, ClassNotFoundException Extracts allTableModels from the Java source code of the RedG entity classes at the specified location.- Parameters:
srcDir- The source folder without the package structure directoriespackageName- The package name of the RedG classesclassPrefix- The class prefix of the RedG classes ("G" if not changed during code generation)- Returns:
- a list of all found
TableModels - Throws:
IOException- Thrown when a file could not be found or readClassNotFoundException- Thrown when theTableModel(and thus redg-models maven module) is not in classpath
-
extractTableModelFromClasses
public static List<TableModel> extractTableModelFromClasses(Path classDir, String packageName, String classPrefix) throws IOException, ClassNotFoundException, NoSuchMethodException, InvocationTargetException, IllegalAccessException Extracts allTableModels from the compiled RedG entity classes at the specified location.- Parameters:
classDir- The class folder without the package structure directoriespackageName- The package name of the RedG classesclassPrefix- The class prefix of the RedG classes ("G" if not changed during code generation)- Returns:
- a list of all found
TableModels - Throws:
IOException- Thrown when a file could not be found or readClassNotFoundException- Thrown when theTableModel(and thus redg-models maven module) is not in classpathNoSuchMethodException- Only thrown if RedG code is invalid. Regenerate code.InvocationTargetException- Only thrown if RedG code is invalid. Regenerate code.IllegalAccessException- Only thrown if RedG code is invalid. Regenerate code.
-