T
- Entity type.public class JpaDetachable<T> extends AbstractDetachable<T,Serializable>
Constructor and Description |
---|
JpaDetachable(javax.persistence.EntityManager aEntityManager,
T aEntity)
Constructs the detachable.
|
Modifier and Type | Method and Description |
---|---|
protected Serializable |
getReference(T aObject)
Obtains the reference for a given object.
|
protected T |
load(Serializable aReference)
Loads the object based on a reference.
|
detach, get
public JpaDetachable(javax.persistence.EntityManager aEntityManager, T aEntity)
aEntity
- Entity.protected Serializable getReference(T aObject)
AbstractDetachable
getReference
in class AbstractDetachable<T,Serializable>
aObject
- Object.protected T load(Serializable aReference)
AbstractDetachable
load
in class AbstractDetachable<T,Serializable>
aReference
- Reference.Copyright © 2024. All rights reserved.