Skip Headers
Oracle® TopLink API Modifications
11g Release 1 (11.1.1.1.0)
 

 

Oracle® TopLink

API Modifications

11g Release 1 (11.1.1.1.0)

 

July 2009

This document describes the API modifications in Oracle TopLink as of 11g Release 1 (11.1.1.1.0).

This document provides information on:

1 API Deprecated in this Release

In 11g Release 1 (11.1.1.1.0), the classes in the oracle.toplink.* packages (toplink.jar) have been deprecated and replaced with those in org.eclipse.persistence.* (eclipselink.jar).

To use the new 11g Release 1 (11.1.1.1.0) packages, you must use the packageRenameEclipseLink application to rename your packages. Refer to the Oracle TopLink Migration Guide for more information.

In addition, the following tables list the specific APIs deprecated as of 11g Release 1 (11.1.1.1.0). Oracle recommends that you use the replacement API indicated. Deprecated code will be removed in a future release.


Note:

Because deprecated classes and moved classes have the same name, you may get compile errors if you use import * to import classes from both the old package and the new package. To avoid these errors, use import with a fully qualified package name.

Table 1 mappings (oracle.toplink.*)

Class Name Method Name Replacement API

OneToOneMapping

useJoining

ForeignReferenceMapping.setJoinFetch(int)


setUsesJoining

ForeignReferenceMapping.setJoinFetch(int)


shouldUseJoining

ForeignReferenceMapping.setJoinFetch(int)


Table 2 descriptors (oracle.toplink.*)

Class Name Method Name Replacement API

ClassDescriptor

addMultipleTableForeignKeyField

addForeignKeyFieldForMultipleTable


addMultipleTablePrimaryKeyField

addForeignKeyFieldForMultipleTable


addMultipleTablePrimaryKeyFieldName

addForeignKeyFieldNameForMultipleTable


addMultipleTableForeignKeyFieldName

addForeignKeyFieldNameForMultipleTable


2 API Removed in this Release

The following classes are removed in 11g Release 1 (11.1.1.1.0) from the toplink.jar:

3 Miscellaneous API Changes

You should consider the following miscellaneous API changes:

3.1 JPA Persistence Provider Implementation

In 11g Release 1 (11.1.1.1.0), TopLink uses eclipselink.jar to provide JPA 1.0 support. Refer to http://www.eclipse.org/eclipselink for more information.

3.2 SDO Implementation

In 11g Release 1 (11.1.1.1.0), TopLink uses eclipselink.jar to provide SDO 2.1 support. Refer to http://www.eclipse.org/eclipselink for more information.

3.3 Session Finalizers Disabled by Default

In 11g Release 1 (11.1.1.1.0), session finalizers are disabled by default to improve performance.

To enable session finalizers, use Session method setIsFinalizersEnabled(true).

3.4 Vector and Hashtable Return Types Changed to List or Map

Any Session or ClassDescriptor method that returns Vector or Hashtable will eventually be changed to return List or Map, respectively. To future proof your application code, cast Vector and Hashtable return types to List or Map, respectively. For example, although the Javadoc for ClassDescriptor method getMappings is java.util.Vector, you should cast the returned value to List:

List mappings = (List) descriptor.getMappings();

Other changes that now return Map, include the following:

ClassDescriptor.getQueryKeys(); 
ClassDescriptor.getProperties();
DescriptorQueryManager.getQueries();
EISInteraction.getProperties();
Session.getProperties();
Session.getQueries();
getAttributesToAlwaysInclude(); 
getSpecialOperations();
getValuesToExclude(); 

4 Documentation Accessibility

Our goal is to make Oracle products, services, and supporting documentation accessible to all users, including users that are disabled. To that end, our documentation includes features that make information available to users of assistive technology. This documentation is available in HTML format, and contains markup to facilitate access by the disabled community. Accessibility standards will continue to evolve over time, and Oracle is actively engaged with other market-leading technology vendors to address technical obstacles so that our documentation can be accessible to all of our customers. For more information, visit the Oracle Accessibility Program Web site at http://www.oracle.com/accessibility/.

Accessibility of Code Examples in Documentation

Screen readers may not always correctly read the code examples in this document. The conventions for writing code require that closing braces should appear on an otherwise empty line; however, some screen readers may not always read a line of text that consists solely of a bracket or brace.

Accessibility of Links to External Web Sites in Documentation

This documentation may contain links to Web sites of other companies or organizations that Oracle does not own or control. Oracle neither evaluates nor makes any representations regarding the accessibility of these Web sites.

Deaf/Hard of Hearing Access to Oracle Support Services

To reach Oracle Support Services, use a telecommunications relay service (TRS) to call Oracle Support at 1.800.223.1711. An Oracle Support Services engineer will handle technical issues and provide customer support according to the Oracle service request process. Information about TRS is available at http://www.fcc.gov/cgb/consumerfacts/trs.html, and a list of phone numbers is available at http://www.fcc.gov/cgb/dro/trsphonebk.html.


Oracle TopLink API Modifications, 11g Release 1 (11.1.1.1.0)

Copyright © 1997, 2009, Oracle and/or its affiliates. All rights reserved.

This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited.

The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing.

If this software or related documentation is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, the following notice is applicable:

U.S. GOVERNMENT RIGHTS Programs, software, databases, and related documentation and technical data delivered to U.S. Government customers are "commercial computer software" or "commercial technical data" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, the use, duplication, disclosure, modification, and adaptation shall be subject to the restrictions and license terms set forth in the applicable Government contract, and, to the extent applicable by the terms of the Government contract, the additional rights set forth in FAR 52.227-19, Commercial Computer Software License (December 2007). Oracle USA, Inc., 500 Oracle Parkway, Redwood City, CA 94065.

This software is developed for general use in a variety of information management applications. It is not developed or intended for use in any inherently dangerous applications, including applications which may create a risk of personal injury. If you use this software in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure the safe use of this software. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software in dangerous applications.

Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

This software and documentation may provide access to or information on content, products, and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party content, products, and services. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-party content, products, or services.