intra-mart e Builder for Accel Platform User Operations Guide

«  DAO   ::   Contents   ::   Debug (Java Development)  »

SQL Builder

Summary

  • This section describes the setting contents of [SQL Builder] in im-JavaEE Framework Editor.

Operation Steps

  1. Select the method for which you want to set SQL on the DAO tab.

  2. Design the SQL on SQL  Builder [Selection Mode].

    • In the SQL Builder you can design SQL in GUI mode and text mode.

    • In the GUI mode you can set the existing table from the Data Source Explorer.

    • If you want to switch from GUI mode to text mode, right-click on the text mode and select [Direct Edit].
      When you do the edit in text mode, information which was set in GUI mode cannot be used.
    • If you want to switch from text mode to GUI mode, right-click on the text mode and select [GUI Edit].
      When you do the edit in GUI mode, information that was set in text mode cannot be used.
    SQL ビルダ
  3. On the Input Mapping Screen, argument defined in the method and SQL parameter are mapped.

    入力マッピング画面
  4. On the Output Mapping Screen, return value defined in the method and the column of SQL execution result are mapped.

    出力マッピング画面
  5. Save the Editor to complete the SQL setting for DAO method.

SQL Builder [Selection Mode] GUI Screen Menu

Available menu in GUI mode of SQL Builder is as follows.
On this screen each screen is named and explained as follows.
  • Tool Bar
Item Description
Add Column Add OR item which is a condition phrase to the Column Setting Table.
Change SQL Type Change CRUD type of SQL to be edited on GUI.
Add DAO Model Insert model class to the screen.
CSV Import Insert data created by CSV.
SQL Import Import SQL statement.
  • Palette
Item Description
Table Place table on GUI screen.
Column Place column in the table on GUI screen.
Connection Connect tables in different tables.
  • Column Setting Table
Item Description
Column Name
Display column name. You cannot edit column name on the Column Setting Table.
Column name can be changed on GUI screen.
Another Name Specify alias of column.
Table
Display table name. You cannot edit table name on the Column Setting Table.
Table name can be changed on GUI screen.
Output Specify if this column is obtained as SQL execution result.
Sort Type If this column was selected for Output, set the sort sequence.
Sequence Set the sorting priority for sorting this column.
Function Set the function which is an output result of this column.
Group Specify this column by the GROUP BY phrase.
Condition Set the condition of WHERE phrase.
OR Add condition phrase of WHERE by OR.

«  DAO   ::   Contents   ::   Debug (Java Development)  »