예제 #1
0
 @Override
 public FetchResult execute(final FetchPeriodEndTree cmd, final IUserSessionContext ctx)
     throws DispatchException, SQLException {
   return (cmd.getParentId() == null)
       ? parentSql.serialize(cmd, ctx.getConnection(), cmd.getCompanyId())
       : childSql.serialize(cmd, ctx.getConnection(), cmd.getParentId());
 }
예제 #2
0
 @Override
 public FetchResult execute(final FetchRoleList cmd, final IUserSessionContext ctx)
     throws DispatchException, SQLException {
   return fetcher.fetch(cmd, ctx.getConnection());
 }
예제 #3
0
 @Override
 protected void update(UpdateCompany record, IUserSessionContext ctx)
     throws DispatchException, SQLException {
   sql.execute(ctx.getConnection(), record);
 }
예제 #4
0
 @Override
 public FetchResult execute(final FetchAssetRecord cmd, final IUserSessionContext ctx)
     throws DispatchException, SQLException {
   return fetcher.serialize(cmd, ctx.getConnection(), cmd.getIds());
 }