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 identifiernullCopyright © 2001-2015 Red Hat, Inc. All Rights Reserved.