jakarta.persistence.PersistenceUtil#isLoaded(Object) jakarta.persistence.PersistenceUtil#isLoaded(Object, String) jakarta.persistence.spi.ProviderUtil#isLoaded(Object) jakarta.persistence.spi.ProviderUtil#isLoadedWithReference(Object, String) jakarta.persistence.spi.ProviderUtil#isLoadedWithoutReference(Object, String) li>
| Modifier and Type | Class and Description |
|---|---|
| public static interface | |
| public static class | |
| public static class | |
| public static class | |
| public static class | PersistenceUtilHelper.MetadataCache
Cache hierarchy and member resolution, taking care to not leak references to Class instances. |
| private static class | |
| public static class | |
| private static class |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static BytecodeLazyAttributeInterceptor | extractInterceptor(PersistentAttributeInterceptable interceptable)
Deprecated
as a consequence of
BytecodeLazyAttributeInterceptor being deprecated.
|
| private static Object | |
| public static LoadState | Returns: The appropriate LoadState (see above)The object reference to check. reference)Determine if the given object reference represents loaded state. |
| private static Method | |
| private static boolean | |
| public static LoadState | Returns: The LoadStateThe entity entity, String The name of the attribute to check attributeName, PersistenceUtilHelper.The cache we maintain of attribute resolutions cacheIs the given attribute (by name) loaded? |
| public static LoadState | Returns: The LoadStateThe entity entity, String The name of the attribute to check attributeName, PersistenceUtilHelper.The cache we maintain of attribute resolutions cacheIs the given attribute (by name) loaded? |
| PersistenceUtilHelper | back to summary |
|---|---|
| private PersistenceUtilHelper() | |
| extractInterceptor | back to summary |
|---|---|
| private static BytecodeLazyAttributeInterceptor extractInterceptor(PersistentAttributeInterceptable interceptable)
Deprecated as a consequence of | |
| getAttributeValue | back to summary |
|---|---|
| private static Object getAttributeValue(Object entity, String attributeName, PersistenceUtilHelper. | |
| getLoadState | back to summary |
|---|---|
| public static LoadState getLoadState(Object reference) Determine if the given object reference represents loaded state. The reference may be to an entity or a persistent collection. Return is defined as follows:
| |
| getMethod | back to summary |
|---|---|
| private static Method getMethod(Class<?> clazz, String attributeName) Returns the method with the specified name or | |
| isInitialized | back to summary |
|---|---|
| private static boolean isInitialized(PersistentAttributeInterceptable interceptable) | |
| isLoadedWithoutReference | back to summary |
|---|---|
| public static LoadState isLoadedWithoutReference(Object entity, String attributeName, PersistenceUtilHelper. Is the given attribute (by name) loaded? This form must take care to not access the attribute (trigger initialization).
| |
| isLoadedWithReference | back to summary |
|---|---|
| public static LoadState isLoadedWithReference(Object entity, String attributeName, PersistenceUtilHelper. Is the given attribute (by name) loaded? This form must take care to not access the attribute (trigger initialization).
| |
| Modifier and Type | Method and Description |
|---|---|
| public Object |
| extractValue | back to summary |
|---|---|
| public Object extractValue(Object owner) throws AttributeExtractionException | |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| AttributeExtractionException | back to summary |
|---|---|
| public AttributeExtractionException(String message) | |
| AttributeExtractionException | back to summary |
|---|---|
| public AttributeExtractionException(String message, Throwable cause) | |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final List | |
| private final Class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private PersistenceUtilHelper. | |
| private static List | |
| public PersistenceUtilHelper. |
| attributeAccessMap | back to summary |
|---|---|
| private final Map<String, PersistenceUtilHelper. | |
| classHierarchy | back to summary |
|---|---|
| private final List<Class<?>> classHierarchy | |
| specifiedClass | back to summary |
|---|---|
| private final Class<?> specifiedClass | |
| ClassMetadataCache | back to summary |
|---|---|
| public ClassMetadataCache(Class<?> clazz) | |
| buildAttributeAccess | back to summary |
|---|---|
| private PersistenceUtilHelper. | |
| findClassHierarchy | back to summary |
|---|---|
| private static List | |
| getAttributeAccess | back to summary |
|---|---|
| public PersistenceUtilHelper. | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object |
| field | back to summary |
|---|---|
| private final Field field | |
| name | back to summary |
|---|---|
| private final String name | |
| FieldAttributeAccess | back to summary |
|---|---|
| public FieldAttributeAccess(Field field) | |
| extractValue | back to summary |
|---|---|
| public Object extractValue(Object owner) Implements org.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final ClassValue |
| Access | Constructor and Description |
|---|---|
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv PersistenceUtilHelper. | |
| private Object | |
| pack-priv Object |
| metadataCacheClassValue | back to summary |
|---|---|
| private final ClassValue<PersistenceUtilHelper. | |
| MetadataCache | back to summary |
|---|---|
| public MetadataCache() | |
| MetadataCache | back to summary |
|---|---|
| private MetadataCache(ClassValue<PersistenceUtilHelper. | |
| getClassMetadata | back to summary |
|---|---|
| pack-priv PersistenceUtilHelper. | |
| readResolve | back to summary |
|---|---|
| private Object readResolve() throws ObjectStreamException | |
| writeReplace | back to summary |
|---|---|
| pack-priv Object writeReplace() throws ObjectStreamException | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected PersistenceUtilHelper. | computeValue(final Class<T>
the type whose class value must be computed type)Implements abstract java. ClassValue.
|
| MetadataClassValue | back to summary |
|---|---|
| private MetadataClassValue() | |
| computeValue | back to summary |
|---|---|
| protected PersistenceUtilHelper. Implements abstract java. Doc from java. Computes the given class's derived value for this
This method will be invoked within the first thread that accesses
the value with the
Normally, this method is invoked at most once per class,
but it may be invoked again if there has been a call to
If this method throws an exception, the corresponding call to
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object |
| method | back to summary |
|---|---|
| private final Method method | |
| name | back to summary |
|---|---|
| private final String name | |
| MethodAttributeAccess | back to summary |
|---|---|
| public MethodAttributeAccess(String attributeName, Method method) | |
| extractValue | back to summary |
|---|---|
| public Object extractValue(Object owner) Implements org.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object |
| attributeName | back to summary |
|---|---|
| private final String attributeName | |
| clazz | back to summary |
|---|---|
| private final Class<?> clazz | |
| NoSuchAttributeAccess | back to summary |
|---|---|
| public NoSuchAttributeAccess(Class<?> clazz, String attributeName) | |
| extractValue | back to summary |
|---|---|
| public Object extractValue(Object owner) throws AttributeExtractionException Implements org.
| |