T
- the entity typeK
- the primary key typepublic class ReadOnlyEntityProxyFactory<T extends RawEntity<K>,K> extends Object
Factory for building large number of ReadOnlyEntityProxy
instances. Reflectively fetching information
about the implemented type is expensive and unnecessary to be done more than once.
Constructor and Description |
---|
ReadOnlyEntityProxyFactory(EntityManager entityManager,
Class<T> type)
Cache information about the accessors (can be getters or annotated) and field names.
|
public ReadOnlyEntityProxyFactory(EntityManager entityManager, Class<T> type)
public ReadOnlyEntityProxy<T,K> build(K primaryKey)
primaryKey
- the primary key objectCopyright © 2007-2012. All Rights Reserved.