EclipseLink 2.0.0_ 2.0.0.v20090424-r4050 API Reference

javax.persistence
Interface ResultItem<X>

Type Parameters:
X - the type of the result item
All Known Subinterfaces:
AbstractCollectionJoin<Z,C,E>, CollectionJoin<Z,E>, Expression<T>, From<Z,X>, Join<Z,X>, ListJoin<Z,E>, MapJoin<Z,K,V>, Parameter<T>, Path<X>, Predicate, QueryBuilder.Case<R>, QueryBuilder.Coalesce<T>, QueryBuilder.In<T>, QueryBuilder.SimpleCase<C,R>, Root<X>, Selection<X>, SetJoin<Z,E>, Subquery<T>

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.v20090424-r4050 API Reference