de.greenrobot.daogenerator
Class DaoGenerator

java.lang.Object
  extended by de.greenrobot.daogenerator.DaoGenerator

public class DaoGenerator
extends java.lang.Object

    

Once you have your model created, use this class to generate entities and DAOs.


Constructor Summary
DaoGenerator()
           
 
Method Summary
 void generateAll(Schema schema, java.lang.String outDir)
          Generates all entities and DAOs for the given schema.
 void generateAll(Schema schema, java.lang.String outDir, java.lang.String outDirTest)
          Generates all entities and DAOs for the given schema.
protected  java.io.File toFileForceExists(java.lang.String filename)
           
protected  java.io.File toJavaFilename(java.io.File outDirFile, java.lang.String javaPackage, java.lang.String javaClassName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DaoGenerator

public DaoGenerator()
             throws java.io.IOException
Throws:
java.io.IOException
Method Detail

generateAll

public void generateAll(Schema schema,
                        java.lang.String outDir)
                 throws java.lang.Exception
Generates all entities and DAOs for the given schema.

Throws:
java.lang.Exception

generateAll

public void generateAll(Schema schema,
                        java.lang.String outDir,
                        java.lang.String outDirTest)
                 throws java.lang.Exception
Generates all entities and DAOs for the given schema.

Throws:
java.lang.Exception

toFileForceExists

protected java.io.File toFileForceExists(java.lang.String filename)
                                  throws java.io.IOException
Throws:
java.io.IOException

toJavaFilename

protected java.io.File toJavaFilename(java.io.File outDirFile,
                                      java.lang.String javaPackage,
                                      java.lang.String javaClassName)


Copyright © 2011-2012 greenrobot.de. All Rights Reserved.