@Transactional public class LogDAO extends Object
Log| 限定符和类型 | 字段和说明 |
|---|---|
static String |
DELETE |
static String |
GOALID |
static String |
ID |
static String |
TYPE |
static String |
USERID |
static String |
VALUE |
| 构造器和说明 |
|---|
LogDAO() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
attachClean(Log instance) |
void |
attachDirty(Log instance) |
void |
delete(Log persistentInstance) |
List |
findAll() |
List<Log> |
findByDelete(Object delete) |
List<Log> |
findByExample(Log instance) |
List<Log> |
findByGoalid(Object goalid) |
Log |
findById(Integer id) |
List |
findByProperty(String propertyName,
Object value) |
List<Log> |
findByType(Object type) |
List<Log> |
findByUserid(Object userid) |
static LogDAO |
getFromApplicationContext(org.springframework.context.ApplicationContext ctx) |
void |
insert(int userid,
int goalid,
String type,
String value)
写日志
|
void |
insert(int goalid,
String type)
写日志
|
void |
insert(int goalid,
String type,
String value)
写日志
|
void |
insert(String type)
写日志
|
void |
insert(String type,
String value)
写日志
|
Log |
merge(Log detachedInstance) |
void |
save(Log transientInstance) |
void |
setSessionFactory(org.hibernate.SessionFactory sessionFactory) |
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
public void save(Log transientInstance)
public void delete(Log persistentInstance)
public List findAll()
public void attachDirty(Log instance)
public void attachClean(Log instance)
public void insert(int goalid,
String type,
String value)
goalid - 操作的目标idtype - 日志分类,传入 SystemConfig.xml中logTypeList节点配置的type-程序内调用的名字value - 描述的内容,自动截取前20个字符public void insert(int userid,
int goalid,
String type,
String value)
userid - 此日志所属的用户idgoalid - 操作的目标idtype - 日志分类,传入 SystemConfig.xml中logTypeList节点配置的type-程序内调用的名字value - 描述的内容,自动截取前20个字符public void insert(String type, String value)
type - 日志分类,传入 SystemConfig.xml中logTypeList节点配置的type-程序内调用的名字value - 描述的内容,自动截取前20个字符public void insert(int goalid,
String type)
goalid - 操作的目标idtype - 日志分类,传入 SystemConfig.xml中logTypeList节点配置的type-程序内调用的名字public void insert(String type)
type - 日志分类,传入 SystemConfig.xml中logTypeList节点配置的type-程序内调用的名字public static LogDAO getFromApplicationContext(org.springframework.context.ApplicationContext ctx)