|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IdentifierLoadAccess
Loads an entity by its primary identifier
| Method Summary | |
|---|---|
Object |
getReference(Serializable id)
Return the persistent instance with the given identifier, assuming that the instance exists. |
Object |
load(Serializable id)
Return the persistent instance with the given identifier, or null if there is no such persistent instance. |
IdentifierLoadAccess |
with(LockOptions lockOptions)
Specify the LockOptions to use when retrieving the entity. |
| Method Detail |
|---|
IdentifierLoadAccess with(LockOptions lockOptions)
LockOptions to use when retrieving the entity.
lockOptions - The lock options to use.
this, for method chainingObject getReference(Serializable id)
load(java.io.Serializable)
instead. Use this only to retrieve an instance that you assume exists, where non-existence would be an
actual error.
id - The identifier for which to obtain a reference
Object load(Serializable id)
id - The identifier
null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||