Пример #1
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);
 }
Пример #2
0
 /** 更新(データを生で操作) */
 @Aspect(advice = org.support.project.ormapping.transaction.Transaction.class)
 public RoleFunctionsEntity physicalUpdate(RoleFunctionsEntity entity) {
   String sql =
       SQLManager.getInstance()
           .getSql(
               "/org/support/project/web/dao/sql/RoleFunctionsDao/RoleFunctionsDao_update.sql");
   executeUpdate(
       sql,
       entity.getRowId(),
       entity.getInsertUser(),
       entity.getInsertDatetime(),
       entity.getUpdateUser(),
       entity.getUpdateDatetime(),
       entity.getDeleteFlag(),
       entity.getFunctionKey(),
       entity.getRoleId());
   return entity;
 }