Internal Website Search

51-100 of 200 results

Unexpected query token 'delete' (SELECT is expected) (error 752)

simple codes(see attachment), failed.   gzdillon Lai Yang DELETE queries should not be run with getSingleResult ( which is for SELECT queries). Use executeUpdate instead. See this manual page . support Support

How to delete M2M relationship?

;   private Set timeslots = new HashSet(); And i would like to delete the timeslots

cannot delete objects after crash (see issue 2283)

after the crash we cannot delete specific objects, see screenshots of explorer. Database will be soon available (size 5.561.119 KB) on hummingbird-systems.com, user/pw your db name, main menu option objectdb  hgzwicker Hans-Georg Zwicker meanwhile the database became completely unusable

delete of a collection in explorer changes type

accidently we used the option delete on a collection of type ArrayList . On doing so the type changed to List . we are using explorer version 2.7.1_02 How can we change that back again ? hgzwicker Hans-Georg Zwicker Is it only an issue with the type of the field as shown by the Explorer or

javax.persistence.criteria.CriteriaDelete

JPA Interface CriteriaDelete Type Parameters: - the entity type that is the target of the delete ... for performing bulk delete operations using the Criteria API Criteria API bulk delete operations map directly to database delete operations. The persistence context is not synchronized with the result

javax.persistence.Query

. Public Methods int executeUpdate () Execute an update or delete statement. Return: the number of entities updated or deleted Throws: IllegalStateException - if called for a Java Persistence query ... UPDATE or DELETE statement QueryTimeoutException - if the query execution exceeds the query timeout

javax.persistence.TypedQuery

() Execute an update or delete statement. Return: the number of entities updated or deleted Throws ... : IllegalStateException - if called for a Java Persistence query language UPDATE or DELETE statement ... DELETE statement QueryTimeoutException - if the query execution exceeds the query timeout value set

javax.persistence.EntityManager

, e.g., for update or delete . If the query is not an update or delete query, query execution ... ;deleteQuery) Create an instance of Query for executing a criteria delete query. Parameters: deleteQuery - a criteria delete query object Return: the new query instance Throws: IllegalArgumentException

javax.persistence.criteria.CommonAbstractCriteria

that is common to both top-level criteria queries and subqueries as well as to update and delete ... queries and criteria update and delete operations are typed differently. Criteria queries are typed according to the query result type. Update and delete operations are typed according to the target

CriteriaDelete.where(restrictions) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaDelete CriteriaDelete where (   Predicate... restrictions ) Modify the delete query to restrict the target of the deletion according ... . Parameters: restrictions - zero or more restriction predicates Return: the modified delete query Since: JPA 2.1

CriteriaDelete.where(restriction) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaDelete CriteriaDelete where (    Expression  restriction ) Modify the delete query to restrict the target of the deletion according ... : restriction - a simple or compound boolean expression Return: the modified delete query Since: JPA 2.1

javax.persistence.ForeignKey

[ ( {, }... ) ] [ ON UPDATE ] [ ON DELETE ] When the ConstraintMode value is CONSTRAINT , but the foreignKeyDefinition element is not specified, the provider will generate foreign key constraints whose update and delete ... a constraint whose update and delete actions it determines most appropriate for the join column(s

EntityManager.createQuery(deleteQuery) - JPA Method

 deleteQuery ) Create an instance of Query for executing a criteria delete query. Parameters: deleteQuery - a criteria delete query object Return: the new query instance Throws: IllegalArgumentException - if the delete query is found to be invalid Since: JPA 2.1

CriteriaDelete.from(entity) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaDelete Root from (    EntityType  entity ) Create and add a query root corresponding to the entity that is the target of the delete . A CriteriaDelete object has a single root, the entity that is being deleted . Parameters: entity

CriteriaDelete.from(entityClass) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaDelete Root from (   Class  entityClass ) Create and add a query root corresponding to the entity that is the target of the delete . A CriteriaDelete object has a single root, the entity that is being deleted . Parameters: entityClass

javax.persistence.LockModeType

. Another transaction T2 then modifies or deletes that row, before T1 has committed. Both transactions eventually commit ... reads a row. Another transaction T2 then modifies or deletes that row, before T1 has committed or

ArrayIndexOutOfBoundException

.deleteInOpenTransaction(ObjectCacheDB.java:361) at com.ysoft.cache.objectdb.ObjectCacheDB. delete (ObjectCacheDB.java:356) at com.ysoft.cache.objectdb.ObjectCacheDB. delete (ObjectCacheDB.java:347) at eu.ysoft.safeq.ors.CacheDBWrapper. delete (CacheDBWrapper.java:73) at ysoft.sqcore.job.CacheJobManager

Query.executeUpdate() - JPA Method

JPA Method in javax.persistence.Query int executeUpdate () Execute an update or delete statement. Return: the number of entities updated or deleted Throws: IllegalStateException - if called for a Java Persistence query language SELECT statement or for a criteria query TransactionRequiredException

javax.persistence.criteria.CriteriaBuilder

a CriteriaDelete query object to perform a bulk delete operation. Parameters: targetEntity - target type for delete operation Return: the query object Since: JPA 2.1 CriteriaUpdate createCriteriaUpdate

CriteriaBuilder.createCriteriaDelete(targetEntity) - JPA Method

JPA Method in javax.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 Return: the query object Since: JPA 2.1

EntityManager.createNativeQuery(sqlString) - JPA Method

JPA Method in javax.persistence.EntityManager Query createNativeQuery (   String sqlString ) Create an instance of Query for executing a native SQL statement, e.g., for update or delete . If the query is not an update or delete query, query execution will result in each row

javax.jdo.Query

semicolons. Since: JDO 1.0 long deletePersistentAll () Deletes all the instances of the candidate class that pass the filter. Returns the number of instances of the candidate class that were deleted ... if deletePersistent were called on them. Specifically, if the class of deleted instances implements

Query.deletePersistentAll() - JDO Method

JDO Method in javax.jdo.Query long deletePersistentAll () Deletes all the instances ... that were deleted , specifically not including the number of dependent and embedded instances. Dirty instances ... changes as if deletePersistent were called on them. Specifically, if the class of deleted instances

javax.jdo.listener.DeleteLifecycleListener

is implemented by listeners to be notified of delete events. Since: JDO 2.0 Public Methods void postDelete ( InstanceLifecycleEvent  event) Invoked whenever a persistent instance is deleted ... after the instance transitions to persistent- deleted . Access to field values is not permitted. Parameters: event

javax.jdo.PersistenceManager

;pc) Delete the persistent instance from the data store. This method must be called in an active ... the closure of the instance persistent, the closure of the instance is not deleted from the data store. This method has no effect if the instance is already deleted in the current transaction. This method

javax.jdo.spi.PersistenceCapable

, transactional, dirty, new, deleted , or detached; and to get its associated PersistenceManager ... has been deleted . Instances that have been deleted in the current transaction return true. Transient instances return false. Return: true if this instance was deleted in the current transaction

javax.jdo.JDOHelper

whether the instance is persistent, transactional, dirty, new, deleted , or detached ... has been deleted . Instances that have been deleted in the current transaction return true ... . Parameters: pc - the PersistenceCapable instance. Return: true if the parameter instance was deleted in

javax.jdo.spi.StateInterrogation

isDeleted (Object pc) Tests whether the parameter instance has been deleted . Instances that have been deleted in the current transaction return Boolean.TRUE . Instances known by the implementation to be non- deleted return Boolean.FALSE . Instances not recognized by the implementation return null

javax.jdo.spi.StateManager

whether this object has been deleted . Instances that have been deleted in the current transaction return true ... : true if this instance was deleted in the current transaction. See Also: PersistenceManager ... whether this object is dirty. Instances that have been modified, deleted , or newly made persistent in the current

javax.jdo.listener.DeleteCallback

JDO Interface DeleteCallback This interface is used to notify instances of delete events. Since: JDO 2.0 Public Methods void jdoPreDelete () Called before the instance is deleted . This method is called before the state transition to persistent- deleted or persistent-new- deleted . Access to field

StateInterrogation.isDeleted(pc) - JDO Method

) Tests whether the parameter instance has been deleted . Instances that have been deleted in the current transaction return Boolean.TRUE . Instances known by the implementation to be non- deleted return ... - the instance. Return: Boolean.TRUE if the parameter instance was deleted in the current transaction

javax.jdo.annotations.Value

ForeignKeyAction deleteAction default ForeignKeyAction.UNSPECIFIED Delete action to apply to any foreign key ... (and will be deleted when the owner is deleted ). Since: JDO 2.1 String embedded default

javax.jdo.annotations.Key

deleteAction default ForeignKeyAction.UNSPECIFIED Delete action to apply to the foreign key for the key ... (and will be deleted when the owner is deleted ). Since: JDO 2.1 String embedded default "" Whether this key

StateManager.isDeleted(pc) - JDO Method

JDO Method in javax.jdo.spi.StateManager boolean isDeleted (   PersistenceCapable pc ) Tests whether this object has been deleted . Instances that have been deleted in the current ... PersistenceCapable instance Return: true if this instance was deleted in the current transaction. See Also: PersistenceManager.deletePersistent (Object pc) Since: JDO 1.0

JDOHelper.isDeleted(pc) - JDO Static Method

JDO Static Method in javax.jdo.JDOHelper boolean isDeleted (   Object pc ) Tests whether the parameter instance has been deleted . Instances that have been deleted in the current ... if the parameter instance was deleted in the current transaction. See Also: PersistenceManager.deletePersistent (Object pc) PersistenceCapable() Since: JDO 1.0

DeleteLifecycleListener.postDelete(event) - JDO Method

JDO Method in javax.jdo.listener.DeleteLifecycleListener void postDelete (    InstanceLifecycleEvent  event ) Invoked whenever a persistent instance is deleted , for example ... to persistent- deleted . Access to field values is not permitted. Parameters: event - the delete event. Since: JDO 2.0

DeleteCallback.jdoPreDelete() - JDO Method

JDO Method in javax.jdo.listener.DeleteCallback void jdoPreDelete () Called before the instance is deleted . This method is called before the state transition to persistent- deleted or persistent-new- deleted . Access to field values within this call are valid. Access to field values

PersistenceManager.deletePersistent(pc) - JDO Method

) Delete the persistent instance from the data store. This method must be called in an active ... of the instance persistent, the closure of the instance is not deleted from the data store. This method has no effect if the instance is already deleted in the current transaction. This method throws

javax.jdo.annotations.Element

. Since: JDO 2.1 ForeignKeyAction deleteAction default ForeignKeyAction.UNSPECIFIED Delete action to apply ... is dependent on the owner, and will be deleted when the owner is deleted . Since: JDO 2.1 String

javax.jdo.InstanceCallbacks

Since: JDO 2.0 void jdoPreDelete () Called before the instance is deleted . This method is called before the state transition to persistent- deleted or persistent-new- deleted . Access to field values

PersistenceCapable.jdoIsDeleted() - JDO Method

JDO Method in javax.jdo.spi.PersistenceCapable boolean jdoIsDeleted () Tests whether this object has been deleted . Instances that have been deleted in the current transaction return true. Transient instances return false. Return: true if this instance was deleted in the current transaction

javax.jdo.annotations.Persistent.dependent

JDO Annotation Attribute in javax.jdo.annotations.Persistent String dependent default "" Whether related object(s) of this member are dependent and so deleted when this object is deleted . Since: JDO 2.1

javax.jdo.annotations.Persistent

dependent default "" Whether related object(s) of this member are dependent and so deleted when this object is deleted . Since: JDO 2.1 String dependentElement default "" Whether the elements of this member

javax.jdo.annotations.Key.dependent

JDO Annotation Attribute in javax.jdo.annotations.Key String dependent default "" Whether the key is dependent on the owner (and will be deleted when the owner is deleted ). Since: JDO 2.1

javax.jdo.annotations.Value.dependent

JDO Annotation Attribute in javax.jdo.annotations.Value String dependent default "" Whether the value is dependent on the owner (and will be deleted when the owner is deleted ). Since: JDO 2.1

Query.deletePersistentAll(parameters) - JDO Method

JDO Method in javax.jdo.Query long deletePersistentAll (   Map parameters ) Deletes all the instances of the candidate class that pass the filter. Parameters: parameters - for the query Return: the number of instances of the candidate class that were deleted See Also: deletePersistentAll () Since: JDO 2.0

Query.deletePersistentAll(parameters) - JDO Method

JDO Method in javax.jdo.Query long deletePersistentAll (   Object... parameters ) Deletes all the instances of the candidate class that pass the filter. Parameters: parameters - for the query Return: the number of instances of the candidate class that were deleted See Also: deletePersistentAll () Since: JDO 2.0

DeleteLifecycleListener.preDelete(event) - JDO Method

JDO Method in javax.jdo.listener.DeleteLifecycleListener void preDelete (    InstanceLifecycleEvent  event ) Invoked whenever a persistent instance is deleted , for example ... . This method is called before the instance callback DeleteCallback.jdoPreDelete . Parameters: event - the delete event. Since: JDO 2.0

javax.jdo.annotations.Element.dependent

JDO Annotation Attribute in javax.jdo.annotations.Element String dependent default "" Whether the element is dependent on the owner, and will be deleted when the owner is deleted . Since: JDO 2.1

javax.jdo.ObjectState

_CLEAN Since: JDO 1.0 PERSISTENT_ DELETED Since: JDO 1.0 PERSISTENT_DIRTY Since: JDO 1.0 PERSISTENT_NEW Since: JDO 1.0 PERSISTENT_NEW_ DELETED Since: JDO 1.0 PERSISTENT_NONTRANSACTIONAL_DIRTY Since: JDO