Internal Website Search
1-50 of 200 resultsCollections in JPQL and Criteria Queries Collections may appear in JPQL queries: as parameters - when collections are assigned as arguments. as path expressions - in navigation to persistent collection fields. IS [NOT] EMPTY The IS [NOT] EMPTY operator checks whether a specified collection is empty or not. For example: c.languages | |
Privacy Policy on the collection , use and disclosure of Your information when You use the Service and tells ... the Service. By using the Service, You agree to the collection and use of information in accordance ... how the Service is used. Usage Data refers to data collected automatically, either generated by | |
JPA Persistable Types, Date and Math types. Multi value types - Collections , Maps and Arrays. Miscellaneous types: Enum ... Value Types The following multi value types are persistable: Collection types from package java.util ... .g. ArrayList ) and non generic (e.g. ArrayList ) collection and map types are supported, as long as | |
Database Explorer object can be specified by type and primary key separated by # (e.g. Point#1). A collection ... with the query results, and the size of the result collection and the query execution time are displayed ... itself from the database. Editing Collections Elements can be added to collections by using | |
Retrieving JPA Entity Objects collection and map persistent fields (i.e. through one-to-one and many-to-one relationships ... navigation through non collection and map persistent fields are also retrieved. Theoretically, in some ... ) private Employee manager; : } The default for non collection and map references is FetchType . EAGER | |
Path | |
CriteriaBuilder.isNotMember(elem,collection) - JPA Method elem, Expression collection ) Create a predicate that tests whether an element is not a member of a collection . If the collection is empty, the predicate will be true. Parameters: elem - element collection - expression Return: is-not-member predicate Since: JPA 2.0 | |
CriteriaBuilder.isNotMember(elem,collection) - JPA Method; Expression elem, Expression collection ) Create a predicate that tests whether an element is not a member of a collection . If the collection is empty, the predicate will be true. Parameters: elem - element expression collection - expression Return: is-not-member predicate Since: JPA 2.0 | |
CriteriaBuilder.isMember(elem,collection) - JPA Method;elem, Expression collection ) Create a predicate that tests whether an element is a member of a collection . If the collection is empty, the predicate will be false. Parameters: elem - element collection - expression Return: is-member predicate Since: JPA 2.0 | |
CriteriaBuilder.size(collection) - JPA Method JPA Method in javax.persistence.criteria.CriteriaBuilder Expression size ( C collection ) Create an expression that tests the size of a collection . Parameters: collection - collection Return: size expression Since: JPA 2.0 | |
CriteriaBuilder.isMember(elem,collection) - JPA Method; Expression elem, Expression collection ) Create a predicate that tests whether an element is a member of a collection . If the collection is empty, the predicate will be false. Parameters: elem - element expression collection - expression Return: is-member predicate Since: JPA 2.0 | |
From | |
From | |
CriteriaBuilder.isEmpty(collection) - JPA Method JPA Method in javax.persistence.criteria.CriteriaBuilder Predicate isEmpty ( Expression collection ) Create a predicate that tests whether a collection is empty. Parameters: collection - expression Return: is-empty predicate Since: JPA 2.0 | |
CriteriaBuilder.isNotEmpty(collection) - JPA Method JPA Method in javax.persistence.criteria.CriteriaBuilder Predicate isNotEmpty ( Expression collection ) Create a predicate that tests whether a collection is not empty. Parameters: collection - expression Return: is-not-empty predicate Since: JPA 2.0 | |
CriteriaBuilder.size(collection) - JPA Method JPA Method in javax.persistence.criteria.CriteriaBuilder Expression size ( Expression collection ) Create an expression that tests the size of a collection . Parameters: collection - expression Return: size expression Since: JPA 2.0 | |
javax.persistence.metamodel.Attribute | |
javax.persistence.metamodel.PluralAttribute | |
JPA Entity Fields - for references of entity types. OneToMany , ManyToMany - for collections and maps of entity types ... fields are essential for collection fields when using ORM JPA implementations, but not when using ... may improve efficiency when managing very large collections that are changed | |
FROM clause (JPQL / Criteria API) collection of the outer c1 . In this case, by propagation of a WHERE constraint to the FROM phase ... iteration over specified collections of objects. The following query uses one range variable and one join ... that collection . You might have noticed that this query is equivalent to the previous neighbors query | |
Running JPA Queries. The query result collection functions as any other ordinary Java collection . For example, a result collection of a parameterized type can be iterated easily using an enhanced for loop: for (Country ... result object. In this case, the result object has to be extracted from the result collection | |
WHERE clause (JPQL / Criteria API) objects to the SELECT clause for collecting as query results, the WHERE clause gets an opportunity ... evaluates to TRUE are passed to the SELECT clause and then collected as query results. WHERE Predicate ... ) and functions (numeric functions, string functions, collection functions). The WHERE predicate | |
Database Schema Evolution (when applicable). From any date type to any date type. From any collection or array type to any collection or array type, as long as the elements are convertible (e.g. from int[] to ArrayList ). From any object to any collection or array that can contain that object as en element. From any map | |
Deleting JPA Entity Objects can be referenced by a collection field): @Entity class Employee { : @OneToOne ( cascade ... for collection and map fields. For example: @Entity class Employee { : @OneToMany ( orphanRemoval =true) private List addresses; : } In this case, removal of an Address object from the collection leads | |
Shared (L2) Entity Cache Every EntityManager owns a persistence context , which is a collection of all the entity objects ... and primary key: em. find (MyEntity2.class, Long.valueOf(1), Collections ... operation. For example: em. find (MyEntity2.class, Long.valueOf(1), Collections . singletonMap | |
ObjectDB Object Database Features ( composite ) indices. Collection and array elements are indexable (extremely fast JOIN queries ... : java.lang.BigInteger and java.lang.BigDecimal. Collection types : Collection , List, Set,  | |
SELECT clause (JPQL / Criteria API) value path expressions can be used in the SELECT clause. Collection and map fields cannot be included ... for collecting and processing query results. If an entity class is used as a result class, the result entity | |
Detached Entity Objects objects that are referenced by that field (multiple entity objects can be referenced by a collection ... can be referenced by a collection field): @Entity class Employee { : @OneToOne ( cascade = CascadeType . MERGE | |
JPA Query Expressions (JPQL / Criteria) : =, , =, IS [NOT] NULL, [NOT] BETWEEN, including Collection operators: [NOT] IN, IS [NOT] EMPTY ... , substring, ... ). Data expressions ( currentDate , currentTime , currentTimestamp ). Collection | |
Index Definition , java.sql.Timestamp. Any enum type. Reference to an entity object. Arrays and collections that contain ... a collection , so multiple values will be maintained by the index for every entity. Multi part paths in | |
What are the main benefits of using ObjectDB? the execution time of object oriented applications significantly. For instance, collection and map ... multiple values (even for a simple data structure such as a collection of strings). In addition | |
JPA Metamodel API in ManagedType to return attributes of Collection , List , Set a Map types in a type safe ... : CollectionAttribute - represents attributes of Collection types. SetAttribute - represents attributes | |
Updating JPA Entity Objects. It is usually recommended to use collections rather than arrays when using JPA. Collections | |
Storing JPA Entity Objects that field (multiple entity objects can be referenced by a collection field): @Entity class Employee | |
Numbers in JPQL and Criteria Queries Numeric values may appear in JPQL queries in many forms: as numeric literals - e.g. 123 , -12.5 . as parameters - when numeric values are assigned as arguments. as path expressions - in navigation to persistent numeric fields. as aggregate expressions - e.g. COUNT. as collection | |
JPA Class Enhancer loading of entity objects. With no enhancement, only persistent collection and map fields | |
Obtaining a JPA Database Connection content, such as persist and remove . Database updates are collected and managed in memory and applied | |
Eclipse Public License - v 1.0 ( collectively "Losses") arising from claims, lawsuits and other legal actions brought by a third party | |
Paths and Types in JPQL and Criteria API persistable class. The dot (.) operator cannot be applied to collections , maps and values of simple | |
JPA Criteria API Queries , upper , concat , substring , ... ). Collection expressions ( isEmpty , isNotEmpty | |
ORDER BY clause (JPQL / Criteria API) produces objects for examination and the WHERE clause selects which objects to collect as results | |
Working with JPA Entity Objects. The Persistence Context The persistence context is the collection of all the managed objects | |
JPA Primary Key are stored continuously and can be collected by accessing a minimum number of database pages | |
[ODB1] Chapter 7 - JDOQL Queries three components: A candidate collection containing persistent objects (usually an Extent ) A candidate class ... result is a subset of objects from the candidate collection that contains only the instances ... whose age is 18 or older: Query query = pm.newQuery(Person.class, "this.age = 18"); Collection | |
[ODB1] Chapter 4 - JDO Metadata and Integer ), types defined in java.math (e.g. BigInteger ), and java.util.Date . Collections , arrays ... . Wrapper objects, strings, dates, collections and arrays are embedded by default. To use them as non ... .String field, empty collection , 0 size array, and so on). primary-key The primary-key attribute, defined | |
[ODB1] Chapter 6 - Persistent Objects a collection or array of objects to makePersistentAll( ... ) , which is another method of PersistenceManager . The makePersistentAll( ... ) method stores all the elements in the specified collection or array in the database, but not the collection or array itself (unlike passing a collection to Utilities.bind | |
[ODB1] Chapter 3 - Persistent Classes and Hashtable , and the interfaces - Collection , Set , List and Map . java.math.BigInteger and java.math ... types above are defined as optional by JDO (arrays and most of the collection classes), but ObjectDB ... value. Similarly, a field whose type is one of the persistent collection interfaces ( Collection , Set | |
[ODB1] Chapter 9 - ObjectDB Explorer of database objects. The Table window displays a collection of objects following the approach ... the candidate collection of the query. Optional JDOQL components, such as filter, parameters, variables ... with the query results and the size of the result collection and the query execution time | |
[ODB1] Chapter 2 - A Quick Tour statements are required: for Java collections (line 3), for JDO (line 4) and for ObjectDB extensions ... collections ) can be stored only as fields of persistent classes. In addition, objects are stored ... .3 Storing and Retrieving Objects The JDO Person sample manages a collection of Person | |
javax.jdo.PersistenceManager might be garbage collected , at the option of the JDO implementation. Before being used ... . Parameters: pc - a persistent instance Since: JDO 1.0 void deletePersistentAll ( Collection pcs) Delete a Collection of instances from the data store. Parameters: pcs - a Collection of persistent |