Exemplo n.º 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());
 }
Exemplo n.º 2
0
 @Override
 public FetchResult execute(final FetchRoleList cmd, final IUserSessionContext ctx)
     throws DispatchException, SQLException {
   return fetcher.fetch(cmd, ctx.getConnection());
 }
Exemplo n.º 3
0
 @Override
 protected void update(UpdateCompany record, IUserSessionContext ctx)
     throws DispatchException, SQLException {
   sql.execute(ctx.getConnection(), record);
 }
Exemplo n.º 4
0
 @Override
 public FetchResult execute(final FetchAssetRecord cmd, final IUserSessionContext ctx)
     throws DispatchException, SQLException {
   return fetcher.serialize(cmd, ctx.getConnection(), cmd.getIds());
 }