public void applyMapper(QueryInOutMapper<?> mapper) { if (mapper.mapsParameter(value)) { mappedValue = mapper.mapParameter(value); LOG.log(Level.FINE, "Converting param {0} to {1}", new Object[] { value, mappedValue }); } }
@SuppressWarnings("unchecked") public Object executeQuery(EntityViewCdiQueryInvocationContext context) { Object result = execute(context); if (!isUnmappableResult(result) && context.hasQueryInOutMapper()) { QueryInOutMapper<Object> mapper = (QueryInOutMapper<Object>) context.getQueryInOutMapper(); if (result instanceof List) { return mapper.mapResultList((List<Object>) result); } return mapper.mapResult(result); } return result; }
@SuppressWarnings("unchecked") public Object executeQuery(EntityViewCdiQueryInvocationContext context) { Object result = execute(context); if (!isUnmappableResult(result) && context.hasQueryInOutMapper()) { QueryInOutMapper<Object> mapper = (QueryInOutMapper<Object>) context.getQueryInOutMapper(); if (result instanceof List) { return mapper.mapResultList((List<Object>) result); } return mapper.mapResult(result); } return result; }
@Override public void init() { if (hasQueryInOutMapper()) { QueryInOutMapper<?> mapper = getQueryInOutMapper(); extendedParams.applyMapper(mapper); for (int i = 0; i < args.length; i++) { if (mapper.mapsParameter(args[i])) { args[i] = mapper.mapParameter(args[i]); } } } }
@SuppressWarnings("unchecked") public Object executeQuery(EntityViewCdiQueryInvocationContext context) { Object result = execute(context); if (!isUnmappableResult(result) && context.hasQueryInOutMapper()) { QueryInOutMapper<Object> mapper = (QueryInOutMapper<Object>) context.getQueryInOutMapper(); if (result instanceof List) { return mapper.mapResultList((List<Object>) result); } return mapper.mapResult(result); } return result; }
public void initMapper() { if (hasQueryInOutMapper()) { QueryInOutMapper<?> mapper = getQueryInOutMapper(); params.applyMapper(mapper); for (int i = 0; i < args.length; i++) { if (mapper.mapsParameter(args[i])) { args[i] = mapper.mapParameter(args[i]); } } } }
@SuppressWarnings("unchecked") public Object executeQuery(EntityViewCdiQueryInvocationContext context) { Object result = execute(context); if (!isUnmappableResult(result) && context.hasQueryInOutMapper()) { QueryInOutMapper<Object> mapper = (QueryInOutMapper<Object>) context.getQueryInOutMapper(); if (result instanceof List) { return mapper.mapResultList((List<Object>) result); } return mapper.mapResult(result); } return result; }
public void initMapper() { if (hasQueryInOutMapper()) { QueryInOutMapper<?> mapper = getQueryInOutMapper(); params.applyMapper(mapper); for (int i = 0; i < args.length; i++) { if (mapper.mapsParameter(args[i])) { args[i] = mapper.mapParameter(args[i]); } } } }
@SuppressWarnings("unchecked") public Object executeQuery(EntityViewCdiQueryInvocationContext context) { Object result = execute(context); if (!isUnmappableResult(result) && context.hasQueryInOutMapper()) { QueryInOutMapper<Object> mapper = (QueryInOutMapper<Object>) context.getQueryInOutMapper(); if (result instanceof List) { return mapper.mapResultList((List<Object>) result); } return mapper.mapResult(result); } return result; }
public void initMapper() { if (hasQueryInOutMapper()) { QueryInOutMapper<?> mapper = getQueryInOutMapper(); params.applyMapper(mapper); for (int i = 0; i < args.length; i++) { if (mapper.mapsParameter(args[i])) { args[i] = mapper.mapParameter(args[i]); } } } }
@SuppressWarnings("unchecked") public Object executeQuery(CdiQueryInvocationContext context) { Object result = execute(context); if (!isUnmappableResult(result) && context.hasQueryInOutMapper()) { QueryInOutMapper<Object> mapper = (QueryInOutMapper<Object>) context.getQueryInOutMapper(); if (result instanceof List) { return mapper.mapResultList((List<Object>) result); } return mapper.mapResult(result); } return result; }
@Override public void init() { if (hasQueryInOutMapper()) { QueryInOutMapper<?> mapper = getQueryInOutMapper(); extendedParams.applyMapper(mapper); for (int i = 0; i < args.length; i++) { if (mapper.mapsParameter(args[i])) { args[i] = mapper.mapParameter(args[i]); } } } }
public void init() { if (hasQueryInOutMapper()) { QueryInOutMapper<?> mapper = getQueryInOutMapper(); params.applyMapper(mapper); for (int i = 0; i < args.length; i++) { if (mapper.mapsParameter(args[i])) { args[i] = mapper.mapParameter(args[i]); } } } }