Java API
The Java™ API provides a Java interface with a set of utility classes and methods that you can use to write Java code. The code can access IBM® Product Master entities directly, without the need for custom scripts. You use the Java application programming interface (API) to interact with Product Master.
Developing applications for Product Master by
using Java code has these benefits:
- You can write object-oriented code, which allows good design practices, greater code encapsulation, and reuse.
- You can use existing Java IDEs (integrated development environments) such as Rational® Software Architect.
- Debugging the user code becomes much easier.
- You can call and use any third-party Java code (.jar) within your code easily.
- You can use existing Java skills.
- You can use existing Java utilities, and applications can be called directly in your Java code.
- You can reference the worldwide Java development community to find coding help.
The Java API has three parts:
- The Java API interface (used for development)
- The Java API interface is a set of Java interfaces that document all the classes and methods that are available
to you. This API is included as a
ccd_javaapi.jar
(Version 5.3.2) andccd_javaapi2.jar
(Version 6.0.0 and later) file in the javaapi folder in the Product Master installation directory. Import theccd_javaapi2.jar
file into your Java development environment to allow Java API classes to be developed in isolation from a Product Master server. - The Java API implementation (used at run time)
- The Java API implementation refers to the Product Master internal code that provides the function that is documented in the Java API interface. No action is required to enable this implementation. A Java class that uses the Java API interface to automatically use this internal code when deployed.
- The Java API reference documentation
- Explanations are provided for some common classes and methods that are available in the Java API interface. For a complete technical reference with
detailed explanations of the classes and methods that are available in your Product Master server instance, see the Product Master
Javadoc. This document is generated from the Product Master code. For more information, see
Javadoc
section in the Reference.