Internal Website Search

21-30 of 200 resultsRefresh

EntityManager.contains(entity) - JPA Method

JPA Method in javax.persistence. EntityManager boolean contains (   Object entity ) Check if the instance is a managed entity instance belonging to the current persistence context. Parameters: entity - entity instance Return: boolean indicating if entity is in persistence context

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

EntityManager.clear() - JPA Method

JPA Method in javax.persistence. EntityManager void clear () Clear the persistence context, causing all managed entities to become detached. Changes made to entities that have not been flushed to the database will not be persisted. Since: JPA 1.0

EntityManager.refresh(entity,lockMode,properties) - JPA Method

JPA Method in javax.persistence. EntityManager void refresh (   Object entity,     LockModeType  lockMode,    Map  properties ) Refresh the state of the instance from the database, overwriting changes made to the entity, if any, and lock

EntityManager.getProperties() - JPA Method

JPA Method in javax.persistence. EntityManager Map getProperties () Get the properties and hints and associated values that are in effect for the entity manager. Changing the contents of the map does not change the configuration in effect. Return: map of properties and hints in effect for entity manager Since: JPA 2.0

EntityManager.setProperty(propertyName,value) - JPA Method

JPA Method in javax.persistence. EntityManager void setProperty (   String propertyName,    Object value ) Set an entity manager property or hint. If a vendor-specific property or hint is not recognized, it is silently ignored. Parameters: propertyName - name

EntityManager.getLockMode(entity) - JPA Method

JPA Method in javax.persistence. EntityManager LockModeType getLockMode (   Object entity ) Get the current lock mode for the entity instance. Parameters: entity - entity instance Return: lock mode Throws: TransactionRequiredException - if there is no transaction or if the entity

EntityManager.lock(entity,lockMode,properties) - JPA Method

JPA Method in javax.persistence. EntityManager void lock (   Object entity,     LockModeType  lockMode,    Map  properties ) Lock an entity instance that is contained in the persistence context with the specified lock mode type

EntityManager.lock(entity,lockMode) - JPA Method

JPA Method in javax.persistence. EntityManager void lock (   Object entity,     LockModeType  lockMode ) Lock an entity instance that is contained in the persistence context with the specified lock mode type. If a pessimistic lock mode type is specified

EntityManager.getFlushMode() - JPA Method

JPA Method in javax.persistence. EntityManager FlushModeType getFlushMode () Get the flush mode that applies to all objects contained in the persistence context. Return: flushMode Since: JPA 1.0