Writing DBIO

1. Function

It is a resource for developing SQL used in business and is the physical form of the data component.

2. Creating DBIO IO

  1. Create the IO to use in DBIO. Right-click in the Package Explorer → New → select New IO. (Shortcut: Ctrl + N → BXM → select New IO)

    Creating DBIO IO
    Figure 1. Creating DBIO IO
  2. Enter the IO name.

    The DBIO IO was written under the dto package under bxm.dft.smp.onlne.dbio.

    IO Wizard
    Figure 2. IO Wizard
  3. Define fields in the created IO. When you click the DB→IO button, a popup like the one below appears, and you can import columns of the desired table as fields. Or you can enter them directly.

    Creating IO fields from DB schema
    Figure 3. Creating IO fields from DB schema

    Below is the created IO. rowId was arbitrarily added for use.

    Created DSmpEmpTst000Dto IO
    Figure 4. Created DSmpEmpTst000Dto IO

3. Writing DBIO

  1. Create DBIO. Right-click in the Package Explorer → New → select New DBIO.

    Creating DBIO
    Figure 5. Creating DBIO
  2. Enter the DBIO name and logical name.

    New DBIO Wizard
    Figure 6. New DBIO Wizard
  3. Enter the SQL ID in the created DBIO, then click the + button to add it.

    SQL ID list
    Figure 7. SQL ID list
  4. Enter the SQL and input/output types. For detailed DBIO writing instructions, refer to BXM User Guide - Studio. This guide briefly explains how to write DBIO.

    1 : When you click the Default SQL button, SQL is automatically generated according to the selected table and Statement type.

    2 : You can view the automatically generated SQL, and you can directly modify/input it.

    3 : Search and add the input type.

    4 : Search and add the output type.

    Writing DBIO
    Figure 8. Writing DBIO

    Below is the SQL that was entered.

    SELECT
           A.FEDU_EMP_NO AS feduEmpNo
         , A.FEDU_EMP_NM AS feduEmpNm
         , A.FEDU_OCCP_NM AS feduOccpNm
         , A.FEDU_MNGR_EMP_NO AS feduMngrEmpNo
         , A.FEDU_HIRE_DT AS feduHireDt
         , A.FEDU_PAY_AMT AS feduPayAmt
         , A.FEDU_DEPT_NO AS feduDeptNo
    FROM SMP_EMP_TST A
    WHERE A.FEDU_EMP_NO = #{feduEmpNo}

4. SQL Test

For SQL testing, enter test values in the input area, then click the SQL Test button to execute.

Entering test values and SQL Test button
Figure 9. Entering test values and SQL Test button

Below is the result screen of the SQL test that ran normally.

SQL test result screen
Figure 10. SQL test result screen
SWLab Bankware Global
  • 전체
  • BXM
  • BXCM
  • BXCP
  • BXI
제품 선택 시 더 정확한 매뉴얼 가이드를 제공해드립니다.

Copyright© Bankwareglobal All Rights Reserved.