@Component(value="blPostLoaderDao") public class DefaultPostLoaderDao extends Object implements PostLoaderDao, org.springframework.context.ApplicationContextAware
| Modifier and Type | Field and Description | 
|---|---|
| protected static org.apache.commons.logging.Log | LOG | 
| protected PersistenceService | persistenceService | 
| Constructor and Description | 
|---|
| DefaultPostLoaderDao() | 
| Modifier and Type | Method and Description | 
|---|---|
| <T> T | find(Class<T> clazz,
    Object id)Find and return the entity by primary key and class. | 
| <T> T | findSandboxEntity(Class<T> clazz,
                 Object id)If within the context of a sandbox, return the sandbox entity by primary key and class. | 
| protected javax.persistence.EntityManager | getEntityManager(Class clazz) | 
| static PostLoaderDao | getPostLoaderDao() | 
| void | setApplicationContext(org.springframework.context.ApplicationContext applicationContext) | 
protected static final org.apache.commons.logging.Log LOG
protected PersistenceService persistenceService
public static PostLoaderDao getPostLoaderDao()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
                           throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic <T> T find(Class<T> clazz, Object id)
EntityManager.find(Class, Object).find in interface PostLoaderDaoclazz - entity classid - primary keypublic <T> T findSandboxEntity(Class<T> clazz, Object id)
PostLoaderDaofindSandboxEntity in interface PostLoaderDaoprotected javax.persistence.EntityManager getEntityManager(Class clazz)
Copyright © 2020. All rights reserved.