Oracle9i Business Components for Java Generic Domains API Reference
Oracle9i Jdeveloper (9.0.4)
B10393-01


Package oracle.jbo.domain

The oracle.jbo.domain.* classes, also known as the "JBO Generic Domains", provide lightweight wrappers for the native Java data types, such as java.lang.Number and java.sql.Date.

See:
          Description

Class Summary
Char This class provides a lightweight wrapper for java.lang.Sting, the native Java type for Char objects.
Date This class provides a lightweight wrapper for java.sql.Date, the native Java type for date objects.
Number This class provides a lightweight wrapper for java.lang.Number, the native Java type for number objects.

 

Package oracle.jbo.domain Description

The oracle.jbo.domain.* classes, also known as the "JBO Generic Domains", provide lightweight wrappers for the native Java data types, such as java.lang.Number and java.sql.Date. These wrappers allow the native Java datatypes to be represented as domain objects. A domain is a class for scalar data values that can be accessed in a tier-independent manner, and that has no inherent implication on mappability to database columns.

The oracle.jbo.domain.* classes work by containing an instance of the class of the corresponding native Java datatype. For example, the oracle.jbo.Number class contains an instance of java.lang.Number.

Use the JBO Generic Domain classes when you are writing code against a non-Oracle database; for example, a database that requiires the Oracle Lite or Sun ODBC-JDBC Bridge. Note that there is a separate domain package, known as the "JBO Oracle Domains", that provides lightweight wrappers for the Java representation of the Oracle data types (that is the oracle.sql.* classes). The difference between these two domains are described in the next section.

JBO Oracle Domains Versus JBO Generic Domains

The JBO Oracle Domain package provides lightweight wrappers for the Java representation of the Oracle data types; the JBO Generic Domain package provides lightweight wrappers for the native Java types. The product ships with a zip file for each domain package.

Include the JBO Oracle Domain zip when you are writing code against an Oracle database, using the Oracle JDBC drivers. Use the JBO Generic Domain zip when you are writing code against some other database, using other drivers such as Oracle Lite or Sun ODBC-JDBC Bridge. If you attempt to use the JBO Oracle Domains with a non-Oracle JDBC driver, your code will fail. Similarly, if you attempt to use the JBO Generic Domains with a Oracle JDBC driver, your code will fail.

If you want to write code which is able to run without modification against an Oracle database or a generic database, you switch the underylying domain classes by switching the zip files for the appropriate database.


Oracle9i Business Components for Java Generic Domains API Reference
Oracle9i Jdeveloper (9.0.4)
B10393-01


 

Copyright © 1997, 2003, Oracle. All rights reserved.