ObjectDB Database Search

1-18 of 18 results

jakarta.persistence.PersistenceUnitUtil

Jakarta Persistence (JPA) Interface jakarta.persistence. PersistenceUnitUtil Super Interfaces: PersistenceUtil Utility interface between the application and the persistence provider managing the persistence unit. The methods of this interface should only be invoked on entity instances obtained from

jakarta.persistence.PersistenceUnitUtil.isLoaded(Object)

Jakarta Persistence (JPA) Method in jakarta.persistence. PersistenceUnitUtil boolean isLoaded (    Object entity ) Determine the load state of an entity belonging to the persistence unit ... . The PersistenceUnitUtil .isLoaded method should be used to determine the load state of an attribute

jakarta.persistence.PersistenceUnitUtil.load(Object,String)

Jakarta Persistence (JPA) Method in jakarta.persistence. PersistenceUnitUtil void load (    Object entity ,    String attributeName ) Load the persistent value of a given ... . After this method returns, PersistenceUnitUtil .isLoaded must return true with the given entity instance

jakarta.persistence.PersistenceUnitUtil.load(E,Attribute)

Jakarta Persistence (JPA) Method in jakarta.persistence. PersistenceUnitUtil void load (    E entity ,    Attribute attribute ) Load the persistent value of a given persistent ... . After this method returns, PersistenceUnitUtil .isLoaded must return true with the given entity instance

jakarta.persistence.PersistenceUnitUtil.load(Object)

Jakarta Persistence (JPA) Method in jakarta.persistence. PersistenceUnitUtil void load (    Object entity ) Load the persistent state of an entity belonging to the persistence unit and to an open persistence context. After this method returns, PersistenceUnitUtil .isLoaded must return true

jakarta.persistence.PersistenceUnitUtil.isLoaded(Object,String)

Jakarta Persistence (JPA) Method in jakarta.persistence. PersistenceUnitUtil boolean isLoaded (    Object entity ,    String attributeName ) Determine the load state of a given persistent attribute of an entity belonging to the persistence unit. Parameters: attributeName - name

jakarta.persistence.PersistenceUnitUtil.isLoaded(E,Attribute)

Jakarta Persistence (JPA) Method in jakarta.persistence. PersistenceUnitUtil boolean isLoaded (    E entity ,    Attribute attribute ) Determine the load state of a given persistent attribute of an entity belonging to the persistence unit. Parameters: attribute - attribute

jakarta.persistence.PersistenceUnitUtil.isInstance(Object,Class)

Jakarta Persistence (JPA) Method in jakarta.persistence. PersistenceUnitUtil boolean isInstance (    Object entity ,    Class entityClass ) Return true if the given entity belonging to the persistence unit and to an open persistence context is an instance of the given entity

jakarta.persistence.PersistenceUnitUtil.getClass(T)

Jakarta Persistence (JPA) Method in jakarta.persistence. PersistenceUnitUtil Class getClass (    T entity ) Return the concrete entity class if the given entity belonging to the persistence unit and to an open persistence context. This method may, but is not required to, load the given

jakarta.persistence.PersistenceUnitUtil.getIdentifier(Object)

Jakarta Persistence (JPA) Method in jakarta.persistence. PersistenceUnitUtil Object getIdentifier (    Object entity ) Return the id of the entity. A generated id is not guaranteed to be available until after the database insert has occurred. Returns null if the entity does not

jakarta.persistence.PersistenceUnitUtil.getVersion(Object)

Jakarta Persistence (JPA) Method in jakarta.persistence. PersistenceUnitUtil Object getVersion (    Object entity ) Return the version of the entity. A generated version is not guaranteed to be available until after the database insert has occurred. Returns null if the entity does not

JPA Primary Key

: PersistenceUnitUtil util = emf. getPersistenceUnitUtil (); Object projectId = util. getIdentifier (project); A PersistenceUnitUtil instance is obtained from the EntityManagerFactory . The 

Control and Setting

This section contains miscellaneous JPA types. The PersistenceUtil and PersistenceUnitUtil interfaces provide general utility methods: The Cache interface and the CacheRetrieveMode and CacheStoreMode enum types serve in managing the EntityManagerFactory's shared (level 2) cache: Other enum types are provided for setting of various JPA operations:

jakarta.persistence.EntityManagerFactory

calling getCriteriaBuilder , and the PersistenceUnitUtil may be obtained by calling ... PersistenceUnitUtil getPersistenceUnitUtil () Return interface providing access to utility methods for the persistence unit. Returns: an instance of PersistenceUnitUtil . Throws: IllegalStateException

jakarta.persistence.EntityManagerFactory.getPersistenceUnitUtil()

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManagerFactory PersistenceUnitUtil getPersistenceUnitUtil() Return interface providing access to utility methods for the persistence unit. Returns: an instance of PersistenceUnitUtil . Throws: IllegalStateException - if the entity

jakarta.persistence.Id

EmbeddedId PersistenceUnitUtil ::getIdentifier(Object) Since: Jakarta Persistence (JPA) 1.0 The JPA Primary

jakarta.persistence.Version

. See Also: LockModeType PersistenceUnitUtil ::getVersion(Object) Since: Jakarta Persistence (JPA) 1.0

EntityManager refresh problem

.persistence. PersistenceUnitUtil ; import org.junit.Assert; import org.junit.Test; import entities