Internal Website Search

51-100 of 200 results

How do I Remove an entity from the Database ?

Hi I no longer want to use an Entity .. (in SQL terms the whole Table ) ... How do I delete it ?   Thanks Paul Newman pnewman Paul Newman Currently classes cannot be removed but this only affects the list of classes in the Explorer. Removing of classes will be supported in the future. support Support

orphanRemoval = true not working when CascadeType.REMOVE is disabled

addresses; I'm expecting, that removing Employee from db, addresses has been too, but I ... = CascadeType. REMOVE ) Address entities used Employee (id=1) deleted, but Address (name_2) using

Question: remove and recreate an object, do the references survive ?

between that would remove the orphane references) ?   hgzwicker Hans-Georg Zwicker References

Removed entities can be found by query in the same transaction

Hello, we opened a transaction, load an entity from database and removed this entity by em. remove (). Afterwards the entity can be load again by query although the resulted entity have an attribute __odbtracker/m (type STA, value=Persistent-Deleted-Flushed) which shows that the entity is deleted

Allow removal of entity class from ObjectDB & Explorer

to its data structure. When an entity class becomes unnecessary, we should be able to remove

Persist & remove in same transaction

Remove the entity object, EntityManager is flushed & cleared, Transaction is not committed Count

javax.persistence.criteria.CriteriaQuery

are specified, any previously added grouping expressions are simply removed . This method only overrides ... grouping expressions are simply removed . This method only overrides the return type ... removed . This method only overrides the return type of the corresponding AbstractQuery method

javax.persistence.EntityManager

to create and remove persistent entity instances, to find entities by their primary key ... void detach (Object entity) Remove the given entity from the persistence context, causing a managed entity to become detached. Unflushed changes made to the entity if any (including removal

javax.persistence.criteria.AbstractQuery

are specified, any previously added grouping expressions are simply removed . Parameters: grouping - zero ... previously added grouping expressions are simply removed . Parameters: grouping - list of zero or ... , any previously added restrictions are simply removed . Parameters: restrictions - zero or

javax.persistence.criteria.Subquery

expressions are specified, any previously added grouping expressions are simply removed . This method ... previously added grouping expressions are simply removed . This method only overrides the return type ... are simply removed . This method only overrides the return type of the corresponding AbstractQuery

javax.persistence.OneToOne

the remove operation to entities that have been removed from the relationship and to cascade the remove operation to those entities. Since: JPA 2.0 Class targetEntity default void.class (Optional

javax.persistence.OneToMany.orphanRemoval

JPA Annotation Attribute in javax.persistence.OneToMany boolean orphanRemoval default false (Optional) Whether to apply the remove operation to entities that have been removed from the relationship and to cascade the remove operation to those entities. Since: JPA 2.0

javax.persistence.OneToOne.orphanRemoval

JPA Annotation Attribute in javax.persistence.OneToOne boolean orphanRemoval default false (Optional) Whether to apply the remove operation to entities that have been removed from the relationship and to cascade the remove operation to those entities. Since: JPA 2.0

javax.persistence.OneToMany

) Whether to apply the remove operation to entities that have been removed from the relationship and to cascade the remove operation to those entities. Since: JPA 2.0 Class targetEntity default void

javax.persistence.CascadeType

cascade=ALL is equivalent to cascade={PERSIST, MERGE, REMOVE , REFRESH, DETACH} . Since: JPA 1.0 Enum ... Cascade refresh operation Since: JPA 1.0 REMOVE Cascade remove operation Since: JPA 1.0 Public

EntityManager.detach(entity) - JPA Method

JPA Method in javax.persistence.EntityManager void detach (   Object entity ) Remove the given entity from the persistence context, causing a managed entity to become detached. Unflushed changes made to the entity if any (including removal of the entity), will not be synchronized

javax.persistence.Cache

whether the entity is in the cache Since: JPA 2.0 void evict (Class cls) Remove the data for entities ... void evict (Class cls, Object primaryKey) Remove the data for the given entity from

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

triggers creation of a project (all complex sub-elements and wiring removed here) via: project = request ... with extended persistence context Entity Manager calls a @ Remove method on the EJB (but not ... when a transaction is active */ @ Remove public void remove () {        

CriteriaQuery.groupBy(grouping) - JPA Method

are specified, any previously added grouping expressions are simply removed . This method only overrides

CriteriaQuery.groupBy(grouping) - JPA Method

previously added grouping expressions are simply removed . This method only overrides the return type

CriteriaQuery.where(restrictions) - JPA Method

. If no restrictions are specified, any previously added restrictions are simply removed . This method

javax.persistence.criteria.CriteriaDelete

removed . Parameters: restrictions - zero or more restriction predicates Return: the modified delete query Since: JPA 2.1

CriteriaDelete.where(restrictions) - JPA Method

(s), if any. If no restrictions are specified, any previously added restrictions are simply removed

Subquery.having(restrictions) - JPA Method

. If no restrictions are specified, any previously added restrictions are simply removed . This method

Subquery.groupBy(grouping) - JPA Method

previously added grouping expressions are simply removed . This method only overrides the return type

EntityManager.merge(entity) - JPA Method

- if instance is not an entity or is a removed entity TransactionRequiredException - if there is no transaction

javax.persistence.Persistence.PERSISTENCE_PROVIDER

JPA Static Field in javax.persistence.Persistence PERSISTENCE_PROVIDER This final String is deprecated and should be removed and is only here for TCK backward compatibility Since: JPA 1.0

AbstractQuery.having(restrictions) - JPA Method

), if any. If no restrictions are specified, any previously added restrictions are simply removed

AbstractQuery.groupBy(grouping) - JPA Method

are specified, any previously added grouping expressions are simply removed . Parameters: grouping - zero or

AbstractQuery.groupBy(grouping) - JPA Method

previously added grouping expressions are simply removed . Parameters: grouping - list of zero or

AbstractQuery.where(restrictions) - JPA Method

. If no restrictions are specified, any previously added restrictions are simply removed . Parameters

CriteriaUpdate.where(restrictions) - JPA Method

), if any. If no restrictions are specified, any previously added restrictions are simply removed

javax.jdo.PersistenceManager

transaction. The data store object will be removed at commit. Unlike makePersistent , which makes ... makeTransient (Object pc) Make an instance transient, removing it from management by ... transient, removing it from management by this PersistenceManager . If the useFetchPlan parameter is false

javax.jdo.PersistenceManagerFactory

() Since: JDO 2.0 void removeAllFetchGroups () Remove all FetchGroup s from the set of active FetchGroup s. All removed FetchGroup s become unscoped. The methods addFetchGroups , removeFetchGroups ... removeFetchGroups (FetchGroup... groups) Remove the FetchGroup s from the set of active FetchGroup s

javax.jdo.FetchGroup

is removed from the set of active FetchGroups via PersistenceManagerFactory.removeFetchGroups ... Since: JDO 2.2 FetchGroup removeCategory (String categoryName) Remove the members (fields or ... the category name to a set of members and then removes the members as if removeMembers was called

javax.jdo.spi.JDOImplHelper

removeRegisterClassListener ( RegisterClassListener  crl) Remove the specified RegisterClassListener from the listener list. Parameters: crl - the listener to be removed Since: JDO 1.0 void removeStateInterrogation ( StateInterrogation  si) Remove a StateInterrogation from the list. Create a new list in case

PersistenceManagerFactory.removeFetchGroups(groups) - JDO Method

... groups ) Remove the FetchGroup s from the set of active FetchGroup s. Existing FetchGroup s that match parameter FetchGroup s are removed . Parameter FetchGroup s that do not match any existing FetchGroup are ignored. Removed FetchGroup s become unscoped. Match is based on identical class

PersistenceManagerFactory.removeInstanceLifecycleListener(listener) - JDO Method

JDO Method in javax.jdo.PersistenceManagerFactory void removeInstanceLifecycleListener (    InstanceLifecycleListener  listener ) Remove the parameter listener instance from the list ... : listener - the listener instance to be removed Since: JDO 2.0

JDOImplHelper.removeRegisterClassListener(crl) - JDO Method

JDO Method in javax.jdo.spi.JDOImplHelper void removeRegisterClassListener (    RegisterClassListener  crl ) Remove the specified RegisterClassListener from the listener list. Parameters: crl - the listener to be removed Since: JDO 1.0

PersistenceManager.removeInstanceLifecycleListener(listener) - JDO Method

JDO Method in javax.jdo.PersistenceManager void removeInstanceLifecycleListener (    InstanceLifecycleListener  listener ) Removes the listener instance from the list of lifecycle event listeners. Parameters: listener - the listener instance to be removed Since: JDO 2.0

PersistenceManager.removeUserObject(key) - JDO Method

JDO Method in javax.jdo.PersistenceManager Object removeUserObject (   Object key ) Remove the specified key and its value from the map of user objects. Parameters: key - the key of the object to be removed Since: JDO 2.0

FetchGroup.removeCategory(categoryName) - JDO Method

JDO Method in javax.jdo.FetchGroup FetchGroup removeCategory (   String categoryName ) Remove the members (fields or properties) of the named category from the set of members in this FetchGroup. This method first resolves the category name to a set of members and then removes

FetchGroup.removeMembers(memberNames) - JDO Method

JDO Method in javax.jdo.FetchGroup FetchGroup removeMembers (   String... memberNames ) Remove the member (field or property) from the set of members in this FetchGroup. Duplicates in the parameter list are eliminated before removing them from the membership. Return: the FetchGroup

PersistenceManagerFactory.removeAllFetchGroups() - JDO Method

JDO Method in javax.jdo.PersistenceManagerFactory void removeAllFetchGroups () Remove all FetchGroup s from the set of active FetchGroup s. All removed FetchGroup s become unscoped. The methods addFetchGroups , removeFetchGroups , getFetchGroups , and removeAllFetchGroups are internally serialized

javax.jdo.InstanceCallbacks

, and the persistent instance should be removed from the list of managed instances. To implement this, the application ... , and implement jdoPreClear to remove itself from the list. With JDO 1.0, the domain class would be declared

javax.jdo.FetchPlan

fetch groups. Return: the FetchPlan Since: JDO 2.0 FetchPlan clearGroups () Remove all active groups ... removeGroup (String fetchGroupName) Remove the fetch group from the set active fetch groups. Return

JDOImplHelper.removeStateInterrogation(si) - JDO Method

JDO Method in javax.jdo.spi.JDOImplHelper void removeStateInterrogation (    StateInterrogation  si ) Remove a StateInterrogation from the list. Create a new list in case there is an iterator open on the original list. Parameters: si - the StateInterrogation to remove Since: JDO 1.0

FetchPlan.removeGroup(fetchGroupName) - JDO Method

JDO Method in javax.jdo.FetchPlan FetchPlan removeGroup (   String fetchGroupName ) Remove the fetch group from the set active fetch groups. Return: the FetchPlan Since: JDO 2.0

FetchPlan.clearGroups() - JDO Method

JDO Method in javax.jdo.FetchPlan FetchPlan clearGroups () Remove all active groups leaving no active fetch group. Return: the FetchPlan Since: JDO 2.0

FetchGroup.removeMember(memberName) - JDO Method

JDO Method in javax.jdo.FetchGroup FetchGroup removeMember (   String memberName ) Remove the member (field or property) from the set of members in this FetchGroup. Return: the FetchGroup Throws: JDOUserException - if the parameter is not a member of the persistent type