NEC  Empowered by Innovation
Site Map Contact NEC
Home solutions Products and Services Partners Support About Press
Automated Fingerprint Identification System
Carrier Professional Services
Program Management
Engineer Furnish and Install
Customer Services
Systems Integration and Management
Software Group
Document Solutions
Enterprise Communications
Enterprise Content Management
Openflow Networking
Identity Management
Leasing and Financial Services
Microwave Radio
Optical Networking
Performance Analytics
Retail Applications
Servers
Software
Storage
Virtual PC Center
DB Mapper Package
Below are some of the most frequently asked questions regarding the DB Mapper product. If your question is not answered in our FAQ area, please click here to submit your question to us.

What is DB Mapper?
Where can I find the latest distribution of DB Mapper?
How is DB Mapper licensed?
Where can I get the source code to DB Mapper package?
How do I report bugs or request enhancement?
Does DB Mapper support my database?
Does DB Mapper comply with the SUN's JDO specification?
Is DB Mapper thread-safe?
What is a class mapping and do I need to create one before I can crate or retrieve a Java object from a database?
Do I need to recompile my application each time I add or modify a business class?
Where class mappings are specified and can they be created or modified at run time?
Do I always need to define primary key for a class mapping?
Do I always need to define primary key class for a class mapping?
Can DB Mapper be used for entity bean persistence?
Is there any GUI tool to create/update the DB Mapper XML configuration files?

Optical Networks
   Related Information
Support
Collateral Downloads
Converge! Network Digest Video
Next Generation Networks Video
Press Releases
Request More Information

Answers

What is DB Mapper?
DB Mapper is a Java package which provides powerful functionality to Java applications that interact with a JDBC-capable relational database. By providing various interfaces and classes that implement a type of Data Access Object (DAO) pattern, the DB Mapper package eliminates need for an application to write any SQL statements to perform the typical create, retrieve, update, and delete (CRUD) operations on a database.

Where can I find the latest distribution of DB Mapper?
The DB Mapper distribution is hosted at NEC ONSD software group website.

How is DB Mapper licensed?
DB Mapper Free for personal use and moderately priced for commercial use. Refer to the licensing agreement or contact the ONSD Software Group at onsd@necam.com for details.

Where can I get the source code to DB Mapper package?
Please see the ONSD Software Group pages for licensing agreement, downloads and contact information. How do I report bugs or request enhancement?
For information on submitting questions or bugs or other technical support please see our support options. Try to provide as much detail as possible, such as version of DB Mapper you are using, a short example reproducing the problem etc.

Does DB Mapper support my database?
Ideally, to use DB Mapper, you will need to have access to a relational database server and Java class libraries that include a JDBC 2.0 compliant driver class. The examples provided with DB Mapper distribution have been tested with a variety of popular JDBC-capable RDBMS products, such as Oracle 8.0 and 8i (www.oracle.com), MySQL 3.23.39 (www.mysql.com), PostGres 7.2.2 (www.postgresql.org), HyperSonic Database 1.7.1(hsqldb.sourceforge.net).

Does DB Mapper comply with the SUN's JDO specification?
No, DB Mapper doesn't comply with the SUN's JDO specification.

Is DB Mapper thread-safe?
Yes, DB Mapper is designed to work well with multi-threaded applications.

What is a class mapping and do I need to create one before I can crate or retrieve a Java object from a database?
DB Mapper requires some specific information about the objects to be saved, and the database to which they are saved. The class mapping includes information such as which tables and columns of the database are used to store the various fields of the class.

Do I need to recompile my application each time I add or modify a business class?
No. DB Mapper is based on "write once, persist anywhere" DAO pattern. DB Mapper uses OR mapping and java reflection API to map java class to relation database tables.

Where class mappings are specified and can they be created or modified at run time?
The most common way to specify class mappings is to use an OR mapping XML file(s) (See user guide "Creating an object-relational (OR) mapping file" for a more detailed discussion on the OR mapping XML file format.). However, its possible to a new class mappings or modify an existing class mapping using DB Mapper API, please refer to DB Mapper javadoc documentaion (included with distribution) for details.

Do I always need to define primary key for a class mapping?
No. The definition of a primary key for a class that uses the DB Mapper package is optional. However, most of the operations such as updating objects, deleting or finding objects by key, etc., do require that a primary key be defined, that can be used to uniquely identify a Java object in database.

Do I always need to define primary key class for a class mapping?
No. Only some of the DBInterface methods, such as findByPrimaryKey(), or findAllPrimaryKeys(), require that a primary key class be defined. In the case where a primary key consists of a single key field, there is no need for an application to define a primary key class.

Can DB Mapper be used for entity bean persistence?
Yes. DB Mapper can used by an application programmer as a persistence mechanism for BMP (bean managed persistence) entity beans. See user guide "EJB Example" for more details. On the other hand, DB Mapper can be used by an EJB container vendor as a persistence mechanism for CMP (container managed persistence) entity beans.

Is there any GUI tool to create/update the DB Mapper XML configuration files?
No. The current DB Mapper distribution does not include any GUI tool to modify or create XML configuration files. However creating or editing DB Mapper XML files are quite easy and straight, and discussed in detail in the user guide.

 

 

 

 

 

 

 

 

 

   I found what I needed.   disagree
agree Submit
   I found it quickly.   disagree
agree

www.necam.com
© 2012 NEC Corporation of America
Terms of Use Privacy Policy
 
NEC Information Security Statement - NEC Corporation

NEC