javax.persistence.TupleElement Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-jpa-2.0-api Show documentation
Show all versions of hibernate-jpa-2.0-api Show documentation
Hibernate definition of the Java Persistence 2.0 (JSR 317) API.
// $Id: $
// EJB3 Specification Copyright 2004-2009 Sun Microsystems, Inc.
package javax.persistence;
/**
* The TupleElement
interface defines an element that is returned in
* a query result tuple.
*
* @param the type of the element
* @see Tuple
* @since Java Persistence 2.0
*/
public interface TupleElement {
/**
* Return the Java type of the tuple element.
*
* @return the Java type of the tuple element
*/
Class getJavaType();
/**
* Return the alias assigned to the tuple element or null,
* if no alias has been assigned.
*
* @return alias
*/
String getAlias();
}