Internal Website Search
51-100 of 200 resultsjavax.persistence.Query queries . Parameters: name - parameter name Return: parameter object Throws: IllegalArgumentException ... parameter of the given name and type. This method is required to be supported for criteria queries ... correspond to a parameter of the query Since: JPA 2.0 Query setParameter (String name ,  | |
EntityManager.createNamedQuery(name,resultClass) - JPA Method a Java Persistence query language named query . The select list of the query must contain ... - the name of a query defined in metadata resultClass - the type of the query result Return ... name or if the query string is found to be invalid or if the query result is found to not be assignable to the specified type Since: JPA 2.0 | |
EntityManager.createNamedQuery(name) - JPA Method; name ) Create an instance of Query for executing a named query (in the Java Persistence query language or in native SQL). Parameters: name - the name of a query defined in metadata Return: the new query instance Throws: IllegalArgumentException - if a query has not been defined with the given name or if the query string is found to be invalid Since: JPA 1.0 | |
JPA Persistence Unit classes. However, it might be useful to register classes that define generators and named queries (by annotations). Otherwise, the generators and named queries are available only when the containing ... A persistence unit is defined by a persistence-unit XML element. The required name attribute ( “my-pu | |
Retrieving JPA Entity Objects = manager.getName(); Accessing a persistent field in a hollow object (e.g. the name of the manager in ... and the other for checking a persistent field of an entity object. Retrieval by Query The most flexible method for retrieving objects from the database is to use queries . The official query language | |
EntityManager.createNamedStoredProcedureQuery(name) - JPA Method of type Object[]. Parameters: name - name assigned to the stored procedure query in metadata Return: the new stored procedure query instance Throws: IllegalArgumentException - if a query has not been defined with the given name Since: JPA 2.1 ... ( String name ) Create an instance of StoredProcedureQuery for executing a stored | |
TypedQuery.setParameter(name,value) - JPA Method - parameter name value - parameter value Return: the same query instance Throws: IllegalArgumentException - if the parameter name does not correspond to a parameter of the query or if the argument is of incorrect type Since: JPA 2.0 ... JPA Method in javax.persistence.TypedQuery TypedQuery setParameter ( String name | |
StoredProcedureQuery.setParameter(name,value,temporalType) - JPA Method: IllegalArgumentException - if the parameter name does not correspond to a parameter of the query or if the value argument is of incorrect type Since: JPA 2.1 ... ; String name , Date value, TemporalType temporalType ) Bind an instance of java.util.Date to a named parameter. Parameters: name - parameter name | |
StoredProcedureQuery.setParameter(name,value,temporalType) - JPA Method - parameter name value - parameter value temporalType - temporal type Return: the same query instance Throws: IllegalArgumentException - if the parameter name does not correspond to a parameter of the query or if the value argument is of incorrect type Since: JPA 2.1 ... ; String name , Calendar value, TemporalType   | |
StoredProcedureQuery.setParameter(name,value) - JPA Method; String name , Object value ) Bind an argument value to a named parameter. Parameters: name - parameter name value - parameter value Return: the same query instance Throws: IllegalArgumentException - if the parameter name does not correspond to a parameter of the query | |
TypedQuery.setParameter(name,value,temporalType) - JPA Method - if the parameter name does not correspond to a parameter of the query or if the value argument is of incorrect type Since: JPA 2.0 ... JPA Method in javax.persistence.TypedQuery TypedQuery setParameter ( String name ... an instance of java.util.Date to a named parameter. Parameters: name - parameter name value - parameter | |
TypedQuery.setParameter(name,value,temporalType) - JPA Method: IllegalArgumentException - if the parameter name does not correspond to a parameter of the query or if the value argument is of incorrect type Since: JPA 2.0 ... JPA Method in javax.persistence.TypedQuery TypedQuery setParameter ( String name ... an instance of java.util.Calendar to a named parameter. Parameters: name - parameter name value | |
javax.persistence.Entity.name JPA Annotation Attribute in javax.persistence.Entity String name default "" (Optional) The entity name . Defaults to the unqualified name of the entity class. This name is used to refer to the entity in queries . The name must not be a reserved literal in the Java Persistence query language. Since: JPA 1.0 | |
javax.persistence.NamedStoredProcedureQuery.name JPA Annotation Attribute in javax.persistence.NamedStoredProcedureQuery String name default null The name used to refer to the query with the EntityManager methods that create stored procedure query objects. Since: JPA 2.1 | |
javax.persistence.NamedQuery.name JPA Annotation Attribute in javax.persistence.NamedQuery String name default null (Required) The name used to refer to the query with the EntityManager methods that create query objects. Since: JPA 1.0 | |
javax.persistence.NamedNativeQuery.name JPA Annotation Attribute in javax.persistence.NamedNativeQuery String name default null The name used to refer to the query with the EntityManager methods that create query objects. Since: JPA 1.0 | |
javax.persistence.ColumnResult.name JPA Annotation Attribute in javax.persistence.ColumnResult String name default null (Required) The name of a column in the SELECT clause of a SQL query Since: JPA 1.0 | |
javax.persistence.SqlResultSetMapping.name JPA Annotation Attribute in javax.persistence.SqlResultSetMapping String name default null The name given to the result set mapping, and used to refer to it in the methods of the Query and StoredProcedureQuery APIs. Since: JPA 1.0 | |
BIRT/ODA ObjectDB Driver and Reporting Tools (BIRT) that adds support of ObjectDB as a data source and JPQL as a data set query ... data source types. Enter data source name (e.g. ObjectDB Points ) and click Next . Specify an ObjectDB ... . Select an ObjectDB data source (e.g. ObjectDB Points ). Enter a data set name (e.g. Points by X | |
General Settings and Logging, such as query results that contain millions of objects. The element specifies temporary file settings ... specifying 0 as the maximum list size . The user attribute specifies if user names should be saved ... ( "" ) logging to file is disabled. Every day a new log file is generated with the name odb .log | |
Schema Update ... ... A element has two roles: If the optional new- name attribute is specified, the package name is changed from the original name , which is specified by the required name attribute, to the new name . All the classes in that package are moved to the new package name . In addition, whether or not a new | |
Query.setHint(hintName,value) - JPA Method - name of the property or hint value - value for the property or hint Return: the same query instance ... JPA Method in javax.persistence. Query Query setHint ( String hintName, Object value ) Set a query property or hint. The hints elements may be used to specify | |
WHERE clause (JPQL / Criteria API) JPQL query that retrieves selective objects from the database. Out of the four optional clauses of JPQL queries , the WHERE clause is definitely the most frequently used. How a WHERE Clause Works The following query retrieves only countries with a population size above a population size p | |
JPA Lifecycle Events should always return void and take no arguments. They can have any name and any access level ( public , protected ... lifecycle event (which is still in progress) callback methods should not call EntityManager or Query | |
javax.persistence.StoredProcedureQuery of the given name . This method is not required to be supported for native queries . Parameters: name ... of the specified name does not exist IllegalStateException - if invoked on a native query when the implementation ... of the given name and type. This method is required to be supported for criteria queries only. Parameters | |
Step 3: Define an EJB Session Bean Bean and clicking Next . Enter GuestDao as the EJB class name - use exactly that case sensitive class name . The Java package name should be guest. Click Finish to create the new session bean (EJB ... getAllGuests() { TypedQuery query = em.createQuery( "SELECT g FROM Guest g ORDER BY g.id", Guest.class | |
Step 3: Define a Spring DAO Component . The package name should be guest . Enter GuestDao as the class name - use exactly that case sensitive class name . Click Finish to create the new DAO Spring component class. Now ... getAllGuests() { TypedQuery query = em.createQuery( "SELECT g FROM Guest g ORDER BY g.id", Guest.class); return | |
Step 3: Define an EJB Session Bean node (in the [Package Explorer] window) and selecting New Class . The package name should be guest . Enter GuestDao as the class name - use exactly that case sensitive class name . Click Finish ... ); } // Retrieves all the guests: public List getAllGuests() { TypedQuery query = em.createQuery( "SELECT g FROM | |
Step 4: Create an ObjectDB Data Set Queries against the database are represented in BIRT as data sets. To create the data set: Open ... Points ). Enter a data set name (e.g. Points by X ) and click Next . The database in this tutorial contains Point entity objects. We will use a simple JPQL query that retrieves points with x | |
Step 3: Define a Spring DAO Component Java Class... . Enter GuestDao as the class name - use exactly that case sensitive class name . The Package should be guest. Click Finish to create the new DAO Spring component class. Now ... () { TypedQuery query = em.createQuery( "SELECT g FROM Guest g ORDER BY g.id", Guest.class); return | |
Step 2: Entity Class and Persistence Unit , enter src/main/java as Folder Name and click Finish . Open the [New Java Class] dialog box, e.g. by ... ; New Class . Enter guest as the package name - use exactly that case sensitive package name . Enter Guest as the class name - use exactly that case sensitive class name . Click | |
javax.jdo.Query in queries . Type names have their own namespace that is separate from the namespace for fields ... conflict with parameter names . The result of the query by default is a list of result class instances ... variableDeclaration - the name of the variable in the outer query to bind the results | |
Step 2: Entity Class and Persistence Unit) and selecting New Class . Enter guest as the package name - use exactly that case sensitive package name . Enter Guest as the class name - use exactly that case sensitive class name . Click Finish to create the new class. A new class that should represent Guest | |
Query.addSubquery(sub,variableDeclaration,candidateCollectionExpression,parameters) - JDO Method variableDeclaration - the name of the variable in the outer query to bind the results ... JDO Method in javax.jdo. Query void addSubquery ( Query sub,   ... ; String... parameters ) Add a subquery to this query . A subquery is composed as a Query | |
javax.jdo.annotations.Query for a named query . Corresponds to the xml element " query ". Since: JDO 2.1 Public Annotation Attributes ... "" The name of the fetch plan used by this query Since: JDO 2.1 String language default "JDOQL" The query language Since: JDO 2.1 String name default null Name of the query (mandatory) Since: JDO 2.1 Class | |
Query.addSubquery(sub,variableDeclaration,candidateCollectionExpression,parameters) - JDO Method ":", and the value as the name of the expression in the outer query . If the trimmed expression ... - the name of the variable to be used in this Query candidateCollectionExpression - the candidate ... JDO Method in javax.jdo. Query void addSubquery ( Query sub,   | |
Query.setFilter(filter) - JDO Method JDO Method in javax.jdo. Query void setFilter ( String filter ) Set the filter for the query . The filter specification is a String containing a Boolean expression ... to the candidate Class of the Query ; and for all variables there exists a value for which the filter | |
Query.addSubquery(sub,variableDeclaration,candidateCollectionExpression,parameter) - JDO Method: sub - the subquery to add to this Query variableDeclaration - the name of the variable to be used ... JDO Method in javax.jdo. Query void addSubquery ( Query sub,   ... ; String parameter ) Add a subquery to this query . The String version of the method | |
Query.addSubquery(sub,variableDeclaration,candidateCollectionExpression) - JDO Method a subquery to this query . Parameters: sub - the subquery to add to this Query variableDeclaration - the name of the variable in the outer query to bind the results of the subquery ... JDO Method in javax.jdo. Query void addSubquery ( Query sub,   | |
Query.setResultClass(cls) - JDO Method JDO Method in javax.jdo. Query void setResultClass ( Class cls ) Specify the type ... of the query . If the result consists of one expression, the result class defaults to the type ... that matches the name of the result expression and is of the type (treating wrapper types | |
javax.jdo.annotations.Queries JDO Annotation Queries Target: ElementType.TYPE Implemented Interfaces: Annotation Annotation for a group of named queries . Since: JDO 2.1 Public Annotation Attributes Query [] value default null The named queries Since: JDO 2.1 | |
Query.executeWithArray(parameters) - JDO Method JDO Method in javax.jdo. Query Object executeWithArray ( Object... parameters ) Execute the query and return the filtered Collection . The execution of the query obtains the values of the parameters and matches them against the declared parameters in order. The names | |
Query.declareParameters(parameters) - JDO Method JDO Method in javax.jdo. Query void declareParameters ( String parameters ) Declare the list of parameters query execution. The parameter declaration is a String containing one or more query parameter declarations separated with commas. Each parameter named in the parameter | |
Query.executeWithMap(parameters) - JDO Method JDO Method in javax.jdo. Query Object executeWithMap ( Map parameters ) Execute the query and return the filtered Collection . The query is executed with the parameters set by the Map values. Each Map entry consists of a key which is the name of the parameter in | |
javax.jdo.annotations.Queries.value JDO Annotation Attribute in javax.jdo.annotations. Queries Query [] value default null The named queries Since: JDO 2.1 | |
Query.declareImports(imports) - JDO Method JDO Method in javax.jdo. Query void declareImports ( String imports ) Set the import statements to be used to identify the fully qualified name of variables or parameters. Parameters and unbound variables might come from a different class from the candidate class, and the names | |
javax.jdo.annotations.Query.fetchPlan JDO Annotation Attribute in javax.jdo.annotations. Query String fetchPlan default "" The name of the fetch plan used by this query Since: JDO 2.1 | |
Query.setOrdering(ordering) - JDO Method JDO Method in javax.jdo. Query void setOrdering ( String ordering ) Set the ordering specification for the result Collection . The ordering specification is a String containing one or more ordering declarations separated by commas. Each ordering declaration is the name of the field | |
[ODB1] Chapter 2 - A Quick Tour ArrayList list; 18 try { 19 // Retrieve the list from the database by its name : 20 list = (ArrayList ... the database by its name "Hello World" using the getObjectById( ... ) method (line 20 ... to the database with the name "Hello World", using the Utilities.bind( ... ) static method (line 25 | |
JDOHelper.getPersistenceManagerFactory(overrides,name,resourceLoader,pmfLoader) - JDO Static Method ( Map overrides, String name , ClassLoader ... a PersistenceManagerFactory configured based on the properties stored in the resource at name , or, if not found, returns a PersistenceManagerFactory with the given name or, if not found, returns a javax.persistence |