DAO¶
Operations Method¶
- Create DAO group.
- Set necessary information within the interface tab to create DAO interface class.
- Select DAO tag, and input implementation class information to the DAO list.
- Focus on the implementation class information from the DAO list, and create method in the method list.
- Focus on the created method, and do the input/output mapping with SQL by SQL Builder.
- Repeat 4. and 5. several times to have the necessary methods for DAO, and save the editor.
- Press [ DAO Generation ] button, and generate interface and implementation class of DAO.
Setting Items¶
Each setting item will be created after DAO group is created and focused on.
Interface
Item Description Source Folder Set source folder to generate interface class. Package Name Set package name of interface class. Interface Name Set class name of interface class. Function List Set functions to be defined in this interface class. This function list sets 3 information for 1 function.
* Function Name * Function Return Type * Function Argument ListGeneration Module Specify the framework to be generated. In case of im-JavaEE framework, [ IM Standard ] should
be specified for the generation module.
DAO
It is necessary to set the following information in the DAO list.
Item
Description
DAO Display Name
It sets the display label of this DAO list.
Source Folder
It sets the source folder which generates DAO implementation class.
Package Name
It specifies the package which generates DAO implementation class.
DAO Class Name
It specifies the class name of DAO implementation class.
Connector
It specifies the connector used in this implementation class. For this connector it is necessary to specify the Web archive directory in the project setting. Connector list which can be selected here is the information set in [ <%path of Web archive directory%>/WEB-INF/classes/data-config.xml ].
Connection Name
It specifies the connection label for the connector of implementation class.
Description
It gives the description of this DAO.
If you focus on the DAO list, a list of methods that are set in the interface is displayed in the method list.If you focus on 1 method in the method list, SQL setting can be made by SQL builder.