EclipseLink 2.0.0_ 2.0.0.v20090626-r4569 API Reference

javax.persistence
Interface ResultItem<X>

Type Parameters:
X - the type of the result item

public interface ResultItem<X>

The ResultItem interface defines an item that is returned by a query.

Since:
Java Persistence 2.0

Method Summary
 java.lang.String getAlias()
          Return the alias assigned to the item or null, if no alias has been assigned.
 java.lang.Class<X> getJavaType()
          Return the Java type of the result item.
 

Method Detail

getJavaType

java.lang.Class<X> getJavaType()
Return the Java type of the result item.

Returns:
the Java type of the result item

getAlias

java.lang.String getAlias()
Return the alias assigned to the item or null, if no alias has been assigned.

Returns:
alias

EclipseLink 2.0.0_ 2.0.0.v20090626-r4569 API Reference