Package org.crank.crud.cache

Examples of org.crank.crud.cache.PreloadableCacheableGenericDaoJpa


    @SuppressWarnings("unchecked")
  private GenericDaoJpa loadCachingDao() {
        if (preloadConfiguration == null) {
            throw new RuntimeException( "The Caching Configuration property must be set to use a caching dao." );
        }
        PreloadableCacheableGenericDaoJpa dao = new PreloadableCacheableGenericDaoJpa( bo );
        dao.setPreloadConfiguration( preloadConfiguration );
        dao.setEntityManagerFactory( entityManagerFactory );
        dao.setNewSelectStatement(newSelect);
        dao.setQueryHints(queryHints);       
        dao.preload();
        this.addAdvisor( new CachingAdvisor() );
        return dao;
    }
View Full Code Here

TOP

Related Classes of org.crank.crud.cache.PreloadableCacheableGenericDaoJpa

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.