net.java.ao.schema.info
Class CachingEntityInfoResolver

java.lang.Object
  extended by net.java.ao.schema.info.EntityInfoResolverWrapper
      extended by net.java.ao.schema.info.CachingEntityInfoResolver
All Implemented Interfaces:
EntityInfoResolver

public class CachingEntityInfoResolver
extends EntityInfoResolverWrapper
implements EntityInfoResolver

A EntityInfoResolver which caches the computed EntityInfo for any type it is given


Constructor Summary
CachingEntityInfoResolver(EntityInfoResolver delegate)
           
 
Method Summary
<T extends RawEntity<K>,K>
EntityInfo<T,K>
resolve(Class<T> type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachingEntityInfoResolver

public CachingEntityInfoResolver(EntityInfoResolver delegate)
Method Detail

resolve

public <T extends RawEntity<K>,K> EntityInfo<T,K> resolve(Class<T> type)
Specified by:
resolve in interface EntityInfoResolver
Overrides:
resolve in class EntityInfoResolverWrapper
Type Parameters:
T - the entity type
K - the type of the primary key for the entity
Parameters:
type - the entity interface
Returns:
the table information for the entity


Copyright © 2007-2013. All Rights Reserved.