The easyjweb tools after reconstruction assists in code generation engine functions and source code

Source: Internet
Author: User
Usage:
1. Command Line (implemented)
Format: Java com. easyjf. Web. Tools. generator. generatortool [-G =] | [-T =] [-xx] <tablename>
2. Eclipse plug-in (under development ...)

Function introduction:
1. As long as reasonable settings are made, applications based on any framework can be generated. By default, J2EE application systems based on easyjweb and easydbo are generated;
2. Generate a domain bean, Dynamic View Script (velocity and JSP) based on the data table name), Dao layer interface, Dao layer interface implementation, service layer interface, service layer interface implementation and other application code;
3. Generate unit test code for each layer based on JUnit;
4. Generate a complete application sample program;
5. regenerate part of the code;
6. Automatically modify part of the code in the file;

Note:Easyjf projects are based on simplified J2EE application development. Therefore, in the easyjweb-based rapid MVC application framework, you have transplanted the common functions of the DaO layer (adding, modifying, deleting, and querying objects) to the business engine of easyjweb tools. Therefore, for small and medium-sized Java Web applications, you do not need to consider building a DaO layer separately (except for special custom functions ).

Demo:
1. Demonstration of separately generated Functions
// Single-product tableedit.html
Java-CP ".. /lib/velocity-1.4.jar ;.. /lib/easydbo0.5.0.jar ;.. /lib/log4j-1.2.13.jar ;.. /lib/dom4j-1.6.1.jar ;.. /lib/commons-beanutils-core1.7.1.jar ;.. /lib/commons-collections-2.1.1.jar ;.. /lib/commons-dbcp-1.2.1.jar ;.. /lib/commons-pool-1.3.jar ;.. /lib/jaxen. jar ;.. /lib/mysql-connector-java-3.1.12-bin.jar ;.. /webapps/WEB-INF/classes ;.. /lib/jtds-1.2.jar ;.. /lib/junit-3.8.1.jar "com. easyjf. web. tools. generator. generatortool-G = com. easyjf. web. tools. generator. generatorwebeditpage message
// Generate tablelist.html
Java-CP ".. /lib/velocity-1.4.jar ;.. /lib/easydbo0.5.0.jar ;.. /lib/log4j-1.2.13.jar ;.. /lib/dom4j-1.6.1.jar ;.. /lib/commons-beanutils-core1.7.1.jar ;.. /lib/commons-collections-2.1.1.jar ;.. /lib/commons-dbcp-1.2.1.jar ;.. /lib/commons-pool-1.3.jar ;.. /lib/jaxen. jar ;.. /lib/mysql-connector-java-3.1.12-bin.jar ;.. /webapps/WEB-INF/classes ;.. /lib/jtds-1.2.jar ;.. /lib/junit-3.8.1.jar "com. easyjf. web. tools. generator. generatortool-G = com. easyjf. web. tools. generator. generatorweblistpage message
// Generate webaction. Java separately
Java-CP ".. /lib/velocity-1.4.jar ;.. /lib/easydbo0.5.0.jar ;.. /lib/log4j-1.2.13.jar ;.. /lib/dom4j-1.6.1.jar ;.. /lib/commons-beanutils-core1.7.1.jar ;.. /lib/commons-collections-2.1.1.jar ;.. /lib/commons-dbcp-1.2.1.jar ;.. /lib/commons-pool-1.3.jar ;.. /lib/jaxen. jar ;.. /lib/mysql-connector-java-3.1.12-bin.jar ;.. /webapps/WEB-INF/classes ;.. /lib/jtds-1.2.jar ;.. /lib/junit-3.8.1.jar "com. easyjf. web. tools. generator. generatortool-G = com. easyjf. web. tools. generator. generatorwebaction message
// Generate domainbean. Java separately
Java-CP ".. /lib/velocity-1.4.jar ;.. /lib/easydbo0.5.0.jar ;.. /lib/log4j-1.2.13.jar ;.. /lib/dom4j-1.6.1.jar ;.. /lib/commons-beanutils-core1.7.1.jar ;.. /lib/commons-collections-2.1.1.jar ;.. /lib/commons-dbcp-1.2.1.jar ;.. /lib/commons-pool-1.3.jar ;.. /lib/jaxen. jar ;.. /lib/mysql-connector-java-3.1.12-bin.jar ;.. /webapps/WEB-INF/classes ;.. /lib/jtds-1.2.jar ;.. /lib/junit-3.8.1.jar "com. easyjf. web. tools. generator. generatortool-G = com. easyjf. web. tools. generator. generatordomainbean message
// Specify the path of domain Bean
Java-CP ".. /lib/velocity-1.4.jar ;.. /lib/easydbo0.5.0.jar ;.. /lib/log4j-1.2.13.jar ;.. /lib/dom4j-1.6.1.jar ;.. /lib/commons-beanutils-core1.7.1.jar ;.. /lib/commons-collections-2.1.1.jar ;.. /lib/commons-dbcp-1.2.1.jar ;.. /lib/commons-pool-1.3.jar ;.. /lib/jaxen. jar ;.. /lib/mysql-connector-java-3.1.12-bin.jar ;.. /webapps/WEB-INF/classes ;.. /lib/jtds-1.2.jar ;.. /lib/junit-3.8.1.jar "com. easyjf. web. tools. generator. generatortool-G = com. easyjf. web. tools. generator. generatordomainbean-package = com. easyjf. example. domain message
// Specify the Controller action path and domain Bean package path to generate the Controller action
Java-CP ".. /lib/velocity-1.4.jar ;.. /lib/easydbo0.5.0.jar ;.. /lib/log4j-1.2.13.jar ;.. /lib/dom4j-1.6.1.jar ;.. /lib/commons-beanutils-core1.7.1.jar ;.. /lib/commons-collections-2.1.1.jar ;.. /lib/commons-dbcp-1.2.1.jar ;.. /lib/commons-pool-1.3.jar ;.. /lib/jaxen. jar ;.. /lib/mysql-connector-java-3.1.12-bin.jar ;.. /webapps/WEB-INF/classes ;.. /lib/jtds-1.2.jar ;.. /lib/junit-3.8.1.jar "com. easyjf. web. tools. generator. generatortool-G = com. easyjf. web. tools. generator. generatordomainbean-package = com. easyjf. example. action-beanpackage = com. easyjf. example. domain message

2. Generate a demo using the specified system category
// The following example shows how to generate tableedit.html using the system category-T = editpage watermark.
Java-CP ".. /lib/velocity-1.4.jar ;.. /lib/easydbo0.5.0.jar ;.. /lib/log4j-1.2.13.jar ;.. /lib/dom4j-1.6.1.jar ;.. /lib/commons-beanutils-core1.7.1.jar ;.. /lib/commons-collections-2.1.1.jar ;.. /lib/commons-dbcp-1.2.1.jar ;.. /lib/commons-pool-1.3.jar ;.. /lib/jaxen. jar ;.. /lib/mysql-connector-java-3.1.12-bin.jar ;.. /webapps/WEB-INF/classes ;.. /lib/jtds-1.2.jar ;.. /lib/junit-3.8.1.jar "com. easyjf. web. tools. generator. generatortool-T = editpage-package = com. easyjf. example. domain message

// Use the system category to generate,-T = listpage catalog to generate tablelist.html
Java-CP ".. /lib/velocity-1.4.jar ;.. /lib/easydbo0.5.0.jar ;.. /lib/log4j-1.2.13.jar ;.. /lib/dom4j-1.6.1.jar ;.. /lib/commons-beanutils-core1.7.1.jar ;.. /lib/commons-collections-2.1.1.jar ;.. /lib/commons-dbcp-1.2.1.jar ;.. /lib/commons-pool-1.3.jar ;.. /lib/jaxen. jar ;.. /lib/mysql-connector-java-3.1.12-bin.jar ;.. /webapps/WEB-INF/classes ;.. /lib/jtds-1.2.jar ;.. /lib/junit-3.8.1.jar "com. easyjf. web. tools. generator. generatortool-T = listpage message

// Use System category generation.-T = bean indicates domain bean generation, that is, tablename. Java
Java-CP ".. /lib/velocity-1.4.jar ;.. /lib/easydbo0.5.0.jar ;.. /lib/log4j-1.2.13.jar ;.. /lib/dom4j-1.6.1.jar ;.. /lib/commons-beanutils-core1.7.1.jar ;.. /lib/commons-collections-2.1.1.jar ;.. /lib/commons-dbcp-1.2.1.jar ;.. /lib/commons-pool-1.3.jar ;.. /lib/jaxen. jar ;.. /lib/mysql-connector-java-3.1.12-bin.jar ;.. /webapps/WEB-INF/classes ;.. /lib/jtds-1.2.jar ;.. /lib/junit-3.8.1.jar "com. easyjf. web. tools. generator. generatortool-T = bean message

// Use the system category to generate.-T = action indicates that the Web controller action is generated, that is, tablenameaction. java.
Java-CP ".. /lib/velocity-1.4.jar ;.. /lib/easydbo0.5.0.jar ;.. /lib/log4j-1.2.13.jar ;.. /lib/dom4j-1.6.1.jar ;.. /lib/commons-beanutils-core1.7.1.jar ;.. /lib/commons-collections-2.1.1.jar ;.. /lib/commons-dbcp-1.2.1.jar ;.. /lib/commons-pool-1.3.jar ;.. /lib/jaxen. jar ;.. /lib/mysql-connector-java-3.1.12-bin.jar ;.. /webapps/WEB-INF/classes ;.. /lib/jtds-1.2.jar ;.. /lib/junit-3.8.1.jar "com. easyjf. web. tools. generator. generatortool-T = Action Message

3. Generate a complete application demo (multiple files are generated at the same time)
Java-CP ".. /lib/velocity-1.4.jar ;.. /lib/easydbo0.5.0.jar ;.. /lib/log4j-1.2.13.jar ;.. /lib/dom4j-1.6.1.jar ;.. /lib/commons-beanutils-core1.7.1.jar ;.. /lib/commons-collections-2.1.1.jar ;.. /lib/commons-dbcp-1.2.1.jar ;.. /lib/commons-pool-1.3.jar ;.. /lib/jaxen. jar ;.. /lib/mysql-connector-java-3.1.12-bin.jar ;.. /webapps/WEB-INF/classes ;.. /lib/jtds-1.2.jar ;.. /lib/junit-3.8.1.jar "com. easyjf. web. tools. generator. generatortool-T = crud message

The current development version of easyjweb is 0.6.3, and the package download version is 0.6.0. The entire project is still in beta and unstable stages. You are welcome to give more suggestions to open-source enthusiasts.
The content mentioned in this article will change with the improvement of the system.

Easyjweb source code SVN
Http://svn.easyjf.com/repository/easyjf/easyjweb/

Easyjf collaboration and Version Control
Http://www.easyjf.com/html/20060527/3393419193595177.htm
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.