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