Search in sources :

Example 1 with ExtraMessageMapper

use of com.itrus.portal.db.ExtraMessageMapper in project portal by ixinportal.

the class ExtraMessageServiceImpl method updateByPrimaryKey.

public void updateByPrimaryKey(ExtraMessage extraMessage) throws Exception {
    ExtraMessageMapper mapper = sqlSession.getMapper(ExtraMessageMapper.class);
    mapper.updateByPrimaryKey(extraMessage);
    sqlSession.flushStatements();
}
Also used : ExtraMessageMapper(com.itrus.portal.db.ExtraMessageMapper)

Example 2 with ExtraMessageMapper

use of com.itrus.portal.db.ExtraMessageMapper in project portal by ixinportal.

the class ExtraMessageServiceImpl method insert.

public ExtraMessage insert(ExtraMessage extraMessage) throws Exception {
    ExtraMessageMapper mapper = sqlSession.getMapper(ExtraMessageMapper.class);
    mapper.insert(extraMessage);
    sqlSession.flushStatements();
    return extraMessage;
}
Also used : ExtraMessageMapper(com.itrus.portal.db.ExtraMessageMapper)

Example 3 with ExtraMessageMapper

use of com.itrus.portal.db.ExtraMessageMapper in project portal by ixinportal.

the class ExtraMessageServiceImpl method countByExample.

public Integer countByExample(ExtraMessageExample example) {
    ExtraMessageMapper mapper = sqlSession.getMapper(ExtraMessageMapper.class);
    Integer count = mapper.countByExample(example);
    return count;
}
Also used : ExtraMessageMapper(com.itrus.portal.db.ExtraMessageMapper)

Example 4 with ExtraMessageMapper

use of com.itrus.portal.db.ExtraMessageMapper in project portal by ixinportal.

the class ExtraMessageServiceImpl method updateByPrimaryKeySelective.

public void updateByPrimaryKeySelective(ExtraMessage extraMessage) throws Exception {
    ExtraMessageMapper mapper = sqlSession.getMapper(ExtraMessageMapper.class);
    mapper.updateByPrimaryKeySelective(extraMessage);
    sqlSession.flushStatements();
}
Also used : ExtraMessageMapper(com.itrus.portal.db.ExtraMessageMapper)

Example 5 with ExtraMessageMapper

use of com.itrus.portal.db.ExtraMessageMapper in project portal by ixinportal.

the class ExtraMessageServiceImpl method deleteByPrimaryKey.

public void deleteByPrimaryKey(Long id) {
    ExtraMessageMapper mapper = sqlSession.getMapper(ExtraMessageMapper.class);
    mapper.deleteByPrimaryKey(id);
}
Also used : ExtraMessageMapper(com.itrus.portal.db.ExtraMessageMapper)

Aggregations

ExtraMessageMapper (com.itrus.portal.db.ExtraMessageMapper)7 ExtraMessage (com.itrus.portal.db.ExtraMessage)2