com.scooterframework.tools.generator
Class CodeGenerator

java.lang.Object
  extended by com.scooterframework.tools.generator.CodeGenerator

public class CodeGenerator
extends java.lang.Object

CodeGenerator generates code for complete CRUD operations.

Usage examples:

        Usage:
            java -jar tools/generate.jar [app_path] scaffold {model_name_in_singular_form}[@connection_name]
            java -jar tools/generate.jar [app_path] scaffold-ajax {model_name_in_singular_form}[@connection_name]
            java -jar tools/generate.jar [app_path] controller controller_name_in_plural_form [method] [method] ...
            java -jar tools/generate.jar [app_path] model {model_name_in_singular_form}[@connection_name]

        Examples:
            This page:
                java -jar tools/generate.jar -help

            Generate scaffold code for blog app's domain named post:
                java -jar tools/generate.jar blog scaffold post

            Generate scaffold code for blog app's domain named post based on blog_oracle database:
                java -jar tools/generate.jar blog scaffold post@blog_oracle

            Generate ajax scaffold code for blog app's domain named post:
                java -jar tools/generate.jar blog scaffold-ajax post

            Generate scaffold code of post model for blog app in user home directory:
                java -jar tools/generate.jar /home/john/projects/blog scaffold post

            Generate scaffold code for blog app's domain named post when blog is the only app under webapps:
                java -jar tools/generate.jar scaffold post

            Generate controller code for blog app's domain post with index and show actions:
                java -jar tools/generate.jar blog controller posts index show

            Generate controller code for domain post with index and show actions when blog is the only app under webapps:
                java -jar tools/generate.jar controller posts index show

            Generate model code for blog app's domain post:
                java -jar tools/generate.jar blog model post

            Generate model code for domain post when blog is the only app under webapps:
                java -jar tools/generate.jar model post
 


Constructor Summary
CodeGenerator()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodeGenerator

public CodeGenerator()
Method Detail

main

public static void main(java.lang.String[] args)
Parameters:
args -