IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.projector
Interface Projector


public interface Projector

The Projector is used to convert entities to Tuple objects.

Since:
WAS XD 6.1.0.5

Method Summary
 Tuple getTupleFromEntity(Object entity, EntityMetadata emd, boolean key)
          Convert the specified entity object to a key or value Tuple using the specified EntityMetadata.
 

Method Detail

getTupleFromEntity

Tuple getTupleFromEntity(Object entity,
                         EntityMetadata emd,
                         boolean key)
Convert the specified entity object to a key or value Tuple using the specified EntityMetadata. The EntityMetadata must match the EntityMetadata for the entity type.

Key tuples should not be changed once retrieved. Multiple requests for a key tuple from the same entity instance may result in the same tuple instance.

Value tuples are always copies and the values within the tuples are also copies of the objects stored in the entities.

Parameters:
entity - The entity to be converted
emd - The EntityMetadata for the entity.
key - if true, return a tuple that represents the key portion of the entity. If false, return the value portion of the entity.
Returns:
a converted Tuple

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

© Copyright International Business Machines Corp 2005,2012. All rights reserved.