| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static <X> X[] | createTypedArray(Class<X>
The type of the array elements. See elementClass, int Class#getComponentType()The length to which the array should be created. This is usually zero for Hibernate uses length)Creates a typed array, as opposed to a generic |
| public static Boolean | getReadOnlyFromLoadQueryInfluencers(SharedSessionContractImplementor session)
Determine if the influencers associated with the given Session indicate read-only |
| public static Boolean | getReadOnlyFromLoadQueryInfluencers(LoadQueryInfluencers loadQueryInfluencers)
Determine if given influencers indicate read-only |
| public static < The type of the model part to load R, The type of the keys K> List | loadByArrayParameter(K[] idsToInitialize, SelectStatement sqlAst, JdbcOperationQuerySelect jdbcOperation, JdbcParameter jdbcParameter, JdbcMapping arrayJdbcMapping, Object entityId, Object entityInstance, EntityMappingType rootEntityDescriptor, LockOptions lockOptions, Boolean readOnly, SharedSessionContractImplementor session)
Load one or more instances of a model part (an entity or collection) based on a SQL ARRAY parameter to specify the keys (as opposed to the more traditional SQL IN predicate approach). |
| public static < The key type K> K[] | normalizeKeys(K[]
The keys to normalize keys, BasicValuedModelPart The ModelPart describing the key keyPart, SharedSessionContractImplementor session, SessionFactoryImplementor sessionFactory)
Deprecated
as a consequence of
Normalize an array of keys (primary, foreign or natural).
SessionFactoryImplementor being deprecated.
|
| public static void | upgradeLock(Object object, EntityEntry entry, LockOptions lockOptions, EventSource session)
Ensure the LockMode associated with the entity in relation to a persistence context is great or equal to the requested mode. |
| LoaderHelper | back to summary |
|---|---|
| public LoaderHelper() | |
| createTypedArray | back to summary |
|---|---|
| public static <X> X[] createTypedArray(Class<X> elementClass, int length) Creates a typed array, as opposed to a generic
| |
| getReadOnlyFromLoadQueryInfluencers | back to summary |
|---|---|
| public static Boolean getReadOnlyFromLoadQueryInfluencers(SharedSessionContractImplementor session) Determine if the influencers associated with the given Session indicate read-only | |
| getReadOnlyFromLoadQueryInfluencers | back to summary |
|---|---|
| public static Boolean getReadOnlyFromLoadQueryInfluencers(LoadQueryInfluencers loadQueryInfluencers) Determine if given influencers indicate read-only | |
| loadByArrayParameter | back to summary |
|---|---|
| public static <R, K> List Load one or more instances of a model part (an entity or collection) based on a SQL ARRAY parameter to specify the keys (as opposed to the more traditional SQL IN predicate approach).
| |
| normalizeKeys | back to summary |
|---|---|
| public static <K> K[] normalizeKeys(K[] keys, BasicValuedModelPart keyPart, SharedSessionContractImplementor session, SessionFactoryImplementor sessionFactory)
Deprecated as a consequence of Normalize an array of keys (primary, foreign or natural).
If the array is already typed as the key type,
Otherwise, a new typed array is created and the contents copied from
| |
| upgradeLock | back to summary |
|---|---|
| public static void upgradeLock(Object object, EntityEntry entry, LockOptions lockOptions, EventSource session) Ensure the LockMode associated with the entity in relation to a persistence context is great or equal to the requested mode. | |