ObjectDB Database Search

101-150 of 200 results

jakarta.persistence.criteria.CompoundSelection

Jakarta Persistence (JPA) Interface jakarta.persistence. criteria .CompoundSelection Type Parameters: - the type of the selection item Super Interfaces: Selection , TupleElement The CompoundSelection interface defines a compound selection item (a tuple, array, or result of a constructor

jakarta.persistence.criteria.Fetch

Jakarta Persistence (JPA) Interface jakarta.persistence. criteria .Fetch Type Parameters: - the source type of the fetch - the target type of the fetch Super Interfaces: FetchParent Represents a join-fetched association or attribute. Since: Jakarta Persistence (JPA) 2.0 Public Instance Methods Fetch

jakarta.persistence.criteria.FetchParent

Jakarta Persistence (JPA) Interface jakarta.persistence. criteria .FetchParent Type Parameters: - the source type - the target type Represents an element of the from clause which may function as the parent of Fetches. Since: Jakarta Persistence (JPA) 2.0 Public Instance Methods Fetch fetch

jakarta.persistence.criteria.CriteriaQuery.multiselect(Selection...)

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .CriteriaQuery CriteriaQuery ... of the query execution depends on the specification of the type of the criteria query object ... : If the type of the criteria query is CriteriaQuery (i.e., a criteria query object created by

jakarta.persistence.criteria.CriteriaQuery.multiselect(List)

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .CriteriaQuery CriteriaQuery ... of the query execution depends on the specification of the type of the criteria query object created as ... follows: If the type of the criteria query is CriteriaQuery (i.e., a criteria query object created

JPA Queries

the programmatic Criteria API. These interfaces support both static and dynamic query construction ... ("SELECT ... FROM ... WHERE ..."); or Criteria query objects, as described below. For detailed usage instructions, refer to the JPA Query API section in the ObjectDB manual. Criteria query API

Query Parameters in JPA

does not provide an API to define parameters explicitly (except when using the Criteria API). Instead ... over ordinal parameters. Criteria Query Parameters In a JPA query built using the JPA Criteria API ... its superinterface, Parameter ) rather than by names or numbers. For more details, see the Parameters in Criteria

jakarta.persistence.criteria.CriteriaBuilder.createQuery()

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .CriteriaBuilder CriteriaQuery createQuery() Create a CriteriaQuery object. Returns: criteria query object. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.CriteriaBuilder.createQuery(Class)

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .CriteriaBuilder CriteriaQuery createQuery (    Class resultClass ) Create a CriteriaQuery object with the given result type. Parameters: resultClass - type of the query result Returns: criteria query object. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.CriteriaBuilder.createTupleQuery()

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .CriteriaBuilder CriteriaQuery createTupleQuery() Create a CriteriaQuery object that returns a tuple of objects as its result. Returns: criteria query object. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.CriteriaBuilder.treat(SetJoin,Class)

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .CriteriaBuilder SetJoin treat (    SetJoin join ,    Class type ) Downcast SetJoin object to the specified type. Parameters: join - SetJoin object type - type to be downcast to Returns: SetJoin object of the specified type. Since: Jakarta Persistence (JPA) 2.1

jakarta.persistence.criteria.CriteriaBuilder.nullif(Expression,Y)

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .CriteriaBuilder Expression nullif (    Expression x ,    Y y ) Create an expression that tests whether its argument are equal, returning null if they are and the value of the first expression if they are not

jakarta.persistence.criteria.CriteriaBuilder.coalesce()

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .CriteriaBuilder Coalesce coalesce() Create a coalesce expression. Returns: coalesce expression. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.CriteriaBuilder.selectCase(Expression)

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .CriteriaBuilder SimpleCase selectCase (    Expression expression ) Create a simple case expression. Parameters: expression - to be tested against the case conditions Returns: simple case expression. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.CriteriaBuilder.selectCase()

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .CriteriaBuilder Case selectCase() Create a general case expression. Returns: general case expression. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.CriteriaBuilder.treat(ListJoin,Class)

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .CriteriaBuilder ListJoin treat (    ListJoin join ,    Class type ) Downcast ListJoin object to the specified type. Parameters: join - ListJoin object type - type to be downcast to Returns: ListJoin object of the specified type. Since: Jakarta Persistence (JPA) 2.1

jakarta.persistence.criteria.CriteriaBuilder.treat(MapJoin,Class)

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .CriteriaBuilder MapJoin treat (    MapJoin join ,    Class type ) Downcast MapJoin object to the specified type. Parameters: join - MapJoin object type - type to be downcast to Returns: MapJoin object of the specified type. Since: Jakarta Persistence (JPA) 2.1

jakarta.persistence.criteria.CriteriaBuilder.treat(Path,Class)

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .CriteriaBuilder Path treat (    Path path ,    Class type ) Downcast Path object to the specified type. Parameters: path - path type - type to be downcast to Returns: Path object of the specified type. Since: Jakarta Persistence (JPA) 2.1

jakarta.persistence.criteria.CriteriaBuilder.treat(Root,Class)

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .CriteriaBuilder Root treat (    Root root ,    Class type ) Downcast Root object to the specified type. Parameters: type - type to be downcast to root - root Returns: Root object of the specified type. Since: Jakarta Persistence (JPA) 2.1

jakarta.persistence.criteria.AbstractQuery.getGroupRestriction()

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .AbstractQuery Predicate getGroupRestriction() Return the predicate that corresponds to the restriction(s) over the grouping items, or null if no restrictions have been specified. Returns: having clause predicate. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.AbstractQuery.isDistinct()

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .AbstractQuery boolean isDistinct() Return whether duplicate query results must be eliminated or retained. Returns: boolean indicating whether duplicate query results must be eliminated. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.AbstractQuery.getResultType()

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .AbstractQuery Class getResultType() Return the result type of the query or subquery. If a result type was specified as an argument to the createQuery or subquery method, that type is returned. If the query was created using

jakarta.persistence.criteria.CollectionJoin.on(Expression)

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .CollectionJoin CollectionJoin on (    Expression restriction ) Modify the join to restrict the result according to the specified ON condition and return the join object. Replaces the previous ON condition, if any

jakarta.persistence.criteria.AbstractQuery.distinct(boolean)

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .AbstractQuery AbstractQuery distinct (    boolean distinct ) Specify whether duplicate query results are eliminated. A true value will cause duplicates to be eliminated. A false value will cause duplicates to be retained

jakarta.persistence.criteria.AbstractQuery.getRoots()

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .AbstractQuery Set getRoots() Return the query roots. These are the roots that are defined for the CriteriaQuery or Subquery itself, including any subquery roots defined as a result of correlation. Returns an empty set if no roots

jakarta.persistence.criteria.AbstractQuery.getSelection()

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .AbstractQuery Selection getSelection() Return the selection of the query, or null if no selection has been set. Returns: selection item. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.AbstractQuery.getGroupList()

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .AbstractQuery List getGroupList() Return a list of the grouping expressions. Returns empty list if no grouping expressions have been specified. Modifications to the list do not affect the query. Returns: the list of grouping expressions. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.CommonAbstractCriteria.getRestriction()

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .CommonAbstractCriteria Predicate getRestriction() Return the predicate that corresponds to the where clause restriction(s), or null if no restrictions have been specified. Returns: where clause predicate. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.CommonAbstractCriteria.getParameters()

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .CommonAbstractCriteria Set getParameters() Return the parameters of the query. Returns empty set if there are no parameters. Modifications to the set do not affect the query. Returns: the query parameters. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.CollectionJoin.on(Predicate...)

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .CollectionJoin CollectionJoin on (    Predicate... restrictions ) Modify the join to restrict the result according to the specified ON condition and return the join object. Replaces the previous ON condition, if any

jakarta.persistence.criteria.CollectionJoin.getModel()

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .CollectionJoin CollectionAttribute getModel() Return the metamodel representation for the collection attribute. Returns: metamodel type representing the Collection that is the target of the join. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.CommonAbstractCriteria.subquery(Class)

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .CommonAbstractCriteria Subquery subquery (    Class type ) Create a subquery of the query. Parameters: type - the subquery result type Returns: subquery. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.CommonAbstractCriteria.subquery(EntityType)

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .CommonAbstractCriteria Subquery subquery (    EntityType type ) Create a subquery of the query. Parameters: type - the subquery result type Returns: subquery. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.CriteriaBuilder.tuple(Selection...)

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .CriteriaBuilder CompoundSelection tuple (    Selection ... selections ) Create a tuple-valued selection item. Parameters: selections - selection items Returns: tuple-valued compound selection. Throws

jakarta.persistence.criteria.CriteriaBuilder.array(Selection...)

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .CriteriaBuilder CompoundSelection array (    Selection ... selections ) Create an array-valued selection item. Parameters: selections - selection items Returns: array-valued compound selection. Throws

jakarta.persistence.criteria.CriteriaBuilder.createCriteriaUpdate(Class)

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .CriteriaBuilder CriteriaUpdate createCriteriaUpdate (    Class targetEntity ) Create a CriteriaUpdate query object to perform a bulk update operation. Parameters: targetEntity - target type for update operation Returns: the query object. Since: Jakarta Persistence (JPA) 2.1

jakarta.persistence.criteria.CriteriaBuilder.createCriteriaDelete(Class)

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .CriteriaBuilder CriteriaDelete createCriteriaDelete (    Class targetEntity ) Create a CriteriaDelete query object to perform a bulk delete operation. Parameters: targetEntity - target type for delete operation Returns: the query object. Since: Jakarta Persistence (JPA) 2.1

jakarta.persistence.criteria.CriteriaBuilder.construct(Class,Selection...)

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .CriteriaBuilder CompoundSelection construct (    Class resultClass ,    Selection ... selections ) Create a selection item corresponding to a constructor. This method is used to specify a constructor

jakarta.persistence.criteria.CriteriaBuilder.avg(Expression)

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .CriteriaBuilder Expression avg (    Expression x ) Create an aggregate expression applying the avg operation. Parameters: x - expression representing input value to avg operation Returns: avg expression. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.CriteriaBuilder.sum(Expression)

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .CriteriaBuilder Expression sum (    Expression x ) Create an aggregate expression applying the sum operation. Parameters: x - expression representing input value to sum operation Returns: sum expression. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.CriteriaBuilder.sumAsLong(Expression)

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .CriteriaBuilder Expression sumAsLong (    Expression x ) Create an aggregate expression applying the sum operation to an Integer-valued expression, returning a Long result. Parameters: x - expression representing input

jakarta.persistence.criteria.CriteriaBuilder.sumAsDouble(Expression)

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .CriteriaBuilder Expression sumAsDouble (    Expression x ) Create an aggregate expression applying the sum operation to a Float-valued expression, returning a Double result. Parameters: x - expression representing input

jakarta.persistence.criteria.CriteriaBuilder.asc(Expression)

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .CriteriaBuilder Order asc (    Expression expression ) Create an ordering by the ascending value of the expression. Parameters: expression - expression used to define the ordering Returns: ascending ordering corresponding to the expression. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.CriteriaBuilder.desc(Expression)

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .CriteriaBuilder Order desc (    Expression expression ) Create an ordering by the descending value of the expression. Parameters: expression - expression used to define the ordering Returns: descending ordering

jakarta.persistence.criteria.AbstractQuery.from(Class)

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .AbstractQuery Root from (    Class entityClass ) Create and add a query root corresponding to the given entity, forming a cartesian product with any existing roots. Parameters: entityClass - the entity class Returns: query

jakarta.persistence.criteria.AbstractQuery.from(EntityType)

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .AbstractQuery Root from (    EntityType entity ) Create and add a query root corresponding to the given entity, forming a cartesian product with any existing roots. Parameters: entity - metamodel entity representing

jakarta.persistence.criteria.Root.getModel()

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .Root EntityType getModel() Return the metamodel entity corresponding to the root. Returns: metamodel entity corresponding to the root. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.Selection.alias(String)

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .Selection Selection alias (    String name ) Assigns an alias to the selection item. Once assigned, an alias cannot be changed or reassigned. Returns the same selection item. Parameters: name - alias Returns: selection item. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.Selection.isCompoundSelection()

Jakarta Persistence (JPA) Method in jakarta.persistence. criteria .Selection boolean isCompoundSelection() Whether the selection item is a compound selection. Returns: boolean indicating whether the selection is a compound selection. Since: Jakarta Persistence (JPA) 1.0

[ODB1] Chapter 2 - A Quick Tour

a list of strings in a database. 2 3 import java.util.*; 4 import javax.jdo.*; 5 import com ... .currentTransaction().commit(); 38 pm.close(); 39 } 40 } How it works   Lines 3 -5 Three import statements are required: for Java collections (line 3 ), for JDO (line 4) and for ObjectDB extensions