@Component(value="blPostLoaderDao") public class DefaultPostLoaderDao extends Object implements PostLoaderDao, org.springframework.context.ApplicationContextAware
| Modifier and Type | Field and Description |
|---|---|
protected javax.persistence.EntityManager |
em |
| 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.
|
static PostLoaderDao |
getPostLoaderDao() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
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 keyCopyright © 2017. All rights reserved.