org.hibernate.annotations.Loader or <loader/>).
| Modifier and Type | Field and Description |
|---|---|
| private static final CoreMessageLogger | |
| private final EntityPersister | |
| private final int | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | NamedQueryLoader(String
The name of the named query to use queryName, EntityPersister The corresponding persister for the entity we are loading persister)Constructs the NamedQueryLoader |
| Modifier and Type | Method and Description |
|---|---|
| public Object | load(Serializable
The id to be loaded id, Object The (optional) entity instance in to which to load the state optionalObject, SharedSessionContractImplementor The session from which the request originated session, LockOptions The lock options. lockOptions)Implements org. |
| public Object | load(Serializable id, Object optionalObject, SharedSessionContractImplementor session, LockOptions lockOptions, Boolean readOnly)
Overrides default org. |
| public Object | load(Serializable id, Object optionalObject, SharedSessionContractImplementor session)
Implements org. |
| public Object | load(Serializable id, Object optionalObject, SharedSessionContractImplementor session, Boolean readOnly)
Overrides default org. |
| LOG | back to summary |
|---|---|
| private static final CoreMessageLogger LOG | |
| persister | back to summary |
|---|---|
| private final EntityPersister persister | |
| position | back to summary |
|---|---|
| private final int position | |
| queryName | back to summary |
|---|---|
| private final String queryName | |
| NamedQueryLoader | back to summary |
|---|---|
| public NamedQueryLoader(String queryName, EntityPersister persister) Constructs the NamedQueryLoader
| |
| load | back to summary |
|---|---|
| public Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session, LockOptions lockOptions) Implements org. Doc from org. Load an entity instance by id. If optionalObject is supplied (non-null, the entity state is loaded into that object instance instead of instantiating a new one.
| |
| load | back to summary |
|---|---|
| public Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session, LockOptions lockOptions, Boolean readOnly) Overrides default org.
| |
| load | back to summary |
|---|---|
| public Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session) Implements org. Doc from org. Load an entity instance. If optionalObject is supplied, load the entity state into the given (uninitialized) object.
| |
| load | back to summary |
|---|---|
| public Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session, Boolean readOnly) Overrides default org.
| |