|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectiitb.con.net.codegenerator.CodeGenerator
public class CodeGenerator
CodeGenerator generates java code for the given Type, it may be Entity or Relation. The generated java class will be used for instantiating the type. User can import these generated classes into their development environment to instantiate the types.
Method Summary | |
---|---|
boolean |
generateCode(java.lang.String path,
Entity entity)
Generates the code for Entity type |
boolean |
generateCode(java.lang.String path,
Relation relation,
java.lang.String leftEntityName,
java.lang.String rightEntityName)
Generates the code for Relation type |
static CodeGenerator |
getInstance()
Method to facilitate the singelton |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean generateCode(java.lang.String path, Entity entity)
path
- path location where the java file to be createdentity
- Entity
public boolean generateCode(java.lang.String path, Relation relation, java.lang.String leftEntityName, java.lang.String rightEntityName)
path
- path location where the java file to be createdrelation
- Relation
leftEntityName
- name of relation's left entityrightEntityName
- name of relation's right entity
public static CodeGenerator getInstance()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |