Internal Website Search

51-100 of 200 results

CriteriaBuilder createCriteriaUpdate are not executing

Regards all!! CriteriaBuilder createCriteriaUpdate are not executing . CriteriaUpdate criteriaUpdate = cb.createCriteriaUpdate(Order.class);   java.lang.UnsupportedOperationException at com.objectdb.jpa.criteria. CriteriaBuilderImpl.createCriteriaUpdate(CriteriaBuilderImpl.java:1502

Executing JUnit "all tests" throws "Object ... belongs to another EntityManager" Exception

Executing JUnit "all tests" throws "Object ... belongs to another EntityManager" Exception

Unable to execute update query

Unable to execute update query

Error 990... and then new version?

.ReflectionUtils.invokeMethod(ReflectionUtils.java:628) at org.junit.jupiter.engine. execution ... .hierarchical.ThrowableCollector. execute (ThrowableCollector.java:73) at org.junit.jupiter.engine ... .jupiter.engine.descriptor.TestMethodTestDescriptor. execute (TestMethodTestDescriptor.java:127) at org

Sometimes the ObjectDB throws an internal expeption if a find() was executed

Sometimes the ObjectDB throws an internal exception if a find() was executed . It is a sporadic issue that occurs only with Objectdb 2.7.0_b2 and only if the entites are enhanced. (We don't enabled the new property "objectdb.temp.extended-ref-retrieval" from http://www.objectdb.com/database/forum

[Explorer] Executing Queries

The new Explorer of ObjectDB 2 supports retrieval of database objects by classes and navigation. Retrieval of database objects by executing queries visually should also be supported. This is one of the features that have been supported by the old Explorer of ObjectDB 1. It has been temporarily

Query execution creates a wrong result

Hello, we analysed an unexpected behavior and find out that the result of an Query are wrong. We prepared an Example that shows the BUG. (see attachment) The Example executes two Queries. The first returns an expected result (one Entity). The second Query is the first Query with an additional

Query execution causes an unexpected internal exception (Error 990)

Query execution causes an unexpected internal exception (Error 990)

@Enumerated(EnumType.STRING) annotation inhibits proper execution of IN expressions.

@Enumerated(EnumType.STRING) annotation inhibits proper execution of IN expressions.

NullpointerException when execute a commit

NullpointerException when execute a commit

javax.persistence.StoredProcedureQuery

procedure query execution . Stored procedure query execution may be controlled in accordance ... on a StoredProcedureQuery object, the provider will call execute on an unexecuted stored procedure query before ... object, the provider will call execute on an unexecuted stored procedure query followed by

javax.persistence.EntityManager

an instance of Query for executing a named query (in the Java Persistence query language or in native SQL ...  resultClass) Create an instance of TypedQuery for executing a Java Persistence query language ... of StoredProcedureQuery for executing a stored procedure in the database. Parameters must be registered

javax.persistence.Query

JPA Interface Query Interface used to control query execution . See Also: TypedQuery ... . Public Methods int executeUpdate () Execute an update or delete statement. Return: the number ... - if the statement execution exceeds the query timeout value set and only the statement is rolled

javax.persistence.TypedQuery

used to control the execution of typed queries. See Also: Query Parameter Since: JPA 2.0 Chapter 4 ... () Execute an update or delete statement. Return: the number of entities updated or deleted Throws ... been joined to the transaction QueryTimeoutException - if the statement execution exceeds the query

javax.persistence.criteria.CriteriaQuery

. The type of the result of the query execution depends on the specification of the type of the criteria ... that results from the query execution . If the type of the criteria query is CriteriaQuery for some user-defined ... specified selection(s), if any. The type of the result of the query execution depends

Query.executeUpdate() - JPA Method

JPA Method in javax.persistence.Query int executeUpdate () Execute an update or delete statement ... QueryTimeoutException - if the statement execution exceeds the query timeout value set and only the statement is rolled back PersistenceException - if the query execution exceeds the query timeout value

StoredProcedureQuery.getSingleResult() - JPA Method

result from the next result set. The provider will call execute on the query if needed. A REF_CURSOR ... QueryTimeoutException - if the query execution exceeds the query timeout value set and only the statement is rolled back PersistenceException - if the query execution exceeds the query timeout value set and the transaction is rolled back Since: JPA 2.1

StoredProcedureQuery.getResultList() - JPA Method

of results from the next result set. The provider will call execute on the query if needed. A REF_CURSOR ... : QueryTimeoutException - if the query execution exceeds the query timeout value set and only the statement is rolled back PersistenceException - if the query execution exceeds the query timeout value set and the transaction is rolled back Since: JPA 2.1

Query.getResultStream() - JPA Method

JPA Method in javax.persistence.Query Stream getResultStream () Execute a SELECT query and return ... execution exceeds the query timeout value set and only the statement is rolled ... and only the statement is rolled back PersistenceException - if the query execution exceeds the query

Query.getSingleResult() - JPA Method

JPA Method in javax.persistence.Query Object getSingleResult () Execute a SELECT query ... Persistence query language UPDATE or DELETE statement QueryTimeoutException - if the query execution exceeds ... and only the statement is rolled back PersistenceException - if the query execution exceeds the query timeout value set and the transaction is rolled back Since: JPA 1.0

Query.getResultList() - JPA Method

JPA Method in javax.persistence.Query List getResultList () Execute a SELECT query and return ... - if the query execution exceeds the query timeout value set and only the statement is rolled ... fails and only the statement is rolled back PersistenceException - if the query execution exceeds

TypedQuery.getSingleResult() - JPA Method

JPA Method in javax.persistence.TypedQuery X getSingleResult () Execute a SELECT query ... query language UPDATE or DELETE statement QueryTimeoutException - if the query execution exceeds ... is rolled back PersistenceException - if the query execution exceeds the query timeout value set and the transaction is rolled back Since: JPA 2.0

TypedQuery.getResultList() - JPA Method

JPA Method in javax.persistence.TypedQuery List getResultList () Execute a SELECT query and return ... - if the query execution exceeds the query timeout value set and only the statement is rolled ... fails and only the statement is rolled back PersistenceException - if the query execution exceeds

TypedQuery.getResultStream() - JPA Method

JPA Method in javax.persistence.TypedQuery Stream getResultStream () Execute a SELECT query ... execution exceeds the query timeout value set and only the statement is rolled ... and only the statement is rolled back PersistenceException - if the query execution exceeds the query

javax.persistence.criteria.CriteriaBuilder

. This method is used to specify a constructor that will be applied to the results of the query execution ... after the query is executed . Parameters: resultClass - class whose instance is to be constructed selections ... ; Expression ... args) Create an expression for the execution of a database function. Parameters

StoredProcedureQuery.executeUpdate() - JPA Method

will call execute on the query if needed. Return: the update count or -1 if there is no pending result ... - if the statement execution exceeds the query timeout value set and only the statement is rolled back PersistenceException - if the query execution exceeds the query timeout value set and the transaction is rolled back Since: JPA 2.1

EntityManager.createStoredProcedureQuery(procedureName) - JPA Method

(   String procedureName ) Create an instance of StoredProcedureQuery for executing ... can be executed . If the stored procedure returns one or more result sets, any result set will be returned as ... of the given name does not exist (or the query execution will fail) Since: JPA 2.1

EntityManager.createStoredProcedureQuery(procedureName,resultSetMappings) - JPA Method

an instance of StoredProcedureQuery for executing a stored procedure in the database. Parameters must be registered before the stored procedure can be executed . The resultSetMapping arguments ... or result set mapping of the given name does not exist (or the query execution will fail) Since: JPA 1.0

EntityManager.createStoredProcedureQuery(procedureName,resultClasses) - JPA Method

an instance of StoredProcedureQuery for executing a stored procedure in the database. Parameters must be registered before the stored procedure can be executed . The resultClass arguments must be specified in ... instance Throws: IllegalArgumentException - if a stored procedure of the given name does not exist (or the query execution will fail) Since: JPA 2.1

objectdb-2.6.9_06: Extended Persistence Context fails: 'Attempt to begin a new transaction when a transaction is active'

-OK-when-force-commit.png   But then, when the commit() is executed on the second build pass, I ... .java:219) at org.glassfish.deployment.admin.DeployCommand. execute (DeployCommand.java:491) at com ... .v3.admin.CommandRunnerImpl$2. execute (CommandRunnerImpl.java:534) at com.sun.enterprise.v3.admin

javax.persistence.NamedQuery.lockMode

JPA Annotation Attribute in javax.persistence.NamedQuery LockModeType lockMode default NONE (Optional) The lock mode type to use in query execution . If a lockMode other than LockModeType.NONE is specified, the query must be executed in a transaction and the persistence context joined to the transaction. Since: JPA 2.0

javax.persistence.NamedQuery

to use in query execution . If a lockMode other than LockModeType.NONE is specified, the query must be executed in a transaction and the persistence context joined to the transaction. Since: JPA 2.0

StoredProcedureQuery.hasMoreResults() - JPA Method

to result set Throws: QueryTimeoutException - if the query execution exceeds the query timeout value set and only the statement is rolled back PersistenceException - if the query execution exceeds

StoredProcedureQuery.getUpdateCount() - JPA Method

: QueryTimeoutException - if the query execution exceeds the query timeout value set and only the statement is rolled back PersistenceException - if the query execution exceeds the query timeout value set and the transaction is rolled back Since: JPA 2.1

javax.persistence.FlushModeType

JPA Enum FlushModeType java.lang.Object ∟  java.lang.Enum ∟  javax.persistence.FlushModeType Flush mode setting. When queries are executed within a transaction, if FlushModeType.AUTO ... ) Flushing to occur at query execution . Since: JPA 1.0 COMMIT Flushing to occur at transaction commit

EntityManager.createNamedStoredProcedureQuery(name) - JPA Method

JPA Method in javax.persistence.EntityManager StoredProcedureQuery createNamedStoredProcedureQuery (   String name ) Create an instance of StoredProcedureQuery for executing a stored procedure in the database. Parameters must be registered before the stored procedure can be executed

CriteriaBuilder.construct(resultClass,selections) - JPA Method

to the results of the query execution . If the constructor is for an entity class, the resulting entities will be in the new state after the query is executed . Parameters: resultClass - class

javax.jdo.Query

with a PersistenceManager . Multiple queries might be executed simultaneously by different threads, but the implementation might choose to execute them serially. In either case, the implementation must be thread safe ... : this.fieldName . The Query interface provides methods which execute the query based on the parameters

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 declareParameters method, and a value which is the value used in the execute method. The keys in the Map

Query.setRange(fromInclToExcl) - JDO Method

setRange("50, :to"); . The execution of the query is modified to return only a subset of results ... and the remaining 30 results are ignored. An implementation should execute the query such that the range

Query.setRange(fromIncl,toExcl) - JDO Method

JDO Method in javax.jdo.Query void setRange (   long fromIncl,    long toExcl ) Set the range of results to return. The execution of the query is modified ... should execute the query such that the range algorithm is done at the data store. Parameters: fromIncl - 0

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.close(queryResult) - JDO Method

JDO Method in javax.jdo.Query void close (   Object queryResult ) Close a query result and release any resources associated with it. The parameter is the return from execute ... - the result of execute (...) on this Query instance. Since: JDO 1.0

Query.addSubquery(sub,variableDeclaration,candidateCollectionExpression,parameters) - JDO Method

parameter instance is unmodified as a result of the addSubquery or subsequent execution of the outer ... of the variable containing the results of the subquery execution . If the same value of variableDeclaration

javax.jdo.FetchGroup

if addMembers was called. After this method executes , the category is not remembered. Return ... . After this method executes , the category is not remembered. Return: the FetchGroup Throws

Query.setIgnoreCache(ignoreCache) - JDO Method

whether the query should execute entirely in the back end, instead of in the cache. If this flag is set to true , an implementation might be able to optimize the query execution by ignoring changed values in

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 ... declaration must be bound to a value when the query is executed . The String parameter to this method

javax.jdo.listener.DetachCallback

during the execution of javax.jdo.PersistenceManager.detachCopy on the detached instance after the copy ... jdoPreDetach () This method is called during the execution of javax.jdo.PersistenceManager.detachCopy

javax.jdo.listener.DetachLifecycleListener

postDetach ( InstanceLifecycleEvent  event) This method is called during the execution of javax.jdo ... during the execution of javax.jdo.PersistenceManager.detachCopy before the detached copy is made. It is called

javax.jdo.listener.AttachCallback

during the execution of javax.jdo.PersistenceManager.makePersistent on the persistent instance after the copy ... () This method is called during the execution of javax.jdo.PersistenceManager.makePersistent on the detached instance before the copy is made. Since: JDO 2.0