PHP/Java Class Generator Support


This tool is designed in such a way to facilitate the creation of java and php classes in javabeans style. It is extremely useful in case you have a Mysql table and you would like to generate a class over this table which would have a constructor, saving (updating) and drop option, and to provide the possibility to enter and query internal variables assigned for each field of the table.


The advantage this generator provides is generating a class scheleton which may be altered in the future.
The disadvantage consists in reduced applicability as it is useful in case the first field is set as Primary Key.



To access this command:

  • Choose 'PHP/Java Class Generator' from the 'Common' Insert Bar.

Overview

UI Access


Developer name: is the name of the developer - it will be displayed in the header of the source file

Project name: is the name of the project - it will be displayed in the header of the source file

CLASS name: is the name of the class - the name conventions have to be taken into consideration, specific for each language (in java Class, in php class or Class) The name is important when naming a file as the source file will be named
Class.java (having the same form as the name of the class or cls_class.php in php.

VARIABLE name: the name of the variable is important as a "usage code" is generated, as sample code inserted at the beginning of the source. This may be pasted eventually in the source where this class is applied.

TYPE: the type of the generated source

DB fields: is the list of the table field names. Rules: the first field has to be set as Primary Key, the fields are separates by ; and the ones string types (varchar, string, data) have a # at the beginning.

Functions name: the list has to be similar with the fields one. Rules: it is recommended to be the same as the precedent list but without # and with capitalisation. Thus functions will be generated: getId, setId in case the first field is id in the fields list and Id in this one.

DB Table: the name of the table.




Requirements

Type: thirdPartyTags
Product: Dreamweaver MX, Dreamweaver MX 2004
Server Model: PHP MySQL
Database: MySQL

Reviews

Be the first to write a review

You must me logged in to write a review.