@Transactional public class PostDAO extends Object
Post| 限定符和类型 | 字段和说明 |
|---|---|
static String |
ADDTIME |
static String |
CLASSID |
static String |
INFO |
static String |
STATE |
static String |
TITLE |
static String |
USERID |
static String |
VIEW |
| 构造器和说明 |
|---|
PostDAO() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
attachClean(Post instance) |
void |
attachDirty(Post instance) |
void |
delete(Post persistentInstance) |
List |
findAll() |
List<Post> |
findByAddtime(Object addtime) |
List<Post> |
findByClassid(Object classid) |
List<Post> |
findByExample(Post instance) |
Post |
findById(Integer id) |
List<Post> |
findByInfo(Object info) |
List |
findByProperty(String propertyName,
Object value) |
List<Post> |
findByState(Object state) |
List<Post> |
findByTitle(Object title) |
List<Post> |
findByUserid(Object userid) |
List<Post> |
findByView(Object view) |
static PostDAO |
getFromApplicationContext(org.springframework.context.ApplicationContext ctx) |
Post |
merge(Post detachedInstance) |
void |
save(Post transientInstance) |
void |
setSessionFactory(org.hibernate.SessionFactory sessionFactory) |
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
public void save(Post transientInstance)
public void delete(Post persistentInstance)
public List findAll()
public void attachDirty(Post instance)
public void attachClean(Post instance)
public static PostDAO getFromApplicationContext(org.springframework.context.ApplicationContext ctx)