javax.persistence.PersistenceUtil#isLoaded(Object) javax.persistence.PersistenceUtil#isLoaded(Object, String) javax.persistence.spi.ProviderUtil#isLoaded(Object) javax.persistence.spi.ProviderUtil#isLoadedWithReference(Object, String) javax.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 in a weak hash map |
| 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 Method | |
| private static boolean | |
| public static LoadState | |
| 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 | |
| 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)
| |
| isLoaded | back to summary |
|---|---|
| public static LoadState isLoaded(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:
| |
| 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 Map | |
| private 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 Map<String, PersistenceUtilHelper. | |
| classHierarchy | back to summary |
|---|---|
| private List<Class<?>> classHierarchy | |
| specifiedClass | back to summary |
|---|---|
| private final Class<T> 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 transient Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv PersistenceUtilHelper. | |
| private void |
| classCache | back to summary |
|---|---|
| private transient Map<Class<?>, PersistenceUtilHelper. | |
| MetadataCache | back to summary |
|---|---|
| public MetadataCache() | |
| getClassMetadata | back to summary |
|---|---|
| pack-priv PersistenceUtilHelper. | |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream stream) | |
| 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<T> clazz | |
| NoSuchAttributeAccess | back to summary |
|---|---|
| public NoSuchAttributeAccess(Class<T> clazz, String attributeName) | |
| extractValue | back to summary |
|---|---|
| public Object extractValue(Object owner) throws AttributeExtractionException Implements org.
| |