Package org.adempiere.util
Class ModelClassGenerator
- java.lang.Object
-
- org.adempiere.util.ModelClassGenerator
-
public class ModelClassGenerator extends Object
Generate Model Classes extending PO. Base class for CMP interface - will be extended to create byte code directly- Version:
- $Id: GenerateModel.java,v 1.42 2005/05/08 15:16:56 jjanke Exp $
- Author:
- Jorg Janke, Teo Sarca, SC ARHIPAC SERVICE SRL
- BF [ 1781629 ] Don't use Env.NL in model class/interface generators
- FR [ 1781630 ] Generated class/interfaces have a lot of unused imports
- BF [ 1781632 ] Generated class/interfaces should be UTF-8
- FR [ xxxxxxx ] better formating of generated source
- FR [ 1787876 ] ModelClassGenerator: list constants should be ordered
- FR [ 1803309 ] Model generator: generate get method for Search cols
- FR [ 1990848 ] Generated Models: remove hardcoded field length
- FR [ 2343096 ] Model Generator: Improve Reference Class Detection
- BF [ 2780468 ] ModelClassGenerator: not generating methods for Created*
- --
- FR [ 2848449 ] ModelClassGenerator: Implement model getters https://sourceforge.net/p/adempiere/feature-requests/812/, Victor Perez, e-Evolution
- FR [ 1785001 ] Using ModelPackage of EntityType to Generate Model Class
-
-
Constructor Summary
Constructors Constructor Description ModelClassGenerator(int AD_Table_ID, String directory, String packageName, String entityTypeFilter)
Generate PO Class
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
generateJavaGetComment(String propertyName, String description, StringBuilder result)
void
generateJavaSetComment(String columnName, String propertyName, String description, StringBuilder result)
static void
generateSource(String sourceFolder, String packageName, String entityType, String tableName, String columnEntityType)
String
toString()
String representation
-
-
-
Field Detail
-
NL
public static final String NL
- See Also:
- Constant Field Values
-
-
Method Detail
-
generateJavaSetComment
public void generateJavaSetComment(String columnName, String propertyName, String description, StringBuilder result)
-
generateJavaGetComment
public void generateJavaGetComment(String propertyName, String description, StringBuilder result)
-
toString
public String toString()
String representation
-
-