public abstract class EntryDAO<T extends Entry> extends PlatformDataAccessObject
构造器和说明 |
---|
EntryDAO() |
限定符和类型 | 方法和说明 |
---|---|
boolean |
dealSession(DataAccessObjectSession session,
long id)
删除id的entry并且删除相关的权限
|
boolean |
deleteByID(long id)
根据ID删除对象
|
java.util.List |
findAll()
查找所有对象
|
protected abstract java.lang.Class |
getEntryClass() |
protected abstract int |
getEntryType() |
long |
save(Entry entry)
保存
|
boolean |
saveOrUpdate(Entry entry)
保存或更新
|
closeSession, createSession, createSession, rollbackSession
protected abstract java.lang.Class getEntryClass()
protected abstract int getEntryType()
public boolean dealSession(DataAccessObjectSession session, long id)
session
- id
- public boolean deleteByID(long id) throws java.lang.Exception
id
- java.lang.Exception
public java.util.List findAll() throws java.lang.Exception
java.lang.Exception
public boolean saveOrUpdate(Entry entry) throws java.lang.Exception
entry
- T 要保存的类型java.lang.Exception
public long save(Entry entry) throws java.lang.Exception
entry
- T 要保存的类型java.lang.Exception