Home > Articles

This chapter is from the book

This chapter is from the book

Divide and Conquer

The BookEaz system's design is composed of a fairly large collection of classes, ranging from the relatively simple to the rather complex. When working under a new paradigm such as EJB, I prefer to get my feet wet by starting with the simplest implementation task. The simplest BookEaz component is the Book Entity Bean, and it's used most simply in Use Case 6 (UC6), Maintaining the Inventory Database, so that's a good place to start the implementation phase.

UC6's functionality is manifested by the interaction of Book, an Entity Bean, and BookAdmin, a classic J2SE Java client class. Implementing Book introduces many of the fundamental tenets of EJB component construction, and implementing BookAdmin introduces the essential mechanisms for accessing and using those components.

Two Flavors of Entity Beans: CMP Versus BMP

So, it's time to start writing some code now, right? Well, not quite. One important aspect of Entity Beans must be covered before Book can be implemented, an aspect that determines how much code must be written and who, or what, is responsible for writing that code. Although it is true that somebody or something has to implement the methods declared in Book's two interfaces, a human might not have to do it; EJB is capable of generating many of an Entity Bean's method implementations.

The extent to which EJB is capable of generating method implementations is determined by the flavor of the Entity Bean. Yes, Entity Beans come in two exciting flavors: Container Managed Persistence (CMP) and Bean Managed Persistence (BMP).

Container Managed Persistence Beans

The implementation code for one Entity Bean often looks almost identical to the code for another; there are only so many sensible ways to implement a query, update, insert, or delete, after all. The same is true for getter (used for reading an attribute's value) and setter (used for specifying an attribute's value) methods; they all look much the same. Entity Beans are composed largely of database operations (finding, creating, updating, and removing entities), getters (retrieving attribute values), and setters (setting attribute values), so the fine folks who created the EJB specification realized that Entity Beans' code could often be automatically generated.

An entity with no "special needs" in its database operations, getters, or setters can be implemented as a CMP Bean. As of EJB 2.0, the number of special needs has been reduced to the point that almost all Entity Beans can be implemented as CMPs. The only special needs remaining are as follows:

  • Non-JDBC-compliant databases—The CMP code generator knows how to generate only database operations that use JDBC, so if an Entity Bean uses, say, an object-oriented database that doesn't support JDBC, it cannot be a CMP Bean.

  • Disparate database constructs—If the database constructs through which an Entity Bean performs query operations differ from the ones it uses to perform updates, inserts, or deletes, the Entity Bean cannot be a CMP Bean. For example, if Book were to query from a database view, but update through a database stored procedure, it could not be implemented as a CMP Bean.

  • Unusual getters or setters—If an Entity Bean's getters and setters do anything other than simple assignment or return statements, it cannot be implemented as a CMP Bean.

Rule of Thumb 11

Under EJB 2.0, almost all Entity Beans can and should be implemented as CMP Beans.

The Book Entity Bean doesn't involve any of these complications, so you can implement it as a CMP. As a CMP Bean, it doesn't contain much handwritten implementation code, so you can implement it more quickly than under J2SE. More important, however, is that this decrease in the number of SLOC is accompanied by a corresponding decrease in the number of errors introduced by tired (from writing too much code), bored (from writing the same code over and over), and overstressed (from looming deadlines) coders.

Declaring Book's Remote Interface

The time has come to start writing some code. Book, the Entity Bean designed in Chapter 2, "Designing a Solution Using EJB," is made up of four items: the Book remote interface, the BookHome home interface, the BookBean implementation class, and the deployment descriptor. The task of implementing Book naturally falls into four subtasks, one for each item composing the Entity Bean. It seems sensible to start by coding the two interfaces—Book and BookHome—because they determine the shape and size of BookBean and the deployment descriptor (see Listing 3.1). Make sure you have installed the J2EE Reference Application Server before you proceed with coding.

Listing 3.1 Book's Remote Interface

package com.bookeaz.books;
import javax.ejb.EJBObject;
import java.rmi.RemoteException;

/**
 * A Book offered for sale by BookEaz. This is the remote
 * interface part of the home/remote/implementation triad.
 */
public interface Book extends EJBObject
{

  //Book's getters for accessing its attributes
  public String getISBNNumber() throws RemoteException;

  public String getTitle() throws RemoteException;

  public String getAuthor() throws RemoteException;

  public String getSubject() throws RemoteException;

  public Float getPrice() throws RemoteException;

  //You might expect corresponding setters, but
  //Books are largely read-only entities. The only attribute
  //that is subject to change on a regular basis is price.
  
  public void setPrice(Float inPrice) throws RemoteException;
  
 //However, the administrative use cases call for
 //updating titles, authors, etc., so you need some
 //way of doing so....
 public void update(String inTitle,String inAuthor,
  String inSubject,Float inPrice)
 throws RemoteException;
}

Discussion

Book conforms to a number of rules mandated by the EJB 2.0 specification:

  • It extends javax.ejb.EJBObject. This base interface provides Book with several useful utility methods, which can be safely ignored during this tutorial. They are discussed in detail in Part II.

  • Its methods are public. Neither Java nor the EJB spec allows protected or private methods to be declared, so Book's methods are all declared public.

  • Its methods all declare their propensity to throw javax.rmi.RemoteException. Book (and all Entity Beans, except Local Entity Beans, which are discussed later) throws this exception if anything goes irrecoverably wrong during any method implementations.

  • Its methods mention (in their parameter lists or as their return types) only objects that are "remotely accessible." The EJB 2.0 spec has a rather long-winded definition for the term "remotely accessible," but for the purposes of this tutorial, it means "objects that are Enterprise JavaBeans or implement the java.io.Serializable interface." Book, for example, mentions only objects of type java.lang.String and java.lang.Float, both of which implement java.io.Serializable. Therefore, Book passes the "remotely accessible" litmus test.

In addition to complying with the EJB 2.0 spec, Book also obeys the spirit of the EJB ethos. Like most typical Entity Beans, it is in many ways just an object wrapper around a set of persistent attributes. As such, Book has methods only for getting and setting its attributes' values; you won't find any high-level business methods offered by this Entity Bean.

In another respect, however, Book is an atypical Entity Bean remote interface. Most remote interfaces provide both a getter and a setter method for each attribute. Book, on the other hand, contains a getter for each of its attributes, but only one setter, the setPrice() method. Book is a "read mostly" Entity Bean; after a Book is created, there is rarely a need to change its information (such as ISBN, author, subject, or title), so these methods are intentionally removed from the remote interface. Because Book prices are subject to change, however, the Book remote interface provides a means for setting the price attribute.

Rule of Thumb 12

An Entity Bean attribute can be made "read-only" by simply excluding its setter method from the Bean's remote interface.

In most BookEaz use cases, Books are read-only entities. The only exception is UC6, which stipulates that the BookEaz administrative interface must be capable of updating a Book's persistent attributes. To simultaneously satisfy this requirement and the desire to provide a largely read-only Book, Book includes a method named update() that is capable of updating a Book's title, author, subject, and price.

Declaring Book's Home Interface

Book's home interface, like its remote interface, is short on lines of code but long on declarative power; the home interface, BookHome, merely declares methods for creating new Book instances and for finding existing ones (see Listing 3.2).

Listing 3.2 Book's Home Interface

package com.bookeaz.books;

import javax.ejb.EJBHome;
import javax.ejb.FinderException;
import java.rmi.RemoteException;
import java.util.Collection;

/**
 * BookHome is the home interface for the Book Entity.
 * Being a home interface, it provides methods
 * for creating new Book instances and for
 * finding existing ones.
 */
public interface BookHome extends EJBHome
{

  /**
    Create a new Book with the given ISBN, title, author,
    subject, and price.
  **/
  public Book create(String inISBN,String inTitle,
        String inAuthor, String inSubject,
        Float inPrice)
          throws CreateException, RemoteException;
  /**
  * Find the Book whose ISBN is inISBN.
  * ISBNs uniquely identify Books.
  */
  public Book findByPrimaryKey(String inISBN)
   throws FinderException, RemoteException;

  /**
  * Find books with names matching inTitle.
  */
  public Collection findByTitle(String inTitle)
   throws FinderException, RemoteException;

  /**
  * Find books written by inAuthor
  */
  public Collection findByAuthor(String inAuthor)
   throws FinderException, RemoteException;

  /**
  * Find books dealing with inSubject.
  */
  public Collection findBySubject(String inSubject)
   throws FinderException, RemoteException;
}

Discussion

BookHome's contents are largely mandated by the EJB 2.0 specification, which insists that Entity Bean remote interfaces obey these rules:

  • Home interfaces extend javax.ejb.EJBHome.

  • Home interfaces can declare any number of methods for creating new Entity Bean instances. These methods, which must have names beginning with create, are the EJB equivalent of constructors. BookHome's single create...() method accepts values for all the attributes of the Book being created. Create...() methods return remote interfaces to the Entity Bean instances they create.

  • Home interfaces can declare any number of methods for finding existing Entity Bean instances. These methods, whose names must start with find, are essentially wrappers around database queries. One of these "finder" methods must be named findByPrimaryKey(), and it must accept a single parameter containing the primary key for the Entity Bean being sought. Books use ISBNs as primary keys, and ISBNs are stored as Java Strings, so BookHome's findByPrimaryKey() method accepts a String parameter.

  • Finder methods can return a single instance (as findByPrimaryKey() does), or they can return multiple instances. Finder methods that return a single instance return a remote interface, so findByPrimaryKey() returns a Book remote interface. Finder methods that return multiple instances return a java.util.Collection or a java.util.Set containing instances of the home interface's corresponding remote interface.

Home interfaces can declare a third type of method, known as a home method. Although they are not used in this tutorial, they are discussed in depth in Part II.

Implementing BookBean

BookBean's implementation consists of two kinds of code. The majority of its implementation code is simple; there is nothing complex about the body of a getter or setter, after all, and getters and setters compose the vast majority of Book's methods. The rest of BookBean's code is more unpredictable (and thus more interesting); the bodies of ejbCreate() and update(), for example, are not completely rote in their composition.

The EJB creators recognized the dichotomy inherent in Entity Bean implementation code and decided to take advantage of it to make developers' lives a little easier. When implemented under the auspices of CMP, many of the obvious implementation tasks are handed over to the EJB environment. Those methods whose implementations are foisted onto EJB are referred to as auto-generated methods. These methods fall into two camps—those completely generated by EJB and those partially (somewhere between 0% and 100%) generated by EJB.

EJB auto-generates implementations for all declared getters and setters for CMP Entity Beans; if the Entity Bean's implementation class (BookBean, in this example) declares an abstract getter or setter for an attribute, EJB generates that getter's or setter's implementation. EJB performs auto-generation only for declared getters and setters; it never auto-generates one of its own volition. Furthermore, EJB doesn't allow developers to implement getters and setters for CMP Entity Beans; if you attempt to circumvent EJB and implement one by yourself, EJB will reject your Entity Bean.

Although EJB completely denies developers the privilege of implementing getters and setters, it does permit them to collaborate in implementing the second type of auto-generated methods, which consist of housekeeping methods that EJB normally auto-generates. If circumstances dictate, however, developers can implement parts of these methods. For example, every Entity Bean must have an ejbActivate() method, and EJB auto-generates it on your behalf. If, however, your Entity Bean's implementation also contains an implementation of ejbActivate(), EJB arranges for your implementation to be called by its auto-generated one; ejbActivate()'s implementation is then a collaboration between EJB and you.

Table 3.1 details the major types of methods in Entity Bean implementations and who is responsible for implementing them.

Table 3.1 CMP Implementation Responsibilities

Method

Example

Implemented by (EJB, Developer, or Both)

Comments

Getters and setters

getISBNNumber(),setPrice()

EJB

Developer declares them as public abstract methods.

ejbCreate...()

ejbCreate(String inISBN...)

Developer

One ejbCreate...() for every create...() specified in the home interface.

ejbPostCreate()

ejbPostCreate(String inISBN...)

Developer

One for every ejbCreate...(); usually empty.

find...()

ejbFindByTitle (String inTitle)

EJB

EJB uses EJB-QL from the deployment descriptor to generate these methods (more on that in Chapters 6, "All About Deployment," and 7, "Entity Beans").

Housekeeping methods

ejbActivate(), ejbPassivate(),ejbLoad(), ejbStore(),ejbRemove()

Both

EJB always auto-generate these methods. If implemented by the developer, EJB ensures that both the auto-generated and the hand-generated methods are invoked.

Context manipulators

setEntityContext(),unsetEntityContext()

Developer

These methods can be empty, but are usually implemented just as they are in BookBean.

Business methods

update(String[] values)

Developer

The burden of implementing business methods falls (as it always does) squarely on the developers' shoulders.


Armed with this information, BookBean can now be implemented. Thanks to EJB, there is little actual coding work to be done within BookBean's confines, as you can see in Listing 3.3.

Listing 3.3 BookBean, Book's Implementation Class

import javax.ejb.EntityBean;
import javax.ejb.EntityContext;
import java.rmi.RemoteException;
import javax.ejb.RemoveException;
import javax.ejb.EJBException;

/**
 * The back-end implementation of Book.
**/
public abstract class BookBean implements EntityBean
{

  /**
  * The EntityContext provides
  * information about the client who is using this Bean,
  * and also allows this Bean instance to access services
  * provided by the container.
  **/
  private EntityContext context;

  /**Methods that must be declared in order to conform
   * to the EJB 2.0 spec. BookBean doesn't actually use
   * these methods, however.
  **/
  public BookBean() {}
  public void ejbActivate() { }
  public void ejbPassivate() { }
  public void ejbLoad() { }
  public void ejbRemove() { }
  public void ejbStore() { }


 /**
  * Update method, the one-and-only "business method"
  * offered by Book. Note that ISBN cannot be
  * modified because it uniquely identifies a book.
  */
  public void update(String inTitle,String inAuthor,
  String inSubject,Float inPrice){
    //the outside world lacks access to these setters
    //because they aren't in the remote interface. They
    //can be accessed by the implementation, however.
    setTitle(inTitle);
    setAuthor(inAuthor);
    setSubject(inSubject) ;
    setPrice(inPrice);
  }
  /**
  * Abstract methods for getters and setters. Note that only
  * one setter, setPrice, exists; the other attributes are
  * read-only
  **/
  public abstract String getISBNNumber();
  public abstract String getTitle();
  public abstract String getAuthor();
  public abstract String getSubject();
  public abstract Float getPrice();

  public abstract void setPrice(Float inValue);



  /**Methods used by the EJB container to set
   * and unset the EntityContext
  **/
  public void setEntityContext(EntityContext ctx)
  {
   context = ctx;
  }

  public void unsetEntityContext()
  {
   context = null;
  }
}

Discussion

BookBean is a fairly typical CMP Entity Bean implementation class. It contains abstract getter and setter methods corresponding to the getters and setters declared in the Book remote interface. The EJB specification insists that getters and setters for CMP Entity Beans be abstract; the EJB container will provide concrete implementations for them on your behalf. It also contains a number of methods stipulated by the EJB 2.0 specification. Most of these methods contain empty bodies, a trait common in CMP Entity Beans; these empty implementations are subsumed by auto-generated methods supplied by EJB.

BookBean's most notable traits are the following:

  • It is an abstract class. EJB uses BookBean as a template to generate its own concrete implementation class, which is silently substituted for BookBean at runtime.

  • Its getters and setters are all abstract, as mandated by the EJB 2.0 specification for CMP Entity Beans. EJB graciously implements these methods on the developer's behalf.

  • In contrast to the Book remote interface, BookBean contains the full complement of getter/setter pairs. The setters for ISBN, title, author, and subject are not exposed to the general public (via Book), but BookBean uses them internally to manipulate their respective attributes.

  • All of BookBean's getters and setters have public visibility, regardless of whether they are visible to the outside world. The EJB 2.0 specification insists that all getters and setters be public, even if they are not to be used outside the Entity Bean's implementation. The visibility of getters and setters is determined by their presence or absence in the remote interface, not by their visibility (public, private, "package," or protected) declaration in the implementation.

  • The housekeeping methods (ejbActivate(), ejbPassivate(), ejbLoad(), ejbRemove(), and ejbStore()) are all empty implementations; EJB auto-generates their "real" implementations.

  • Notably absent from BookBean are any implementations of BookHome's find...() methods. EJB auto-generates find...() methods for CMP Entity Beans, so there is no need to implement them in BookBean.

Compiling Book's Java Code

Book's source code is available for download at the companion Web site. After downloading it, place it into a directory rooted at c:\bookeaz (for Windows systems) or ~/bookeaz (for Unix/Linux systems); this directory is referred to as <BOOKEAZ_HOME>. After installing the downloaded files, you will have a directory structure that looks like this:

  c:\bookeaz
    classes
    src
      bookeaz
        books
          Book.java
          BookBean.java
          BookHome.java
        admin

Prerequisites for Compiling

To compile and run BookEaz code, your environment must be properly set up. Specifically, you need three software suites installed:

  • A Java Development Kit (JDK), version 1.3.1 or later, available at http://www.javasoft.com

  • Sun's J2EE Reference Server, available at http://www.javasoft.com and set up according to Appendix B

  • CloudScape's database system, which is bundled with Sun's J2EE Reference Server

In addition, you must have these environment variables set up for the compilation to proceed:

  • CLASSPATH must contain a reference to j2ee.jar (which is part of Sun's J2EE Reference Server) and BookEaz's classes directory (<BOOKEAZ_HOME>/classes). To add them to your CLASSPATH on Windows systems, issue this command from a command-prompt window:

  • set CLASSPATH=%CLASSPATH%;c:\j2ee\lib\j2ee.jar;c:\bookeaz\classes
  • PATH must contain a reference to the JDK bin directory. To add this reference to PATH on Windows systems, issue this command from a command-prompt window:

  • set PATH=%PATH%;<JAVA_HOME>\bin

    <JAVA_HOME> is the topmost directory where JDK was installed; for example, on my computer, <JAVA_HOME> is c:\jdk1.3.1.

During the post-tutorial parts of this book, you will use a modern build tool named Ant to compile and deploy EJBs. In the interest of getting something compiled and running quickly, however, compile Book.java, BookHome.java, and BookBean.java by hand for now. Follow these steps to compile Book's constituents on a Windows-based system:

  1. Open a command-prompt window from the taskbar.

  2. Change directory to <BOOKEAZ_HOME>\src\com\bookeaz\books (<BOOKEAZ_HOME> is the root of BookEaz's installation directory, typically c:\bookeaz).

  3. Compile all three EJB components by issuing javac –d c:\bookeaz\classes Book*.java. This command compiles Book's components and places the resulting .class files into <BOOKEAZ_HOME>\classes\com\bookeaz\books.

After performing these steps, the <BOOKEAZ_HOME>\classes directory contains compiled versions of Book's three Java source files. You are now ready to deploy Book to the Application Server.

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020