See the WebSphere eXtreme Scale Wiki for links to eXtreme Scale Version 7.0 documentation.
If you log in
with your developerWorks ID, you can leave comments and feedback for the development team.
Use this tutorial to develop an ObjectGrid that can store order information for a Web site.
Each step in the tutorial builds on the previous step. Follow each of the steps to build a simple Java SE 5 application that uses an in-memory, local ObjectGrid. The entities use Java SE 5 annotations and generics.
Tutorial Requirements
Ensure that you have met the following requirements before you begin the tutorial:
- Java SE 5
- objectgrid.jar file in the classpath
The following list provides the features that are demonstrated when creating a local ObjectGrid with one entity:
- Create a local ObjectGrid.
- Define and register a single entity.
- Persist and find an entity.
The following list provides the additional features that are demonstrated when creating a simple relationship:
- Define and register two related entities.
- Persist an entity with cascade.
- Find an entity with a relationship.
The following list provides the additional features that are demonstrated when creating a bidirectional relationship with cascading persists:
- Define and register several related entities using automatic discovery.
- Use OrderBy to order an entity List relationship.
- Persist an entity with cascade linking to other managed entities.
- Find an entity with a relationship.
In addition to updating entities, this step demonstrates how to find and update an entity.
The following list provides the additional features that are demonstrated when updating and removing entities by using an index:
- Define an index.
- Find, remove, and update entities in a single transaction by using a range index.
The following list provides the additional features that are demonstrated when updating and removing entities by using a query:
- Find, remove, and update entities in a single transaction using a query.
© Copyright IBM Corporation 2007,2009. All Rights Reserved.