Home » Search

About type

111-120 of 200Refresh
Manual
13

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
13

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
Manual
13

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
JPA Doc
12

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
11

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
JPA Doc
11

javax.persistence.EntityManager

. The select list of the query must contain only a single item, which must be assignable to the type ... resultClass - the type of the query result Returns: the new query instance Throws: IllegalArgumentException ... or if the query result is found to not be assignable to the specified type Since: JPA 2.0 Query
JPA Doc
11

javax.persistence.metamodel.MapAttribute

>>, Bindable, PluralAttribute,V> Instances of the type MapAttribute represent persistent java.util.Map-valued attributes. Since: JPA 2.0 Class getBindableJavaType() Return the Java type of the represented object. Return the Java type of the represented object. If the bindable type
Manual
10

Entity Management Settings

") specifies whether the Enhancer Agent should be loaded to enhance persistable types on the fly ... for entities: The ref attribute specifies the reference type for holding non dirty entities in ... for instances of serializable types that are non persistable otherwise (e.g. a user defined class
Manual
10

JPA Criteria API Queries

); List results = query.getResultList(); Because eventually both types of queries ... , currentDate, ...). Paths, navigation and types (get, type). Arithmetic expressions (sum, diff, prod
JPA Doc
10

JPA Miscellaneous

This section contains miscellaneous JPA types. The PersistenceUtil and PersistenceUnitUtil interfaces provide general utility methods: The Cache interface and the CacheRetrieveMode and CacheStoreMode enum types serve in managing the EntityManagerFactory's shared (level 2) cache: Other enum types are provided for setting of various JPA operations: