public interface IdentifierLoadAccess
Modifier and Type | Method and Description |
---|---|
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. |
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 referenceObject load(Serializable id)
id
- The identifiernull
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.