### Setting up OOJDBC connections

OOJDBC (Object Oriented Java Database Connection) is defined to cover an OODS (Object Oriented Data Source) with a JDBC interface. It is similar to a JDBC driver and is based on Java application, EJB (Enterprise Java Bean), LDAP (Light Weight Directory Access Protocol), which can be defined as a database. JReport has also developed a tool named Model Wizard, which you can run to import data via XML data source.

Here is the main frame for OOJDBC:

OOJDBC includes Model Wizard and OOJDBC Driver.

- Model Wizard
  Open/Save model file
  Define a Java class as a table
  Define a method as a column
  How to access the instance of the class
- OOJDBC Driver
  Read the table/column definitions from model file
  Return meta-data to JReport
  Construct QUERY data
  Return record to JReport

The following sections explain how to import different kinds of data sources via OOJDBC into a JReport catalog:

- Using XML file as a data source via OOJDBC
- Using class file as a data source via OOJDBC
- Using EJB as a data source via OOJDBC
- Using CSV file as a data source via OOJDBC