/** 復元(論理削除されていたものを有効化) */ @Aspect(advice = org.support.project.ormapping.transaction.Transaction.class) public void activation(String functionKey, Integer roleId) { DBUserPool pool = Container.getComp(DBUserPool.class); Integer user = (Integer) pool.getUser(); activation(user, functionKey, roleId); }
/** * Ativation. if delete flag is exists and delete flag is true, delete flug is false to activate. * * @param commentNo commentNo */ @Aspect(advice = org.support.project.ormapping.transaction.Transaction.class) public void activation(Long commentNo) { DBUserPool pool = Container.getComp(DBUserPool.class); Integer user = (Integer) pool.getUser(); activation(user, commentNo); }
/** 更新 */ @Aspect(advice = org.support.project.ormapping.transaction.Transaction.class) public RoleFunctionsEntity update(RoleFunctionsEntity entity) { DBUserPool pool = Container.getComp(DBUserPool.class); Integer userId = (Integer) pool.getUser(); return update(userId, entity); }
/** * Insert. saved user id is auto set. * * @param entity entity * @return saved entity */ @Aspect(advice = org.support.project.ormapping.transaction.Transaction.class) public CommentsEntity insert(CommentsEntity entity) { DBUserPool pool = Container.getComp(DBUserPool.class); Integer userId = (Integer) pool.getUser(); return insert(userId, entity); }