Beispiel #1
0
 /** 復元(論理削除されていたものを有効化) */
 @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);
 }
Beispiel #2
0
 /**
  * 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);
 }
Beispiel #3
0
 /** 更新 */
 @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);
 }
Beispiel #4
0
 /**
  * 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);
 }