| Modifier and Type | Method and Description |
|---|---|
| public T | Returns: the persistent instance or proxyThe identifier for which to obtain a reference id)Return the persistent instance with the given identifier, assuming that the instance exists. |
| public T | Returns: The persistent instance ornullThe identifier id)Return the persistent instance with the given identifier, or null if there is no such persistent instance. |
| public Optional | Returns: The persistent instance, if one, wrapped in OptionalThe identifier id)Same semantic as |
| public IdentifierLoadAccess | Returns: this, for method chainingThe lock options to use. lockOptions)Specify the |
| public IdentifierLoadAccess | |
| public default IdentifierLoadAccess | |
| public IdentifierLoadAccess |
| getReference | back to summary |
|---|---|
| public T getReference(Serializable id) Return the persistent instance with the given identifier, assuming that the instance exists. This method
might return a proxied instance that is initialized on-demand, when a non-identifier method is accessed.
You should not use this method to determine if an instance exists; to check for existence, use
| |
| load | back to summary |
|---|---|
| public T load(Serializable id) Return the persistent instance with the given identifier, or null if there is no such persistent instance. If the instance is already associated with the session, return that instance, initializing it if needed. This method never returns an uninitialized instance.
| |
| loadOptional | back to summary |
|---|---|
| public Optional Same semantic as
| |
| with | back to summary |
|---|---|
| public IdentifierLoadAccess Specify the
| |
| with | back to summary |
|---|---|
| public IdentifierLoadAccess Specify the
| |
| with | back to summary |
|---|---|
| public default IdentifierLoadAccess | |
| with | back to summary |
|---|---|
| public IdentifierLoadAccess | |