ObjectDB Database Search
1-12 of 12 resultsRetrieving JPA Entity Objects or a specified persistent field is loaded. For example: PersistenceUtil util = Persistence ... . isLoaded (employee, "address"); As shown above, a PersistenceUtil instance is obtained from the static | |
InterfaceRef jakarta.persistence.PersistenceUtil JPA Interface PersistenceUtil Utility interface between the application and the persistence provider(s). The PersistenceUtil interface instance obtained from the Persistence class is used to determine the load state of an entity or entity attribute regardless of which persistence provider in | |
PersistenceUtil.isLoaded(entity) - JPA Method JPA Method in jakarta.persistence. PersistenceUtil boolean isLoaded ( Object entity ) Determine the load state of an entity. This method can be used to determine the load state of an entity passed as a reference. An entity is considered loaded if all attributes for which FetchType | |
PersistenceUtil.isLoaded(entity,attributeName) - JPA Method JPA Method in jakarta.persistence. PersistenceUtil boolean isLoaded ( Object entity, String attributeName ) Determine the load state of a given persistent attribute. Parameters: entity - entity containing the attribute attributeName - name of attribute | |
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: | |
ClassRef jakarta.persistence.Persistence. The Persistence class is used to obtain a PersistenceUtil instance in both Jakarta EE and Java SE ... PersistenceUtil getPersistenceUtil () Return the PersistenceUtil instance Return: {@link PersistenceUtil | |
Persistence.getPersistenceUtil() - JPA Static Method JPA Static Method in jakarta.persistence.Persistence PersistenceUtil getPersistenceUtil () Return the PersistenceUtil instance Return: {@link PersistenceUtil } instance Since: JPA 2.0 | |
Pre-detach loading: retrieval by navigation not working in if statement Persistence. persistenceUtil () before and after that problematic if statement, and it is consistent ... PersistenceUtil claims neither ib.present.value nor ib.present.id are loaded. if (ib.getPresent().getValue() != null && ib.getPresent().getValue()) { //ObjectDB PersistenceUtil claims present.value now loaded | |
InterfaceRef jakarta.persistence.PersistenceUnitUtil JPA Interface 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 or managed by entity managers | |
InterfaceRef jakarta.persistence.spi.ProviderUtil JPA Interface ProviderUtil Utility interface implemented by the persistence provider. This interface is invoked by the jakarta.persistence. PersistenceUtil implementation to determine the load status of an entity or entity attribute. Since: JPA 2.0 Public Methods LoadState isLoaded (Object  | |
spuriously objectdb objects have null references fields when this happens using isLoaded method in PersistenceUtil ? support Support we checked | |
Once served to JSF page via @EJB query bean, many list fields are null (but same query ok after fresh persist in @PostConstruct). http://www.objectdb.com/api/java/jpa/ PersistenceUtil Does not seem to provide a method for testing |