|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.adempiere.util.ModelClassGenerator
public class ModelClassGenerator
Generate Model Classes extending PO. Base class for CMP interface - will be extended to create byte code directly
| Field Summary | |
|---|---|
static String |
COPY
File Header |
static String |
NL
|
| Constructor Summary | |
|---|---|
ModelClassGenerator(int AD_Table_ID,
String directory,
String packageName)
Generate PO Class |
|
| Method Summary | |
|---|---|
void |
generateJavaGetComment(String propertyName,
String description,
StringBuffer result)
|
void |
generateJavaSetComment(String columnName,
String propertyName,
String description,
StringBuffer result)
|
static void |
main(String[] args)
Generate PO Model Class. |
String |
toString()
String representation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String NL
public static final String COPY
| Constructor Detail |
|---|
public ModelClassGenerator(int AD_Table_ID,
String directory,
String packageName)
AD_Table_ID - table iddirectory - directory with \ or / at the end.packageName - package name| Method Detail |
|---|
public void generateJavaSetComment(String columnName,
String propertyName,
String description,
StringBuffer result)
public void generateJavaGetComment(String propertyName,
String description,
StringBuffer result)
public String toString()
toString in class Objectpublic static void main(String[] args)
Example: java GenerateModel.class mydirectory myPackage 'U','A'
would generate entity type User and Application classes into mydirectory.
Without parameters, the default is used:
C:\Compiere\compiere-all\extend\src\compiere\model\ compiere.model 'U','A'
args - directory package entityType
- directory where to save the generated file
- package of the classes to be generated
- entityType to be generated
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||