Exemplo n.º 1
0
 /** 復元(論理削除されていたものを有効化) */
 @Aspect(advice = org.support.project.ormapping.transaction.Transaction.class)
 public void activation(Integer user, String functionKey, Integer roleId) {
   RoleFunctionsEntity db = physicalSelectOnKey(functionKey, roleId);
   db.setDeleteFlag(0);
   db.setUpdateUser(user);
   db.setUpdateDatetime(new Timestamp(new java.util.Date().getTime()));
   physicalUpdate(db);
 }
Exemplo n.º 2
0
 /** 更新(更新ユーザを指定) */
 @Aspect(advice = org.support.project.ormapping.transaction.Transaction.class)
 public RoleFunctionsEntity update(Integer user, RoleFunctionsEntity entity) {
   RoleFunctionsEntity db = selectOnKey(entity.getFunctionKey(), entity.getRoleId());
   entity.setInsertUser(db.getInsertUser());
   entity.setInsertDatetime(db.getInsertDatetime());
   entity.setDeleteFlag(db.getDeleteFlag());
   entity.setUpdateUser(user);
   entity.setUpdateDatetime(new Timestamp(new java.util.Date().getTime()));
   return physicalUpdate(entity);
 }
Exemplo n.º 3
0
 /** 登録(登録ユーザを指定) */
 @Aspect(advice = org.support.project.ormapping.transaction.Transaction.class)
 public RoleFunctionsEntity insert(Integer user, RoleFunctionsEntity entity) {
   entity.setInsertUser(user);
   entity.setInsertDatetime(new Timestamp(new java.util.Date().getTime()));
   entity.setUpdateUser(user);
   entity.setUpdateDatetime(new Timestamp(new java.util.Date().getTime()));
   entity.setDeleteFlag(0);
   entity.setRowId(createRowId());
   return physicalInsert(entity);
 }