JB_APP_KJV application, DataModule - BookDataModule.java
 
 
 
 
 
 

1. Create DataModule ...

    

  • From File menu,  click New,  the Object Galleray dialog box appears,  from General page select Data Module Icon

                       
    Object Galleray dialog box

    click  Ok  (Data Module Wizard dialog  box appears ...)

                     Data Module Wizard  dialog box

     Type in the Class name Box : BookDataModule
     
    Type in the Directory Box : jb_kjv_app
     
      Check the Generate header and click Next
     

  • The Source (codes) created  by the wizard...
     
     The codes  corresponding ...



     

    ******************************


     

  • Add database  component to  the BookDataModule,java design

     
    Database  components ...
     
     
    From Compenet  palette,  select  Page DataExpress,  select and add com.borland.dx.sql.dataset.database  component to this design

    Note
    ODBC drivers stores KJV2002A
    (KJV2002.mdb)

    Add com.borland.dx.sql.dataset.database  component - MDatabase1, Proprietes
    The Database component is a required element of any application accessing data stored on a SQL server. It encapsulates a database connection through JDBC to the SQL server and also provides lightweight transaction support
     
    Name :
    Connection :
    MDatabase1
    jdbc.odbc.KJV2002A

    How create connection? ...

    From the Proprietes, click Connection, the Connection dialog  box appears ..
                   Connection
    dialog  box
     


     In the Driver combobox, choose or type  sun jdbc.odbc.JdbcOdbcDriver
                   
    In the URL box, click the Button, the ODBC Source dialog  box appears .. from this dialog box select jdbc.odbc.KJV2002A and 
                    click Ok. This selected appears in the URL box (jdbc.odbc.KJV2002A). And then click Ok

     

     
     
     


     

  • the Source (codes)  after .to be added the database  component..
     
     The source/codes  corresponding ...
     


     

 

 

 


Previous Home
3
Next