Compiere 3.1

org.compiere.tools
Class GenerateModel

java.lang.Object
  extended by org.compiere.tools.GenerateModel

public class GenerateModel
extends Object

Generate Model Classes extending PO. Base class for CMP interface - will be extended to create byte code directly

Version:
$Id$
Author:
Jorg Janke

Field Summary
static String COPY
          File Header
 
Constructor Summary
GenerateModel(int AD_Table_ID, String directory, String packageName, String entityTypeSQL)
          Generate PO Class
 
Method Summary
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

COPY

public static final String COPY
File Header

See Also:
Constant Field Values
Constructor Detail

GenerateModel

public GenerateModel(int AD_Table_ID,
                     String directory,
                     String packageName,
                     String entityTypeSQL)
Generate PO Class

Parameters:
AD_Table_ID - table id
directory - directory with \ or / at the end.
packageName - package name
entity - type sql
Method Detail

toString

public String toString()
String representation

Overrides:
toString in class Object
Returns:
string representation

main

public static void main(String[] args)
Generate PO Model Class.
        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'
        

Parameters:
args - directory package entityType - directory where to save the generated file - package of the classes to be generated - entityType to be generated

Compiere 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.