Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Oracle Application Development Framework Business Components Generic Domains Java API Reference 10g Release 3 (10.1.3) B16007-01
PREV NEXT | FRAMES NO FRAMES

# Oracle Application Development Framework Generic Domains Java API Reference

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

Packages
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`.

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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Oracle Application Development Framework Business Components Generic Domains Java API Reference 10g Release 3 (10.1.3) B16007-01
PREV NEXT | FRAMES NO FRAMES

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