About types

111-120 of 200Refresh
JPA Doc
12

javax.persistence.criteria.From

, PluralJoin, Root, SetJoin Represents a bound type, usually an entity that appears in the from clause ... of associations, embeddables, and collections belonging to the type, and for Paths of attributes belonging to the type. Since: JPA 2.0 Selection alias(String name) Assigns an alias to the selection
JPA Doc
12

javax.persistence.criteria.Root

, Path, Selection, TupleElement A root type in the from clause. Query roots ... (Class type) Perform a typecast upon the expression, returning a new expression object. Perform a typecast upon the expression, returning a new expression object. This method does not cause type
Manual
11

Index Definition

a value of one of the following persistable types: Primitive types: boolean, byte, short, char, int, long ... , java.sql.Date, java.sql.Time, java.sql.Timestamp. Any enum type. Reference to an entity object. Arrays and collections that contain values of the above types (including null). Indexes
Manual
11

FROM clause (JPQL / Criteria API)

at the FROM clause level. JPA 2, however, adds support for filtering instances of specific types at the WHERE clause level by using a type expression. For example, in the following query, c iterates ... variables represent iteration over all the database objects of a specified entity type. JPQL provides
Manual
11

JPA Query API

should be used mainly when the query result type is unknown or when a query returns polymorphic ... result type is expected queries should usually use the TypedQuery interface. It is easier to run queries and process the query results in a type safe manner when using the TypedQuery interface
Manual
11

SELECT clause (JPQL / Criteria API)

Result expressions that represent anything but entity objects (e.g. values of system types ... .get("currency")).distinct(true); The select method takes one argument of type Selection and sets it as ... on the query result type (as set when CriteriaQuery is instantiated): For expected Object
Manual
11

Running JPA Queries [2011-09-21]

, but the version of Query returns a result list of a raw type (non generic) instead of a parameterized (generic) type: Query query = em.createQuery("SELECT c FROM Country c"); List results = query.getResultList(); An attempt to cast the above results to a parameterized type (List) will cause
Manual
11

Running JPA Queries

, but the version of Query returns a result list of a raw type (non generic) instead of a parameterized (generic) type: Query query = em.createQuery("SELECT c FROM Country c"); List results = query.getResultList(); An attempt to cast the above results to a parameterized type (List) will cause
JPA Doc
11

javax.persistence.TypedQuery

the execution of typed queries. Since: JPA 2.0 See Also: Query Parameter Learn how to define and use JPA ... > type) Get the parameter object corresponding to the declared positional parameter with the given position and type. Get the parameter object corresponding to the declared positional parameter
JPA Doc
10

javax.persistence.criteria.CriteriaQuery

type of the corresponding AbstractQuery method. Parameters: distinct - boolean value specifying ... : entity - metamodel entity representing the entity of type X Returns: query root corresponding ... type of the query or subquery. Return the result type of the query or subquery. If a result type