res = getComplex( name, property == null || property.hasNullValue() ? null : property.getValue(), ref, getEntityHandler(), final Class<?> itemRef = ClassUtils.extractTypeArg(ref, ComplexCollection.class); if (property == null || property.hasNullValue()) { collectionHandler = new ComplexCollectionInvocationHandler( itemRef, if (property == null || property.hasNullValue()) { collectionHandler = new PrimitiveCollectionInvocationHandler( service, new Class<?>[] {PrimitiveCollection.class}, collectionHandler); } else { res = property == null || property.hasNullValue() ? null : CoreUtils.getObjectFromODataValue(property.getValue(), type, service);
res = getComplex( name, property == null || property.hasNullValue() ? null : property.getValue(), ref, getEntityHandler(), final Class<?> itemRef = ClassUtils.extractTypeArg(ref, ComplexCollection.class); if (property == null || property.hasNullValue()) { collectionHandler = new ComplexCollectionInvocationHandler( itemRef, if (property == null || property.hasNullValue()) { collectionHandler = new PrimitiveCollectionInvocationHandler( service, new Class<?>[] {PrimitiveCollection.class}, collectionHandler); } else { res = property == null || property.hasNullValue() ? null : CoreUtils.getObjectFromODataValue(property.getValue(), type, service);
} else { try { if (property.hasNullValue()) { setPropertyValue(bean, getter, null); } else if (property.hasPrimitiveValue()) {
} else { try { if (property.hasNullValue()) { setPropertyValue(bean, getter, null); } else if (property.hasPrimitiveValue()) {
@Override @SuppressWarnings("unchecked") public Triple<List<T>, URI, List<ClientAnnotation>> fetchPartial(final URI uri, final Class<T> typeRef) { final ODataPropertyRequest<ClientProperty> req = getClient().getRetrieveRequestFactory().getPropertyRequest(uri); req.setPrefer(getClient().newPreferences().includeAnnotations("*")); final ODataRetrieveResponse<ClientProperty> res = req.execute(); final List<T> resItems = new ArrayList<T>(); final ClientProperty property = res.getBody(); if (property != null && !property.hasNullValue()) { for (ClientValue item : property.getCollectionValue()) { resItems.add((T) item.asPrimitive().toValue()); } } return new ImmutableTriple<List<T>, URI, List<ClientAnnotation>>( resItems, null, Collections.<ClientAnnotation>emptyList()); }
@Override @SuppressWarnings("unchecked") public Triple<List<T>, URI, List<ClientAnnotation>> fetchPartial(final URI uri, final Class<T> typeRef) { final ODataPropertyRequest<ClientProperty> req = getClient().getRetrieveRequestFactory().getPropertyRequest(uri); req.setPrefer(getClient().newPreferences().includeAnnotations("*")); final ODataRetrieveResponse<ClientProperty> res = req.execute(); final List<T> resItems = new ArrayList<T>(); final ClientProperty property = res.getBody(); if (property != null && !property.hasNullValue()) { for (ClientValue item : property.getCollectionValue()) { resItems.add((T) item.asPrimitive().toValue()); } } return new ImmutableTriple<List<T>, URI, List<ClientAnnotation>>( resItems, null, Collections.<ClientAnnotation>emptyList()); }
final ClientProperty property = (ClientProperty) result; if (property == null || property.hasNullValue()) { res = null; } else if (returnType.isCollection()) {
final ClientProperty property = (ClientProperty) result; if (property == null || property.hasNullValue()) { res = null; } else if (returnType.isCollection()) {