DB Mapper API

The dbMapper package provides interfaces and classes that allow a Java application to interface to a relational database.

See:
          Description

Packages
com.nec.tdd.tools.dbMapper  

 

The dbMapper package provides interfaces and classes that allow a Java application to interface to a relational database. The main functional areas that are covered are:

 

Following terminology is used throughout the db module documentation :

Terminology:

Basic type:

At present, supported basic types are:
int, short, byte, char, long, float, double, String, StringBuffer, Integer, Short, Byte, Char, Long, Float, Double.
Ex: basic type : int, String
        not a basic type : StringBuffer, myPkg.myClass

Key attribute:

An attribute which is one of the database keys for a mapping entry (isKey set to true).
A key attribute must be of basic type.

Non-key attribute:

An mapping entry attribute which is not a key (isKey == false). Non-key attributes can be of any of the following types:

Primary key:

A class (in OR mapping file) is said to have a primary key if: Note: If both of the above conditions are met, expilicit key class is used.