[OLINGO-575] Move v4 package content one package up
This commit is contained in:
parent
c8865db8e8
commit
109c33ba39
|
@ -18,7 +18,7 @@
|
|||
*/
|
||||
package org.apache.olingo.ext.proxy.api;
|
||||
|
||||
import org.apache.olingo.client.api.uri.v4.URISearch;
|
||||
import org.apache.olingo.client.api.uri.URISearch;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Collection;
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
package org.apache.olingo.ext.proxy.commons;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import org.apache.olingo.client.api.uri.CommonURIBuilder;
|
||||
|
||||
import java.lang.reflect.Proxy;
|
||||
|
@ -31,11 +32,12 @@ import java.util.List;
|
|||
import java.util.Map;
|
||||
import java.util.concurrent.Callable;
|
||||
import java.util.concurrent.Future;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.commons.lang3.tuple.Triple;
|
||||
import org.apache.olingo.client.api.uri.QueryOption;
|
||||
import org.apache.olingo.client.api.uri.URIBuilder;
|
||||
import org.apache.olingo.client.api.uri.URIFilter;
|
||||
import org.apache.olingo.client.api.uri.v4.URIBuilder;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataAnnotation;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataEntity;
|
||||
import org.apache.olingo.commons.api.edm.constants.ODataServiceVersion;
|
||||
|
|
|
@ -20,10 +20,10 @@ package org.apache.olingo.ext.proxy.commons;
|
|||
|
||||
import org.apache.commons.lang3.tuple.ImmutableTriple;
|
||||
import org.apache.commons.lang3.tuple.Triple;
|
||||
import org.apache.olingo.client.api.ODataClient;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.ODataEntitySetRequest;
|
||||
import org.apache.olingo.client.api.communication.response.ODataRetrieveResponse;
|
||||
import org.apache.olingo.client.api.uri.CommonURIBuilder;
|
||||
import org.apache.olingo.client.api.v4.ODataClient;
|
||||
import org.apache.olingo.commons.api.domain.CommonODataEntity;
|
||||
import org.apache.olingo.commons.api.domain.CommonODataEntitySet;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataAnnotation;
|
||||
|
@ -37,6 +37,7 @@ import java.lang.reflect.Type;
|
|||
import java.net.URI;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.olingo.ext.proxy.AbstractService;
|
||||
import org.apache.olingo.ext.proxy.api.AbstractEntitySet;
|
||||
import org.apache.olingo.ext.proxy.api.EntityType;
|
||||
|
|
|
@ -32,13 +32,13 @@ import java.util.concurrent.Callable;
|
|||
import java.util.concurrent.Future;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.olingo.client.api.EdmEnabledODataClient;
|
||||
import org.apache.olingo.client.api.communication.header.ODataPreferences;
|
||||
import org.apache.olingo.client.api.communication.request.cud.ODataDeleteRequest;
|
||||
import org.apache.olingo.client.api.communication.request.cud.ODataEntityUpdateRequest;
|
||||
import org.apache.olingo.client.api.communication.request.cud.v4.ODataReferenceAddingRequest;
|
||||
import org.apache.olingo.client.api.communication.request.cud.ODataReferenceAddingRequest;
|
||||
import org.apache.olingo.client.api.communication.request.streamed.ODataMediaEntityUpdateRequest;
|
||||
import org.apache.olingo.client.api.communication.request.streamed.ODataStreamUpdateRequest;
|
||||
import org.apache.olingo.client.api.v4.EdmEnabledODataClient;
|
||||
import org.apache.olingo.client.core.uri.URIUtils;
|
||||
import org.apache.olingo.commons.api.ODataRuntimeException;
|
||||
import org.apache.olingo.commons.api.domain.CommonODataEntity;
|
||||
|
@ -465,7 +465,7 @@ abstract class AbstractPersistenceManager implements PersistenceManager {
|
|||
final ODataEntityUpdateRequest<CommonODataEntity> req =
|
||||
((EdmEnabledODataClient) service.getClient()).getCUDRequestFactory().
|
||||
getEntityUpdateRequest(handler.getEntityURI(),
|
||||
org.apache.olingo.client.api.communication.request.cud.v4.UpdateType.PATCH, changes);
|
||||
org.apache.olingo.client.api.communication.request.cud.UpdateType.PATCH, changes);
|
||||
|
||||
req.setPrefer(new ODataPreferences(service.getClient().getServiceVersion()).returnContent());
|
||||
|
||||
|
@ -487,7 +487,7 @@ abstract class AbstractPersistenceManager implements PersistenceManager {
|
|||
|
||||
if (service.getClient().getServiceVersion().compareTo(ODataServiceVersion.V30) >= 1) {
|
||||
final ODataReferenceAddingRequest req =
|
||||
((org.apache.olingo.client.api.v4.EdmEnabledODataClient) service.getClient()).getCUDRequestFactory().
|
||||
((org.apache.olingo.client.api.EdmEnabledODataClient) service.getClient()).getCUDRequestFactory().
|
||||
getReferenceAddingRequest(sericeRoot, source, targetRef);
|
||||
|
||||
req.setPrefer(new ODataPreferences(service.getClient().getServiceVersion()).returnContent());
|
||||
|
@ -517,7 +517,7 @@ abstract class AbstractPersistenceManager implements PersistenceManager {
|
|||
final ODataEntityUpdateRequest<CommonODataEntity> req =
|
||||
((EdmEnabledODataClient) service.getClient()).getCUDRequestFactory().
|
||||
getEntityUpdateRequest(uri,
|
||||
org.apache.olingo.client.api.communication.request.cud.v4.UpdateType.PATCH, changes);
|
||||
org.apache.olingo.client.api.communication.request.cud.UpdateType.PATCH, changes);
|
||||
|
||||
req.setPrefer(new ODataPreferences(service.getClient().getServiceVersion()).returnContent());
|
||||
|
||||
|
|
|
@ -34,12 +34,13 @@ import java.util.List;
|
|||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.Callable;
|
||||
|
||||
import org.apache.commons.io.IOUtils;
|
||||
import org.apache.commons.lang3.ArrayUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.olingo.client.api.uri.CommonURIBuilder;
|
||||
import org.apache.olingo.client.api.uri.QueryOption;
|
||||
import org.apache.olingo.client.api.uri.v4.URIBuilder;
|
||||
import org.apache.olingo.client.api.uri.URIBuilder;
|
||||
import org.apache.olingo.client.core.uri.URIUtils;
|
||||
import org.apache.olingo.commons.api.domain.CommonODataEntity;
|
||||
import org.apache.olingo.commons.api.domain.CommonODataProperty;
|
||||
|
|
|
@ -28,9 +28,9 @@ import java.util.concurrent.Callable;
|
|||
import java.util.concurrent.Future;
|
||||
|
||||
import org.apache.commons.lang3.tuple.Triple;
|
||||
import org.apache.olingo.client.api.EdmEnabledODataClient;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.ODataValueRequest;
|
||||
import org.apache.olingo.client.api.uri.CommonURIBuilder;
|
||||
import org.apache.olingo.client.api.v4.EdmEnabledODataClient;
|
||||
import org.apache.olingo.commons.api.domain.CommonODataEntity;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataAnnotation;
|
||||
import org.apache.olingo.commons.api.edm.FullQualifiedName;
|
||||
|
|
|
@ -19,10 +19,11 @@
|
|||
package org.apache.olingo.ext.proxy.commons;
|
||||
|
||||
import java.net.URI;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.olingo.client.api.uri.v4.URIBuilder;
|
||||
import org.apache.olingo.client.api.uri.v4.URISearch;
|
||||
import org.apache.olingo.client.api.v4.EdmEnabledODataClient;
|
||||
import org.apache.olingo.client.api.EdmEnabledODataClient;
|
||||
import org.apache.olingo.client.api.uri.URIBuilder;
|
||||
import org.apache.olingo.client.api.uri.URISearch;
|
||||
import org.apache.olingo.commons.api.edm.FullQualifiedName;
|
||||
import org.apache.olingo.ext.proxy.api.EntityCollection;
|
||||
import org.apache.olingo.ext.proxy.api.EntityType;
|
||||
|
|
|
@ -20,7 +20,7 @@ package org.apache.olingo.ext.pojogen;
|
|||
|
||||
import org.apache.maven.plugins.annotations.LifecyclePhase;
|
||||
import org.apache.maven.plugins.annotations.Mojo;
|
||||
import org.apache.olingo.client.api.v4.ODataClient;
|
||||
import org.apache.olingo.client.api.ODataClient;
|
||||
import org.apache.olingo.client.core.ODataClientFactory;
|
||||
import org.apache.olingo.commons.api.edm.Edm;
|
||||
import org.apache.olingo.commons.api.edm.EdmSchema;
|
||||
|
|
|
@ -56,7 +56,7 @@ public class Service<C extends CommonEdmEnabledODataClient<?>> extends AbstractS
|
|||
* @param serviceRoot OData service root
|
||||
* @return OData 4.0 instance for given service root, operating in transactions (with batch requests)
|
||||
*/
|
||||
public static Service<org.apache.olingo.client.api.v4.EdmEnabledODataClient> getV4(
|
||||
public static Service<org.apache.olingo.client.api.EdmEnabledODataClient> getV4(
|
||||
final String serviceRoot) {
|
||||
|
||||
return getV4(serviceRoot, true);
|
||||
|
@ -69,7 +69,7 @@ public class Service<C extends CommonEdmEnabledODataClient<?>> extends AbstractS
|
|||
* @param transactional whether operating in transactions (with batch requests) or not
|
||||
* @return OData 4.0 instance for given service root
|
||||
*/
|
||||
public static Service<org.apache.olingo.client.api.v4.EdmEnabledODataClient> getV4(
|
||||
public static Service<org.apache.olingo.client.api.EdmEnabledODataClient> getV4(
|
||||
final String serviceRoot, final boolean transactional) {
|
||||
|
||||
return getInstance(ODataServiceVersion.V40, serviceRoot, transactional);
|
||||
|
|
|
@ -31,10 +31,11 @@ import java.math.BigDecimal;
|
|||
import java.sql.Timestamp;
|
||||
import java.util.Calendar;
|
||||
import java.util.TimeZone;
|
||||
|
||||
//CHECKSTYLE:OFF (Maven checkstyle)
|
||||
import org.apache.commons.io.IOUtils;
|
||||
import org.apache.commons.lang3.RandomStringUtils;
|
||||
import org.apache.olingo.client.api.v4.EdmEnabledODataClient;
|
||||
import org.apache.olingo.client.api.EdmEnabledODataClient;
|
||||
import org.apache.olingo.commons.api.format.ContentType;
|
||||
import org.apache.olingo.ext.proxy.AbstractService;
|
||||
import org.apache.olingo.ext.proxy.api.EdmStreamValue;
|
||||
|
|
|
@ -30,7 +30,7 @@ import java.util.Calendar;
|
|||
import java.util.TimeZone;
|
||||
|
||||
import org.apache.olingo.client.api.CommonODataClient;
|
||||
import org.apache.olingo.client.api.v4.EdmEnabledODataClient;
|
||||
import org.apache.olingo.client.api.EdmEnabledODataClient;
|
||||
import org.apache.olingo.commons.api.format.ContentType;
|
||||
import org.apache.olingo.ext.proxy.AbstractService;
|
||||
import org.apache.olingo.ext.proxy.api.PrimitiveCollection;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
*/
|
||||
package org.apache.olingo.fit.proxy.v4;
|
||||
|
||||
import org.apache.olingo.client.api.v4.EdmEnabledODataClient;
|
||||
import org.apache.olingo.client.api.EdmEnabledODataClient;
|
||||
import org.apache.olingo.client.core.http.BasicAuthHttpClientFactory;
|
||||
import org.apache.olingo.commons.api.format.ContentType;
|
||||
import org.apache.olingo.fit.proxy.v4.staticservice.Service;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
*/
|
||||
package org.apache.olingo.fit.proxy.v4;
|
||||
|
||||
import org.apache.olingo.client.api.v4.EdmEnabledODataClient;
|
||||
import org.apache.olingo.client.api.EdmEnabledODataClient;
|
||||
import org.apache.olingo.client.core.http.BasicAuthHttpClientFactory;
|
||||
import org.apache.olingo.commons.api.format.ContentType;
|
||||
import org.apache.olingo.fit.proxy.v4.staticservice.Service;
|
||||
|
|
|
@ -25,7 +25,8 @@ import static org.junit.Assert.fail;
|
|||
import java.sql.Timestamp;
|
||||
import java.util.Calendar;
|
||||
import java.util.TimeZone;
|
||||
import org.apache.olingo.client.api.v4.EdmEnabledODataClient;
|
||||
|
||||
import org.apache.olingo.client.api.EdmEnabledODataClient;
|
||||
import org.apache.olingo.commons.api.format.ContentType;
|
||||
import org.apache.olingo.ext.proxy.api.ODataFlushException;
|
||||
import org.apache.olingo.ext.proxy.api.PrimitiveCollection;
|
||||
|
|
|
@ -20,7 +20,7 @@ package org.apache.olingo.fit.proxy.v4;
|
|||
|
||||
//CHECKSTYLE:OFF (Maven checkstyle)
|
||||
import org.apache.commons.lang3.RandomUtils;
|
||||
import org.apache.olingo.client.api.v4.EdmEnabledODataClient;
|
||||
import org.apache.olingo.client.api.EdmEnabledODataClient;
|
||||
import org.apache.olingo.ext.proxy.AbstractService;
|
||||
import org.apache.olingo.fit.proxy.v4.staticservice.microsoft.test.odata.services.odatawcfservice.InMemoryEntities;
|
||||
import org.apache.olingo.fit.proxy.v4.staticservice.microsoft.test.odata.services.odatawcfservice.types.AccessLevel;
|
||||
|
@ -44,6 +44,7 @@ import java.math.BigDecimal;
|
|||
import java.sql.Timestamp;
|
||||
import java.util.Calendar;
|
||||
import java.util.TimeZone;
|
||||
|
||||
import org.apache.olingo.ext.proxy.api.PrimitiveCollection;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
|
|
@ -21,7 +21,7 @@ package org.apache.olingo.fit.proxy.v4;
|
|||
//CHECKSTYLE:OFF (Maven checkstyle)
|
||||
import org.apache.commons.lang3.RandomUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.olingo.client.api.v4.EdmEnabledODataClient;
|
||||
import org.apache.olingo.client.api.EdmEnabledODataClient;
|
||||
import org.apache.olingo.ext.proxy.AbstractService;
|
||||
import org.apache.olingo.ext.proxy.commons.EntityInvocationHandler;
|
||||
import org.apache.olingo.fit.proxy.v4.staticservice.microsoft.test.odata.services.odatawcfservice.types.CompanyAddress;
|
||||
|
|
|
@ -21,7 +21,7 @@ package org.apache.olingo.fit.proxy.v4;
|
|||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
|
||||
import org.apache.olingo.client.api.v4.EdmEnabledODataClient;
|
||||
import org.apache.olingo.client.api.EdmEnabledODataClient;
|
||||
import org.apache.olingo.commons.api.format.ContentType;
|
||||
import org.apache.olingo.fit.proxy.v4.staticservice.Service;
|
||||
import org.apache.olingo.fit.proxy.v4.staticservice.microsoft.test.odata.services.odatawcfservice.InMemoryEntities;
|
||||
|
|
|
@ -27,9 +27,10 @@ import java.io.IOException;
|
|||
import java.sql.Timestamp;
|
||||
import java.util.Calendar;
|
||||
import java.util.UUID;
|
||||
|
||||
import org.apache.commons.io.IOUtils;
|
||||
import org.apache.commons.lang3.RandomStringUtils;
|
||||
import org.apache.olingo.client.api.v4.EdmEnabledODataClient;
|
||||
import org.apache.olingo.client.api.EdmEnabledODataClient;
|
||||
import org.apache.olingo.commons.api.format.ContentType;
|
||||
import org.apache.olingo.ext.proxy.api.EdmStreamValue;
|
||||
import org.apache.olingo.fit.proxy.v4.demo.Service;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
*/
|
||||
package org.apache.olingo.fit.proxy.v4;
|
||||
|
||||
import org.apache.olingo.client.api.v4.EdmEnabledODataClient;
|
||||
import org.apache.olingo.client.api.EdmEnabledODataClient;
|
||||
import org.apache.olingo.client.core.http.BasicAuthHttpClientFactory;
|
||||
import org.apache.olingo.commons.api.format.ContentType;
|
||||
import org.apache.olingo.fit.proxy.v4.staticservice.Service;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
*/
|
||||
package org.apache.olingo.fit.proxy.v4;
|
||||
|
||||
import org.apache.olingo.client.api.v4.EdmEnabledODataClient;
|
||||
import org.apache.olingo.client.api.EdmEnabledODataClient;
|
||||
import org.apache.olingo.commons.api.format.ContentType;
|
||||
import org.apache.olingo.fit.proxy.v4.staticservice.Service;
|
||||
import org.apache.olingo.fit.proxy.v4.staticservice.microsoft.test.odata.services.odatawcfservice.InMemoryEntities;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
*/
|
||||
package org.apache.olingo.fit.proxy.v4;
|
||||
|
||||
import org.apache.olingo.client.api.v4.EdmEnabledODataClient;
|
||||
import org.apache.olingo.client.api.EdmEnabledODataClient;
|
||||
import org.apache.olingo.commons.api.format.ContentType;
|
||||
import org.apache.olingo.fit.proxy.v4.staticservice.Service;
|
||||
import org.apache.olingo.fit.proxy.v4.staticservice.microsoft.test.odata.services.odatawcfservice.InMemoryEntities;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
*/
|
||||
package org.apache.olingo.fit.proxy.v4;
|
||||
|
||||
import org.apache.olingo.client.api.v4.EdmEnabledODataClient;
|
||||
import org.apache.olingo.client.api.EdmEnabledODataClient;
|
||||
import org.apache.olingo.commons.api.format.ContentType;
|
||||
import org.apache.olingo.fit.proxy.v4.demo.Service;
|
||||
import org.apache.olingo.fit.proxy.v4.demo.odatademo.DemoService;
|
||||
|
|
|
@ -29,7 +29,8 @@ import java.text.ParseException;
|
|||
import java.text.SimpleDateFormat;
|
||||
import java.util.Calendar;
|
||||
import java.util.UUID;
|
||||
import org.apache.olingo.client.api.v4.EdmEnabledODataClient;
|
||||
|
||||
import org.apache.olingo.client.api.EdmEnabledODataClient;
|
||||
import org.apache.olingo.commons.api.format.ContentType;
|
||||
import org.apache.olingo.ext.proxy.api.annotations.EntityType;
|
||||
import org.apache.olingo.fit.proxy.v4.opentype.Service;
|
||||
|
|
|
@ -18,8 +18,8 @@
|
|||
*/
|
||||
package org.apache.olingo.fit.proxy.v4;
|
||||
|
||||
import org.apache.olingo.client.api.EdmEnabledODataClient;
|
||||
import org.apache.olingo.client.api.http.HttpClientException;
|
||||
import org.apache.olingo.client.api.v4.EdmEnabledODataClient;
|
||||
import org.apache.olingo.client.core.http.BasicAuthHttpClientFactory;
|
||||
import org.apache.olingo.commons.api.format.ContentType;
|
||||
import org.apache.olingo.fit.proxy.v4.staticservice.Service;
|
||||
|
|
|
@ -54,7 +54,7 @@ public class Service<C extends CommonEdmEnabledODataClient<?>> extends AbstractS
|
|||
* @param serviceRoot OData service root
|
||||
* @return OData 4.0 instance for given service root, operating in transactions (with batch requests)
|
||||
*/
|
||||
public static Service<org.apache.olingo.client.api.v4.EdmEnabledODataClient> getV4(
|
||||
public static Service<org.apache.olingo.client.api.EdmEnabledODataClient> getV4(
|
||||
final String serviceRoot) {
|
||||
|
||||
return getV4(serviceRoot, true);
|
||||
|
@ -67,7 +67,7 @@ public class Service<C extends CommonEdmEnabledODataClient<?>> extends AbstractS
|
|||
* @param transactional whether operating in transactions (with batch requests) or not
|
||||
* @return OData 4.0 instance for given service root
|
||||
*/
|
||||
public static Service<org.apache.olingo.client.api.v4.EdmEnabledODataClient> getV4(
|
||||
public static Service<org.apache.olingo.client.api.EdmEnabledODataClient> getV4(
|
||||
final String serviceRoot, final boolean transactional) {
|
||||
|
||||
return getInstance(ODataServiceVersion.V40, serviceRoot, transactional);
|
||||
|
|
|
@ -55,7 +55,7 @@ public class Service<C extends CommonEdmEnabledODataClient<?>> extends AbstractS
|
|||
* @param serviceRoot OData service root
|
||||
* @return OData 4.0 instance for given service root, operating in transactions (with batch requests)
|
||||
*/
|
||||
public static Service<org.apache.olingo.client.api.v4.EdmEnabledODataClient> getV4(
|
||||
public static Service<org.apache.olingo.client.api.EdmEnabledODataClient> getV4(
|
||||
final String serviceRoot) {
|
||||
|
||||
return getV4(serviceRoot, true);
|
||||
|
@ -68,7 +68,7 @@ public class Service<C extends CommonEdmEnabledODataClient<?>> extends AbstractS
|
|||
* @param transactional whether operating in transactions (with batch requests) or not
|
||||
* @return OData 4.0 instance for given service root
|
||||
*/
|
||||
public static Service<org.apache.olingo.client.api.v4.EdmEnabledODataClient> getV4(
|
||||
public static Service<org.apache.olingo.client.api.EdmEnabledODataClient> getV4(
|
||||
final String serviceRoot, final boolean transactional) {
|
||||
|
||||
return getInstance(ODataServiceVersion.V40, serviceRoot, transactional);
|
||||
|
|
|
@ -55,7 +55,7 @@ public class Service<C extends CommonEdmEnabledODataClient<?>> extends AbstractS
|
|||
* @param serviceRoot OData service root
|
||||
* @return OData 4.0 instance for given service root, operating in transactions (with batch requests)
|
||||
*/
|
||||
public static Service<org.apache.olingo.client.api.v4.EdmEnabledODataClient> getV4(
|
||||
public static Service<org.apache.olingo.client.api.EdmEnabledODataClient> getV4(
|
||||
final String serviceRoot) {
|
||||
|
||||
return getV4(serviceRoot, true);
|
||||
|
@ -68,7 +68,7 @@ public class Service<C extends CommonEdmEnabledODataClient<?>> extends AbstractS
|
|||
* @param transactional whether operating in transactions (with batch requests) or not
|
||||
* @return OData 4.0 instance for given service root
|
||||
*/
|
||||
public static Service<org.apache.olingo.client.api.v4.EdmEnabledODataClient> getV4(
|
||||
public static Service<org.apache.olingo.client.api.EdmEnabledODataClient> getV4(
|
||||
final String serviceRoot, final boolean transactional) {
|
||||
|
||||
return getInstance(ODataServiceVersion.V40, serviceRoot, transactional);
|
||||
|
|
|
@ -32,11 +32,12 @@ import java.util.Collections;
|
|||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.olingo.client.api.ODataClient;
|
||||
import org.apache.olingo.client.api.communication.ODataClientErrorException;
|
||||
import org.apache.olingo.client.api.communication.request.cud.ODataDeleteRequest;
|
||||
import org.apache.olingo.client.api.communication.request.cud.ODataEntityCreateRequest;
|
||||
import org.apache.olingo.client.api.communication.request.cud.ODataEntityUpdateRequest;
|
||||
import org.apache.olingo.client.api.communication.request.cud.v4.UpdateType;
|
||||
import org.apache.olingo.client.api.communication.request.cud.UpdateType;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.EdmMetadataRequest;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.ODataEntityRequest;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.ODataEntitySetRequest;
|
||||
|
@ -46,9 +47,8 @@ import org.apache.olingo.client.api.communication.response.ODataDeleteResponse;
|
|||
import org.apache.olingo.client.api.communication.response.ODataEntityCreateResponse;
|
||||
import org.apache.olingo.client.api.communication.response.ODataEntityUpdateResponse;
|
||||
import org.apache.olingo.client.api.communication.response.ODataRetrieveResponse;
|
||||
import org.apache.olingo.client.api.edm.xml.Reference;
|
||||
import org.apache.olingo.client.api.edm.xml.XMLMetadata;
|
||||
import org.apache.olingo.client.api.edm.xml.v4.Reference;
|
||||
import org.apache.olingo.client.api.v4.ODataClient;
|
||||
import org.apache.olingo.client.core.ODataClientFactory;
|
||||
import org.apache.olingo.commons.api.domain.ODataError;
|
||||
import org.apache.olingo.commons.api.domain.ODataServiceDocument;
|
||||
|
@ -119,11 +119,11 @@ public class BasicITCase extends AbstractBaseTestITCase {
|
|||
XMLMetadata xmlMetadata = response.getBody();
|
||||
|
||||
assertNotNull(xmlMetadata);
|
||||
assertTrue(xmlMetadata instanceof org.apache.olingo.client.api.edm.xml.v4.XMLMetadata);
|
||||
assertTrue(xmlMetadata instanceof XMLMetadata);
|
||||
assertEquals(2, xmlMetadata.getSchemas().size());
|
||||
assertEquals("olingo.odata.test1", xmlMetadata.getSchema("olingo.odata.test1").getNamespace());
|
||||
final List<Reference> references =
|
||||
((org.apache.olingo.client.api.edm.xml.v4.XMLMetadata) xmlMetadata).getReferences();
|
||||
((XMLMetadata) xmlMetadata).getReferences();
|
||||
assertEquals(1, references.size());
|
||||
assertThat(references.get(0).getUri().toASCIIString(), containsString("vocabularies/Org.OData.Core.V1"));
|
||||
}
|
||||
|
|
|
@ -31,19 +31,19 @@ import java.util.Iterator;
|
|||
|
||||
import org.apache.olingo.client.api.ODataBatchConstants;
|
||||
import org.apache.olingo.client.api.communication.request.batch.BatchManager;
|
||||
import org.apache.olingo.client.api.communication.request.batch.ODataBatchRequest;
|
||||
import org.apache.olingo.client.api.communication.request.batch.ODataBatchResponseItem;
|
||||
import org.apache.olingo.client.api.communication.request.batch.ODataChangeset;
|
||||
import org.apache.olingo.client.api.communication.request.batch.v4.ODataBatchRequest;
|
||||
import org.apache.olingo.client.api.communication.request.cud.ODataEntityCreateRequest;
|
||||
import org.apache.olingo.client.api.communication.request.cud.ODataEntityUpdateRequest;
|
||||
import org.apache.olingo.client.api.communication.request.cud.v4.UpdateType;
|
||||
import org.apache.olingo.client.api.communication.request.cud.UpdateType;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.ODataEntityRequest;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.ODataEntitySetRequest;
|
||||
import org.apache.olingo.client.api.communication.response.ODataBatchResponse;
|
||||
import org.apache.olingo.client.api.communication.response.ODataEntityCreateResponse;
|
||||
import org.apache.olingo.client.api.communication.response.ODataEntityUpdateResponse;
|
||||
import org.apache.olingo.client.api.communication.response.ODataResponse;
|
||||
import org.apache.olingo.client.api.uri.v4.URIBuilder;
|
||||
import org.apache.olingo.client.api.uri.URIBuilder;
|
||||
import org.apache.olingo.client.core.communication.request.batch.ODataChangesetResponseItem;
|
||||
import org.apache.olingo.client.core.uri.URIUtils;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataEntity;
|
||||
|
|
|
@ -29,6 +29,7 @@ import java.net.URI;
|
|||
|
||||
import org.apache.commons.io.IOUtils;
|
||||
import org.apache.olingo.client.api.CommonODataClient;
|
||||
import org.apache.olingo.client.api.ODataClient;
|
||||
import org.apache.olingo.client.api.communication.ODataClientErrorException;
|
||||
import org.apache.olingo.client.api.communication.request.cud.ODataDeleteRequest;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.ODataMediaRequest;
|
||||
|
@ -38,7 +39,6 @@ import org.apache.olingo.client.api.communication.response.ODataDeleteResponse;
|
|||
import org.apache.olingo.client.api.communication.response.ODataMediaEntityCreateResponse;
|
||||
import org.apache.olingo.client.api.communication.response.ODataMediaEntityUpdateResponse;
|
||||
import org.apache.olingo.client.api.communication.response.ODataRetrieveResponse;
|
||||
import org.apache.olingo.client.api.v4.ODataClient;
|
||||
import org.apache.olingo.client.core.ODataClientFactory;
|
||||
import org.apache.olingo.commons.api.domain.CommonODataEntity;
|
||||
import org.apache.olingo.commons.api.domain.CommonODataProperty;
|
||||
|
|
|
@ -22,8 +22,8 @@ import static org.junit.Assert.assertEquals;
|
|||
import static org.junit.Assert.assertNotNull;
|
||||
|
||||
import org.apache.olingo.client.api.CommonODataClient;
|
||||
import org.apache.olingo.client.api.ODataClient;
|
||||
import org.apache.olingo.client.api.communication.response.ODataRetrieveResponse;
|
||||
import org.apache.olingo.client.api.v4.ODataClient;
|
||||
import org.apache.olingo.client.core.ODataClientFactory;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataEntity;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataEntitySet;
|
||||
|
|
|
@ -29,13 +29,13 @@ import java.net.URI;
|
|||
|
||||
import org.apache.commons.io.IOUtils;
|
||||
import org.apache.olingo.client.api.CommonODataClient;
|
||||
import org.apache.olingo.client.api.ODataClient;
|
||||
import org.apache.olingo.client.api.communication.ODataClientErrorException;
|
||||
import org.apache.olingo.client.api.communication.request.cud.ODataDeleteRequest;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.ODataPropertyRequest;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.ODataValueRequest;
|
||||
import org.apache.olingo.client.api.communication.response.ODataDeleteResponse;
|
||||
import org.apache.olingo.client.api.communication.response.ODataRetrieveResponse;
|
||||
import org.apache.olingo.client.api.v4.ODataClient;
|
||||
import org.apache.olingo.client.core.ODataClientFactory;
|
||||
import org.apache.olingo.commons.api.domain.ODataPrimitiveValue;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataProperty;
|
||||
|
|
|
@ -18,13 +18,13 @@
|
|||
*/
|
||||
package org.apache.olingo.fit.v4;
|
||||
|
||||
import org.apache.olingo.client.api.EdmEnabledODataClient;
|
||||
import org.apache.olingo.client.api.ODataClient;
|
||||
import org.apache.olingo.client.api.communication.request.cud.ODataDeleteRequest;
|
||||
import org.apache.olingo.client.api.communication.request.cud.ODataEntityCreateRequest;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.ODataEntityRequest;
|
||||
import org.apache.olingo.client.api.communication.response.ODataDeleteResponse;
|
||||
import org.apache.olingo.client.api.communication.response.ODataRetrieveResponse;
|
||||
import org.apache.olingo.client.api.v4.EdmEnabledODataClient;
|
||||
import org.apache.olingo.client.api.v4.ODataClient;
|
||||
import org.apache.olingo.client.core.ODataClientFactory;
|
||||
import org.apache.olingo.commons.api.domain.ODataCollectionValue;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataEntity;
|
||||
|
|
|
@ -18,12 +18,12 @@
|
|||
*/
|
||||
package org.apache.olingo.fit.v4;
|
||||
|
||||
import org.apache.olingo.client.api.communication.request.AsyncRequestWrapper;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.ODataEntityRequest;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.ODataEntitySetRequest;
|
||||
import org.apache.olingo.client.api.communication.request.v4.AsyncRequestWrapper;
|
||||
import org.apache.olingo.client.api.communication.response.AsyncResponseWrapper;
|
||||
import org.apache.olingo.client.api.communication.response.ODataRetrieveResponse;
|
||||
import org.apache.olingo.client.api.communication.response.v4.AsyncResponseWrapper;
|
||||
import org.apache.olingo.client.api.uri.v4.URIBuilder;
|
||||
import org.apache.olingo.client.api.uri.URIBuilder;
|
||||
import org.apache.olingo.commons.api.domain.CommonODataEntity;
|
||||
import org.apache.olingo.commons.api.domain.CommonODataProperty;
|
||||
import org.apache.olingo.commons.api.domain.ODataInlineEntity;
|
||||
|
|
|
@ -18,17 +18,17 @@
|
|||
*/
|
||||
package org.apache.olingo.fit.v4;
|
||||
|
||||
import org.apache.olingo.client.api.ODataClient;
|
||||
import org.apache.olingo.client.api.communication.header.HeaderName;
|
||||
import org.apache.olingo.client.api.communication.request.batch.BatchManager;
|
||||
import org.apache.olingo.client.api.communication.request.batch.ODataBatchRequest;
|
||||
import org.apache.olingo.client.api.communication.request.batch.ODataChangeset;
|
||||
import org.apache.olingo.client.api.communication.request.batch.v4.ODataBatchRequest;
|
||||
import org.apache.olingo.client.api.communication.request.cud.ODataEntityUpdateRequest;
|
||||
import org.apache.olingo.client.api.communication.request.cud.v4.UpdateType;
|
||||
import org.apache.olingo.client.api.communication.request.cud.UpdateType;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.ODataEntityRequest;
|
||||
import org.apache.olingo.client.api.communication.response.ODataBatchResponse;
|
||||
import org.apache.olingo.client.api.http.HttpClientException;
|
||||
import org.apache.olingo.client.api.uri.v4.URIBuilder;
|
||||
import org.apache.olingo.client.api.v4.ODataClient;
|
||||
import org.apache.olingo.client.api.uri.URIBuilder;
|
||||
import org.apache.olingo.client.core.ODataClientFactory;
|
||||
import org.apache.olingo.client.core.http.BasicAuthHttpClientFactory;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataEntity;
|
||||
|
|
|
@ -21,24 +21,24 @@ package org.apache.olingo.fit.v4;
|
|||
import org.apache.http.HttpResponse;
|
||||
import org.apache.olingo.client.api.ODataBatchConstants;
|
||||
import org.apache.olingo.client.api.communication.header.HeaderName;
|
||||
import org.apache.olingo.client.api.communication.request.AsyncBatchRequestWrapper;
|
||||
import org.apache.olingo.client.api.communication.request.ODataPayloadManager;
|
||||
import org.apache.olingo.client.api.communication.request.batch.BatchManager;
|
||||
import org.apache.olingo.client.api.communication.request.batch.ODataBatchRequest;
|
||||
import org.apache.olingo.client.api.communication.request.batch.ODataBatchResponseItem;
|
||||
import org.apache.olingo.client.api.communication.request.batch.ODataChangeset;
|
||||
import org.apache.olingo.client.api.communication.request.batch.v4.ODataBatchRequest;
|
||||
import org.apache.olingo.client.api.communication.request.cud.ODataEntityCreateRequest;
|
||||
import org.apache.olingo.client.api.communication.request.cud.ODataEntityUpdateRequest;
|
||||
import org.apache.olingo.client.api.communication.request.cud.v4.UpdateType;
|
||||
import org.apache.olingo.client.api.communication.request.cud.UpdateType;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.ODataEntityRequest;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.ODataEntitySetRequest;
|
||||
import org.apache.olingo.client.api.communication.request.v4.AsyncBatchRequestWrapper;
|
||||
import org.apache.olingo.client.api.communication.response.AsyncResponse;
|
||||
import org.apache.olingo.client.api.communication.response.AsyncResponseWrapper;
|
||||
import org.apache.olingo.client.api.communication.response.ODataBatchResponse;
|
||||
import org.apache.olingo.client.api.communication.response.ODataEntityCreateResponse;
|
||||
import org.apache.olingo.client.api.communication.response.ODataEntityUpdateResponse;
|
||||
import org.apache.olingo.client.api.communication.response.ODataResponse;
|
||||
import org.apache.olingo.client.api.communication.response.v4.AsyncResponse;
|
||||
import org.apache.olingo.client.api.communication.response.v4.AsyncResponseWrapper;
|
||||
import org.apache.olingo.client.api.uri.v4.URIBuilder;
|
||||
import org.apache.olingo.client.api.uri.URIBuilder;
|
||||
import org.apache.olingo.client.core.communication.request.AbstractODataStreamManager;
|
||||
import org.apache.olingo.client.core.communication.request.Wrapper;
|
||||
import org.apache.olingo.client.core.communication.request.batch.ODataChangesetResponseItem;
|
||||
|
|
|
@ -20,7 +20,7 @@ package org.apache.olingo.fit.v4;
|
|||
|
||||
import org.apache.olingo.client.api.communication.request.invoke.ODataInvokeRequest;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.ODataEntityRequest;
|
||||
import org.apache.olingo.client.api.uri.v4.URIBuilder;
|
||||
import org.apache.olingo.client.api.uri.URIBuilder;
|
||||
import org.apache.olingo.commons.api.domain.ODataCollectionValue;
|
||||
import org.apache.olingo.commons.api.domain.ODataComplexValue;
|
||||
import org.apache.olingo.commons.api.domain.ODataOperation;
|
||||
|
|
|
@ -19,21 +19,21 @@
|
|||
package org.apache.olingo.fit.v4;
|
||||
|
||||
import org.apache.olingo.client.api.communication.header.HeaderName;
|
||||
import org.apache.olingo.client.api.communication.request.AsyncRequestWrapper;
|
||||
import org.apache.olingo.client.api.communication.request.cud.ODataDeleteRequest;
|
||||
import org.apache.olingo.client.api.communication.request.cud.ODataEntityCreateRequest;
|
||||
import org.apache.olingo.client.api.communication.request.cud.ODataEntityUpdateRequest;
|
||||
import org.apache.olingo.client.api.communication.request.cud.v4.UpdateType;
|
||||
import org.apache.olingo.client.api.communication.request.cud.UpdateType;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.ODataDeltaRequest;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.ODataEntityRequest;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.ODataEntitySetRequest;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.v4.ODataDeltaRequest;
|
||||
import org.apache.olingo.client.api.communication.request.v4.AsyncRequestWrapper;
|
||||
import org.apache.olingo.client.api.communication.response.AsyncResponseWrapper;
|
||||
import org.apache.olingo.client.api.communication.response.ODataDeleteResponse;
|
||||
import org.apache.olingo.client.api.communication.response.ODataEntityCreateResponse;
|
||||
import org.apache.olingo.client.api.communication.response.ODataEntityUpdateResponse;
|
||||
import org.apache.olingo.client.api.communication.response.ODataRetrieveResponse;
|
||||
import org.apache.olingo.client.api.communication.response.v4.AsyncResponseWrapper;
|
||||
import org.apache.olingo.client.api.uri.CommonURIBuilder;
|
||||
import org.apache.olingo.client.api.uri.v4.URIBuilder;
|
||||
import org.apache.olingo.client.api.uri.URIBuilder;
|
||||
import org.apache.olingo.client.core.http.BasicAuthHttpClientFactory;
|
||||
import org.apache.olingo.client.core.http.DefaultHttpClientFactory;
|
||||
import org.apache.olingo.client.core.uri.URIUtils;
|
||||
|
|
|
@ -18,8 +18,8 @@
|
|||
*/
|
||||
package org.apache.olingo.fit.v4;
|
||||
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.ODataDeltaRequest;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.ODataEntitySetRequest;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.v4.ODataDeltaRequest;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataDelta;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataEntitySet;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataProperty;
|
||||
|
|
|
@ -23,7 +23,7 @@ import org.apache.olingo.client.api.communication.request.cud.ODataEntityCreateR
|
|||
import org.apache.olingo.client.api.communication.request.retrieve.ODataEntityRequest;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.ODataEntitySetRequest;
|
||||
import org.apache.olingo.client.api.communication.response.ODataEntityCreateResponse;
|
||||
import org.apache.olingo.client.api.uri.v4.URIBuilder;
|
||||
import org.apache.olingo.client.api.uri.URIBuilder;
|
||||
import org.apache.olingo.commons.api.domain.ODataComplexValue;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataEntity;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataEntitySet;
|
||||
|
|
|
@ -24,13 +24,13 @@ import static org.junit.Assert.assertNull;
|
|||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.olingo.client.api.EdmEnabledODataClient;
|
||||
import org.apache.olingo.client.api.ODataClient;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.ODataEntityRequest;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.ODataRawRequest;
|
||||
import org.apache.olingo.client.api.communication.response.ODataRawResponse;
|
||||
import org.apache.olingo.client.api.communication.response.ODataRetrieveResponse;
|
||||
import org.apache.olingo.client.api.uri.v4.URIBuilder;
|
||||
import org.apache.olingo.client.api.v4.EdmEnabledODataClient;
|
||||
import org.apache.olingo.client.api.v4.ODataClient;
|
||||
import org.apache.olingo.client.api.uri.URIBuilder;
|
||||
import org.apache.olingo.commons.api.data.ResWrap;
|
||||
import org.apache.olingo.commons.api.domain.CommonODataEntity;
|
||||
import org.apache.olingo.commons.api.domain.CommonODataEntitySet;
|
||||
|
@ -44,6 +44,7 @@ import org.apache.olingo.commons.api.domain.v4.ODataEntitySet;
|
|||
import org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException;
|
||||
import org.apache.olingo.commons.api.format.ODataFormat;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.net.URI;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.LinkedHashMap;
|
||||
|
|
|
@ -18,14 +18,14 @@
|
|||
*/
|
||||
package org.apache.olingo.fit.v4;
|
||||
|
||||
import org.apache.olingo.client.api.ODataClient;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.ODataEntitySetIteratorRequest;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.ODataEntitySetRequest;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.ODataRawRequest;
|
||||
import org.apache.olingo.client.api.communication.response.ODataRawResponse;
|
||||
import org.apache.olingo.client.api.communication.response.ODataRetrieveResponse;
|
||||
import org.apache.olingo.client.api.domain.ODataEntitySetIterator;
|
||||
import org.apache.olingo.client.api.uri.v4.URIBuilder;
|
||||
import org.apache.olingo.client.api.v4.ODataClient;
|
||||
import org.apache.olingo.client.api.uri.URIBuilder;
|
||||
import org.apache.olingo.client.core.uri.URIUtils;
|
||||
import org.apache.olingo.commons.api.data.ResWrap;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataEntity;
|
||||
|
|
|
@ -28,10 +28,10 @@ import java.util.TimeZone;
|
|||
import java.util.UUID;
|
||||
|
||||
import org.apache.olingo.client.api.communication.request.cud.ODataEntityUpdateRequest;
|
||||
import org.apache.olingo.client.api.communication.request.cud.v4.ODataReferenceAddingRequest;
|
||||
import org.apache.olingo.client.api.communication.request.cud.v4.UpdateType;
|
||||
import org.apache.olingo.client.api.communication.request.cud.ODataReferenceAddingRequest;
|
||||
import org.apache.olingo.client.api.communication.request.cud.UpdateType;
|
||||
import org.apache.olingo.client.api.communication.response.ODataEntityUpdateResponse;
|
||||
import org.apache.olingo.client.api.communication.response.v4.ODataReferenceAddingResponse;
|
||||
import org.apache.olingo.client.api.communication.response.ODataReferenceAddingResponse;
|
||||
import org.apache.olingo.commons.api.domain.ODataLink;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataEntity;
|
||||
import org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException;
|
||||
|
|
|
@ -19,10 +19,10 @@
|
|||
package org.apache.olingo.fit.v4;
|
||||
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.ODataEntitySetRequest;
|
||||
import org.apache.olingo.client.api.uri.FilterArgFactory;
|
||||
import org.apache.olingo.client.api.uri.FilterFactory;
|
||||
import org.apache.olingo.client.api.uri.URIBuilder;
|
||||
import org.apache.olingo.client.api.uri.URIFilter;
|
||||
import org.apache.olingo.client.api.uri.v4.FilterArgFactory;
|
||||
import org.apache.olingo.client.api.uri.v4.FilterFactory;
|
||||
import org.apache.olingo.client.api.uri.v4.URIBuilder;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataEntity;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataEntitySet;
|
||||
import org.apache.olingo.commons.api.format.ODataFormat;
|
||||
|
|
|
@ -19,11 +19,11 @@
|
|||
package org.apache.olingo.fit.v4;
|
||||
|
||||
import org.apache.olingo.client.api.communication.request.cud.ODataEntityUpdateRequest;
|
||||
import org.apache.olingo.client.api.communication.request.cud.v4.UpdateType;
|
||||
import org.apache.olingo.client.api.communication.request.cud.UpdateType;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.ODataEntityRequest;
|
||||
import org.apache.olingo.client.api.communication.response.ODataEntityUpdateResponse;
|
||||
import org.apache.olingo.client.api.communication.response.ODataRetrieveResponse;
|
||||
import org.apache.olingo.client.api.uri.v4.URIBuilder;
|
||||
import org.apache.olingo.client.api.uri.URIBuilder;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataEntity;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataProperty;
|
||||
import org.apache.olingo.commons.api.edm.FullQualifiedName;
|
||||
|
|
|
@ -20,9 +20,10 @@ package org.apache.olingo.fit.v4;
|
|||
|
||||
import org.apache.commons.io.IOUtils;
|
||||
import org.apache.commons.lang3.RandomStringUtils;
|
||||
import org.apache.olingo.client.api.ODataClient;
|
||||
import org.apache.olingo.client.api.communication.header.HeaderName;
|
||||
import org.apache.olingo.client.api.communication.request.cud.ODataEntityUpdateRequest;
|
||||
import org.apache.olingo.client.api.communication.request.cud.v4.UpdateType;
|
||||
import org.apache.olingo.client.api.communication.request.cud.UpdateType;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.ODataEntityRequest;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.ODataMediaRequest;
|
||||
import org.apache.olingo.client.api.communication.request.streamed.MediaEntityCreateStreamManager;
|
||||
|
@ -33,8 +34,7 @@ import org.apache.olingo.client.api.communication.response.ODataEntityUpdateResp
|
|||
import org.apache.olingo.client.api.communication.response.ODataMediaEntityCreateResponse;
|
||||
import org.apache.olingo.client.api.communication.response.ODataMediaEntityUpdateResponse;
|
||||
import org.apache.olingo.client.api.communication.response.ODataRetrieveResponse;
|
||||
import org.apache.olingo.client.api.uri.v4.URIBuilder;
|
||||
import org.apache.olingo.client.api.v4.ODataClient;
|
||||
import org.apache.olingo.client.api.uri.URIBuilder;
|
||||
import org.apache.olingo.client.core.ODataClientFactory;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataEntity;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataValuable;
|
||||
|
|
|
@ -22,18 +22,20 @@ import static org.junit.Assert.assertEquals;
|
|||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.olingo.client.api.EdmEnabledODataClient;
|
||||
import org.apache.olingo.client.api.ODataClient;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.ODataEntityRequest;
|
||||
import org.apache.olingo.client.api.communication.response.ODataRetrieveResponse;
|
||||
import org.apache.olingo.client.api.uri.v4.URIBuilder;
|
||||
import org.apache.olingo.client.api.v4.EdmEnabledODataClient;
|
||||
import org.apache.olingo.client.api.v4.ODataClient;
|
||||
import org.apache.olingo.client.api.uri.URIBuilder;
|
||||
import org.apache.olingo.client.core.ODataClientFactory;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataEntity;
|
||||
import org.apache.olingo.commons.api.format.ODataFormat;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.net.URI;
|
||||
|
||||
import org.apache.olingo.client.core.http.DefaultHttpClientFactory;
|
||||
import org.apache.olingo.fit.CXFOAuth2HttpClientFactory;
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ package org.apache.olingo.fit.v4;
|
|||
import org.apache.olingo.client.api.communication.request.cud.ODataEntityCreateRequest;
|
||||
import org.apache.olingo.client.api.communication.response.ODataDeleteResponse;
|
||||
import org.apache.olingo.client.api.communication.response.ODataEntityCreateResponse;
|
||||
import org.apache.olingo.client.api.uri.v4.URIBuilder;
|
||||
import org.apache.olingo.client.api.uri.URIBuilder;
|
||||
import org.apache.olingo.commons.api.domain.ODataComplexValue;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataEntity;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataProperty;
|
||||
|
|
|
@ -23,17 +23,17 @@ import static org.junit.Assert.assertNotNull;
|
|||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.olingo.client.api.ODataClient;
|
||||
import org.apache.olingo.client.api.communication.request.cud.ODataDeleteRequest;
|
||||
import org.apache.olingo.client.api.communication.request.cud.ODataEntityCreateRequest;
|
||||
import org.apache.olingo.client.api.communication.request.cud.ODataPropertyUpdateRequest;
|
||||
import org.apache.olingo.client.api.communication.request.cud.v4.UpdateType;
|
||||
import org.apache.olingo.client.api.communication.request.cud.UpdateType;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.ODataPropertyRequest;
|
||||
import org.apache.olingo.client.api.communication.response.ODataDeleteResponse;
|
||||
import org.apache.olingo.client.api.communication.response.ODataEntityCreateResponse;
|
||||
import org.apache.olingo.client.api.communication.response.ODataPropertyUpdateResponse;
|
||||
import org.apache.olingo.client.api.communication.response.ODataRetrieveResponse;
|
||||
import org.apache.olingo.client.api.uri.v4.URIBuilder;
|
||||
import org.apache.olingo.client.api.v4.ODataClient;
|
||||
import org.apache.olingo.client.api.uri.URIBuilder;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataEntity;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataProperty;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataValuable;
|
||||
|
|
|
@ -22,7 +22,7 @@ import org.apache.commons.lang3.StringUtils;
|
|||
import org.apache.olingo.client.api.communication.ODataClientErrorException;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.ODataPropertyRequest;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.ODataValueRequest;
|
||||
import org.apache.olingo.client.api.uri.v4.URIBuilder;
|
||||
import org.apache.olingo.client.api.uri.URIBuilder;
|
||||
import org.apache.olingo.commons.api.domain.ODataPrimitiveValue;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataProperty;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataValuable;
|
||||
|
|
|
@ -22,7 +22,7 @@ import org.apache.olingo.client.api.communication.request.retrieve.ODataEntityRe
|
|||
import org.apache.olingo.client.api.communication.request.retrieve.ODataEntitySetRequest;
|
||||
import org.apache.olingo.client.api.communication.response.ODataRetrieveResponse;
|
||||
import org.apache.olingo.client.api.uri.QueryOption;
|
||||
import org.apache.olingo.client.api.uri.v4.URIBuilder;
|
||||
import org.apache.olingo.client.api.uri.URIBuilder;
|
||||
import org.apache.olingo.commons.api.domain.ODataInlineEntitySet;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataEntity;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataEntitySet;
|
||||
|
|
|
@ -18,12 +18,12 @@
|
|||
*/
|
||||
package org.apache.olingo.fit.v4;
|
||||
|
||||
import org.apache.olingo.client.api.ODataClient;
|
||||
import org.apache.olingo.client.api.communication.request.cud.ODataEntityUpdateRequest;
|
||||
import org.apache.olingo.client.api.communication.request.cud.v4.UpdateType;
|
||||
import org.apache.olingo.client.api.communication.request.cud.UpdateType;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.ODataEntityRequest;
|
||||
import org.apache.olingo.client.api.communication.response.ODataEntityUpdateResponse;
|
||||
import org.apache.olingo.client.api.uri.v4.URIBuilder;
|
||||
import org.apache.olingo.client.api.v4.ODataClient;
|
||||
import org.apache.olingo.client.api.uri.URIBuilder;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataAnnotation;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataSingleton;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataValuable;
|
||||
|
|
|
@ -16,12 +16,11 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.olingo.client.api.v4;
|
||||
package org.apache.olingo.client.api;
|
||||
|
||||
import org.apache.olingo.client.api.CommonEdmEnabledODataClient;
|
||||
import org.apache.olingo.client.api.communication.request.cud.v4.UpdateType;
|
||||
import org.apache.olingo.client.api.communication.request.cud.UpdateType;
|
||||
import org.apache.olingo.client.api.communication.request.invoke.EdmEnabledInvokeRequestFactory;
|
||||
import org.apache.olingo.client.api.uri.v4.URIBuilder;
|
||||
import org.apache.olingo.client.api.uri.URIBuilder;
|
||||
|
||||
public interface EdmEnabledODataClient extends CommonEdmEnabledODataClient<UpdateType>, ODataClient {
|
||||
|
|
@ -16,20 +16,19 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.olingo.client.api.v4;
|
||||
package org.apache.olingo.client.api;
|
||||
|
||||
import org.apache.olingo.client.api.CommonODataClient;
|
||||
import org.apache.olingo.client.api.communication.request.batch.v4.BatchRequestFactory;
|
||||
import org.apache.olingo.client.api.communication.request.cud.v4.CUDRequestFactory;
|
||||
import org.apache.olingo.client.api.communication.request.cud.v4.UpdateType;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.v4.RetrieveRequestFactory;
|
||||
import org.apache.olingo.client.api.communication.request.v4.AsyncRequestFactory;
|
||||
import org.apache.olingo.client.api.serialization.v4.ODataBinder;
|
||||
import org.apache.olingo.client.api.serialization.v4.ODataDeserializer;
|
||||
import org.apache.olingo.client.api.serialization.v4.ODataReader;
|
||||
import org.apache.olingo.client.api.uri.v4.FilterFactory;
|
||||
import org.apache.olingo.client.api.uri.v4.SearchFactory;
|
||||
import org.apache.olingo.client.api.uri.v4.URIBuilder;
|
||||
import org.apache.olingo.client.api.communication.request.AsyncRequestFactory;
|
||||
import org.apache.olingo.client.api.communication.request.batch.BatchRequestFactory;
|
||||
import org.apache.olingo.client.api.communication.request.cud.CUDRequestFactory;
|
||||
import org.apache.olingo.client.api.communication.request.cud.UpdateType;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.RetrieveRequestFactory;
|
||||
import org.apache.olingo.client.api.serialization.ODataBinder;
|
||||
import org.apache.olingo.client.api.serialization.ODataDeserializer;
|
||||
import org.apache.olingo.client.api.serialization.ODataReader;
|
||||
import org.apache.olingo.client.api.uri.FilterFactory;
|
||||
import org.apache.olingo.client.api.uri.SearchFactory;
|
||||
import org.apache.olingo.client.api.uri.URIBuilder;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataObjectFactory;
|
||||
import org.apache.olingo.commons.api.format.ODataFormat;
|
||||
|
|
@ -16,9 +16,8 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.olingo.client.api.communication.request.v4;
|
||||
package org.apache.olingo.client.api.communication.request;
|
||||
|
||||
import org.apache.olingo.client.api.communication.request.ODataBatchableRequest;
|
||||
import org.apache.olingo.client.api.communication.request.batch.ODataChangeset;
|
||||
import org.apache.olingo.client.api.communication.response.ODataBatchResponse;
|
||||
|
|
@ -16,10 +16,9 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.olingo.client.api.communication.request.v4;
|
||||
package org.apache.olingo.client.api.communication.request;
|
||||
|
||||
import org.apache.olingo.client.api.communication.request.ODataRequest;
|
||||
import org.apache.olingo.client.api.communication.request.batch.v4.ODataBatchRequest;
|
||||
import org.apache.olingo.client.api.communication.request.batch.ODataBatchRequest;
|
||||
import org.apache.olingo.client.api.communication.response.ODataResponse;
|
||||
|
||||
public interface AsyncRequestFactory {
|
|
@ -16,12 +16,12 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.olingo.client.api.communication.request.v4;
|
||||
package org.apache.olingo.client.api.communication.request;
|
||||
|
||||
import java.net.URI;
|
||||
|
||||
import org.apache.olingo.client.api.communication.response.AsyncResponseWrapper;
|
||||
import org.apache.olingo.client.api.communication.response.ODataResponse;
|
||||
import org.apache.olingo.client.api.communication.response.v4.AsyncResponseWrapper;
|
||||
|
||||
public interface AsyncRequestWrapper<R extends ODataResponse> {
|
||||
|
|
@ -29,9 +29,9 @@ import org.apache.olingo.commons.api.http.HttpMethod;
|
|||
* Abstract representation of an OData request. Get instance by using factories.
|
||||
*
|
||||
* @see org.apache.olingo.client.api.communication.request.cud.v3.CUDRequestFactory
|
||||
* @see org.apache.olingo.client.api.communication.request.cud.v4.CUDRequestFactory
|
||||
* @see org.apache.olingo.client.api.communication.request.cud.CUDRequestFactory
|
||||
* @see org.apache.olingo.client.api.communication.request.batch.v3.BatchRequestFactory
|
||||
* @see org.apache.olingo.client.api.communication.request.batch.v4.BatchRequestFactory
|
||||
* @see org.apache.olingo.client.api.communication.request.batch.BatchRequestFactory
|
||||
* @see org.apache.olingo.client.api.communication.request.invoke.InvokeRequestFactory
|
||||
*/
|
||||
public interface ODataRequest {
|
||||
|
|
|
@ -16,9 +16,8 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.olingo.client.api.communication.request.batch.v4;
|
||||
package org.apache.olingo.client.api.communication.request.batch;
|
||||
|
||||
import org.apache.olingo.client.api.communication.request.batch.CommonBatchRequestFactory;
|
||||
|
||||
public interface BatchRequestFactory extends CommonBatchRequestFactory {
|
||||
|
|
@ -16,11 +16,9 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.olingo.client.api.communication.request.batch.v4;
|
||||
package org.apache.olingo.client.api.communication.request.batch;
|
||||
|
||||
import org.apache.olingo.client.api.communication.request.ODataStreamedRequest;
|
||||
import org.apache.olingo.client.api.communication.request.batch.BatchManager;
|
||||
import org.apache.olingo.client.api.communication.request.batch.CommonODataBatchRequest;
|
||||
import org.apache.olingo.client.api.communication.response.ODataBatchResponse;
|
||||
|
||||
public interface ODataBatchRequest
|
|
@ -16,10 +16,9 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.olingo.client.api.communication.request.batch.v4;
|
||||
package org.apache.olingo.client.api.communication.request.batch;
|
||||
|
||||
import org.apache.olingo.client.api.communication.request.ODataBatchableRequest;
|
||||
import org.apache.olingo.client.api.communication.request.batch.ODataBatchRequestItem;
|
||||
|
||||
/**
|
||||
* Retrieve request wrapper for the corresponding batch item.
|
|
@ -16,12 +16,10 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.olingo.client.api.communication.request.cud.v4;
|
||||
package org.apache.olingo.client.api.communication.request.cud;
|
||||
|
||||
import java.net.URI;
|
||||
|
||||
import org.apache.olingo.client.api.communication.request.cud.CommonCUDRequestFactory;
|
||||
import org.apache.olingo.client.api.communication.request.cud.ODataEntityUpdateRequest;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataSingleton;
|
||||
|
||||
public interface CUDRequestFactory extends CommonCUDRequestFactory<UpdateType> {
|
|
@ -16,11 +16,11 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.olingo.client.api.communication.request.cud.v4;
|
||||
package org.apache.olingo.client.api.communication.request.cud;
|
||||
|
||||
import org.apache.olingo.client.api.communication.request.ODataBasicRequest;
|
||||
import org.apache.olingo.client.api.communication.request.ODataBatchableRequest;
|
||||
import org.apache.olingo.client.api.communication.response.v4.ODataReferenceAddingResponse;
|
||||
import org.apache.olingo.client.api.communication.response.ODataReferenceAddingResponse;
|
||||
|
||||
/**
|
||||
* This class implements an OData reference adding request.
|
|
@ -16,9 +16,8 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.olingo.client.api.communication.request.cud.v4;
|
||||
package org.apache.olingo.client.api.communication.request.cud;
|
||||
|
||||
import org.apache.olingo.client.api.communication.request.cud.CommonUpdateType;
|
||||
import org.apache.olingo.commons.api.http.HttpMethod;
|
||||
|
||||
/**
|
|
@ -16,9 +16,8 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.olingo.client.api.communication.request.retrieve.v4;
|
||||
package org.apache.olingo.client.api.communication.request.retrieve;
|
||||
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.ODataRetrieveRequest;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataDelta;
|
||||
|
||||
/**
|
|
@ -16,15 +16,10 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.olingo.client.api.communication.request.retrieve.v4;
|
||||
package org.apache.olingo.client.api.communication.request.retrieve;
|
||||
|
||||
import java.net.URI;
|
||||
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.CommonRetrieveRequestFactory;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.ODataEntityRequest;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.ODataEntitySetIteratorRequest;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.ODataEntitySetRequest;
|
||||
import org.apache.olingo.client.api.communication.request.retrieve.ODataPropertyRequest;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataEntity;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataEntitySet;
|
||||
import org.apache.olingo.commons.api.domain.v4.ODataProperty;
|
|
@ -16,9 +16,8 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.olingo.client.api.communication.response.v4;
|
||||
package org.apache.olingo.client.api.communication.response;
|
||||
|
||||
import org.apache.olingo.client.api.communication.response.ODataResponse;
|
||||
|
||||
public interface AsyncResponse extends ODataResponse {
|
||||
}
|
|
@ -16,13 +16,10 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.olingo.client.api.communication.response.v4;
|
||||
package org.apache.olingo.client.api.communication.response;
|
||||
|
||||
import java.net.URI;
|
||||
|
||||
import org.apache.olingo.client.api.communication.response.ODataDeleteResponse;
|
||||
import org.apache.olingo.client.api.communication.response.ODataResponse;
|
||||
|
||||
public interface AsyncResponseWrapper<R extends ODataResponse> {
|
||||
|
||||
/**
|
|
@ -16,9 +16,8 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.olingo.client.api.communication.response.v4;
|
||||
package org.apache.olingo.client.api.communication.response;
|
||||
|
||||
import org.apache.olingo.client.api.communication.response.ODataResponse;
|
||||
|
||||
/**
|
||||
* This class implements the response to an OData Reference Adding request.
|
||||
|
@ -26,7 +25,7 @@ import org.apache.olingo.client.api.communication.response.ODataResponse;
|
|||
* If the request was successful, the service response has status code 204 and
|
||||
* the body has to be empty.
|
||||
*
|
||||
* @see org.apache.olingo.api.request.cud.v4.ODataReferenceAddingRequest
|
||||
* @see org.apache.olingo.client.api.communication.request.cud.api.request.cud.v4.ODataReferenceAddingRequest
|
||||
*/
|
||||
public interface ODataReferenceAddingResponse extends ODataResponse {
|
||||
}
|
|
@ -16,12 +16,10 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.olingo.client.api.edm.xml.v4;
|
||||
package org.apache.olingo.client.api.edm.xml;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.olingo.client.api.edm.xml.Named;
|
||||
|
||||
public interface Action extends Named, Annotatable {
|
||||
|
||||
boolean isBound();
|
|
@ -16,7 +16,8 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.olingo.client.api.edm.xml.v4;
|
||||
package org.apache.olingo.client.api.edm.xml;
|
||||
|
||||
|
||||
public interface ActionImport extends OperationImport {
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.olingo.client.api.edm.xml.v4;
|
||||
package org.apache.olingo.client.api.edm.xml;
|
||||
|
||||
import java.util.List;
|
||||
|
|
@ -16,9 +16,9 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.olingo.client.api.edm.xml.v4;
|
||||
package org.apache.olingo.client.api.edm.xml;
|
||||
|
||||
import org.apache.olingo.client.api.edm.xml.v4.annotation.AnnotationExpression;
|
||||
import org.apache.olingo.client.api.edm.xml.annotation.AnnotationExpression;
|
||||
|
||||
public interface Annotation extends Annotatable {
|
||||
|
|
@ -16,9 +16,8 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.olingo.client.api.edm.xml.v4;
|
||||
package org.apache.olingo.client.api.edm.xml;
|
||||
|
||||
import org.apache.olingo.client.api.edm.xml.CommonAnnotations;
|
||||
|
||||
public interface Annotations extends CommonAnnotations, Annotatable {
|
||||
|
|
@ -16,12 +16,10 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.olingo.client.api.edm.xml.v4;
|
||||
package org.apache.olingo.client.api.edm.xml;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.olingo.client.api.edm.xml.Named;
|
||||
|
||||
public interface BindingTarget extends Named, Annotatable {
|
||||
|
||||
List<? extends NavigationPropertyBinding> getNavigationPropertyBindings();
|
|
@ -20,13 +20,19 @@ package org.apache.olingo.client.api.edm.xml;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
public interface ComplexType extends Named {
|
||||
public interface ComplexType extends Named, Annotatable {
|
||||
|
||||
CommonProperty getProperty(String name);
|
||||
boolean isAbstractEntityType();
|
||||
|
||||
List<? extends CommonProperty> getProperties();
|
||||
String getBaseType();
|
||||
|
||||
CommonNavigationProperty getNavigationProperty(String name);
|
||||
boolean isOpenType();
|
||||
|
||||
List<? extends CommonNavigationProperty> getNavigationProperties();
|
||||
Property getProperty(String name);
|
||||
|
||||
List<Property> getProperties();
|
||||
|
||||
NavigationProperty getNavigationProperty(String name);
|
||||
|
||||
List<NavigationProperty> getNavigationProperties();
|
||||
}
|
||||
|
|
|
@ -26,5 +26,5 @@ public interface DataServices {
|
|||
|
||||
String getMaxDataServiceVersion();
|
||||
|
||||
List<? extends Schema> getSchemas();
|
||||
List<Schema> getSchemas();
|
||||
}
|
||||
|
|
|
@ -1,26 +1,30 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.olingo.client.api.edm.xml;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface Edmx {
|
||||
|
||||
String getVersion();
|
||||
|
||||
DataServices getDataServices();
|
||||
|
||||
List<Reference> getReferences();
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ package org.apache.olingo.client.api.edm.xml;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
public interface EntityContainer extends Named {
|
||||
public interface EntityContainer extends Named, Annotatable {
|
||||
|
||||
String getExtends();
|
||||
|
||||
|
@ -30,11 +30,21 @@ public interface EntityContainer extends Named {
|
|||
|
||||
EntitySet getEntitySet(String name);
|
||||
|
||||
List<? extends EntitySet> getEntitySets();
|
||||
List<EntitySet> getEntitySets();
|
||||
|
||||
CommonFunctionImport getFunctionImport(String name);
|
||||
List<Singleton> getSingletons();
|
||||
|
||||
List<? extends CommonFunctionImport> getFunctionImports(String name);
|
||||
Singleton getSingleton(String name);
|
||||
|
||||
List<? extends CommonFunctionImport> getFunctionImports();
|
||||
ActionImport getActionImport(String name);
|
||||
|
||||
List<ActionImport> getActionImports(String name);
|
||||
|
||||
List<ActionImport> getActionImports();
|
||||
|
||||
FunctionImport getFunctionImport(String name);
|
||||
|
||||
List<FunctionImport> getFunctionImports(String name);
|
||||
|
||||
List<FunctionImport> getFunctionImports();
|
||||
}
|
||||
|
|
|
@ -18,8 +18,10 @@
|
|||
*/
|
||||
package org.apache.olingo.client.api.edm.xml;
|
||||
|
||||
public interface EntitySet extends Named {
|
||||
public interface EntitySet extends Named, BindingTarget {
|
||||
|
||||
String getEntityType();
|
||||
|
||||
boolean isIncludeInServiceDocument();
|
||||
|
||||
}
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.olingo.client.api.edm.xml.v4;
|
||||
package org.apache.olingo.client.api.edm.xml;
|
||||
|
||||
|
||||
public interface Function extends Action {
|
||||
|
|
@ -16,9 +16,8 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.olingo.client.api.edm.xml.v4;
|
||||
package org.apache.olingo.client.api.edm.xml;
|
||||
|
||||
import org.apache.olingo.client.api.edm.xml.CommonFunctionImport;
|
||||
|
||||
public interface FunctionImport extends OperationImport, CommonFunctionImport {
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.olingo.client.api.edm.xml.v4;
|
||||
package org.apache.olingo.client.api.edm.xml;
|
||||
|
||||
public interface Include {
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.olingo.client.api.edm.xml.v4;
|
||||
package org.apache.olingo.client.api.edm.xml;
|
||||
|
||||
public interface IncludeAnnotations {
|
||||
|
|
@ -16,13 +16,10 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.olingo.client.api.edm.xml.v4;
|
||||
package org.apache.olingo.client.api.edm.xml;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.olingo.client.api.edm.xml.CommonNavigationProperty;
|
||||
import org.apache.olingo.client.api.edm.xml.OnDelete;
|
||||
|
||||
public interface NavigationProperty extends CommonNavigationProperty, Annotatable {
|
||||
|
||||
String getType();
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.olingo.client.api.edm.xml.v4;
|
||||
package org.apache.olingo.client.api.edm.xml;
|
||||
|
||||
public interface NavigationPropertyBinding {
|
||||
|
|
@ -16,9 +16,8 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.olingo.client.api.edm.xml.v4;
|
||||
package org.apache.olingo.client.api.edm.xml;
|
||||
|
||||
import org.apache.olingo.client.api.edm.xml.Named;
|
||||
|
||||
public interface OperationImport extends Named, Annotatable {
|
||||
|
|
@ -16,9 +16,8 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.olingo.client.api.edm.xml.v4;
|
||||
package org.apache.olingo.client.api.edm.xml;
|
||||
|
||||
import org.apache.olingo.client.api.edm.xml.CommonParameter;
|
||||
import org.apache.olingo.commons.api.edm.geo.SRID;
|
||||
|
||||
public interface Parameter extends CommonParameter, Annotatable {
|
|
@ -16,9 +16,8 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.olingo.client.api.edm.xml.v4;
|
||||
package org.apache.olingo.client.api.edm.xml;
|
||||
|
||||
import org.apache.olingo.client.api.edm.xml.CommonProperty;
|
||||
|
||||
public interface Property extends CommonProperty, Annotatable {
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.olingo.client.api.edm.xml.v4;
|
||||
package org.apache.olingo.client.api.edm.xml;
|
||||
|
||||
import java.net.URI;
|
||||
import java.util.List;
|
|
@ -16,7 +16,8 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.olingo.client.api.edm.xml.v4;
|
||||
package org.apache.olingo.client.api.edm.xml;
|
||||
|
||||
|
||||
public interface ReferentialConstraint extends Annotatable {
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.olingo.client.api.edm.xml.v4;
|
||||
package org.apache.olingo.client.api.edm.xml;
|
||||
|
||||
import org.apache.olingo.commons.api.edm.geo.SRID;
|
||||
|
|
@ -19,6 +19,7 @@
|
|||
package org.apache.olingo.client.api.edm.xml;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface Schema {
|
||||
|
||||
|
@ -26,20 +27,10 @@ public interface Schema {
|
|||
|
||||
String getAlias();
|
||||
|
||||
List<? extends EntityType> getEntityTypes();
|
||||
|
||||
List<EnumType> getEnumTypes();
|
||||
|
||||
EnumType getEnumType(String name);
|
||||
|
||||
List<? extends CommonAnnotations> getAnnotationGroups();
|
||||
|
||||
CommonAnnotations getAnnotationGroup(String target);
|
||||
|
||||
List<? extends ComplexType> getComplexTypes();
|
||||
|
||||
List<? extends EntityContainer> getEntityContainers();
|
||||
|
||||
/**
|
||||
* Gets default entity container.
|
||||
*
|
||||
|
@ -55,20 +46,44 @@ public interface Schema {
|
|||
*/
|
||||
EntityContainer getEntityContainer(String name);
|
||||
|
||||
/**
|
||||
* Gets entity type with the given name.
|
||||
*
|
||||
* @param name name.
|
||||
* @return entity type.
|
||||
*/
|
||||
EntityType getEntityType(String name);
|
||||
List<EntityContainer> getEntityContainers();
|
||||
|
||||
EntityContainer getEntityContainer();
|
||||
|
||||
/**
|
||||
* Gets complex type with the given name.
|
||||
*
|
||||
* @param name name.
|
||||
* @return complex type.
|
||||
*/
|
||||
ComplexType getComplexType(String name);
|
||||
|
||||
List<ComplexType> getComplexTypes();
|
||||
|
||||
EntityType getEntityType(String name);
|
||||
|
||||
List<EntityType> getEntityTypes();
|
||||
|
||||
List<Action> getActions();
|
||||
|
||||
List<Action> getActions(String name);
|
||||
|
||||
Annotation getAnnotation(String term);
|
||||
|
||||
Map<String, Annotatable> getAnnotatables();
|
||||
|
||||
List<Function> getFunctions();
|
||||
|
||||
List<Function> getFunctions(String name);
|
||||
|
||||
Term getTerm(String name);
|
||||
|
||||
List<Term> getTerms();
|
||||
|
||||
TypeDefinition getTypeDefinition(String name);
|
||||
|
||||
List<TypeDefinition> getTypeDefinitions();
|
||||
|
||||
List<Annotations> getAnnotationGroups();
|
||||
|
||||
Annotations getAnnotationGroup(String target);
|
||||
|
||||
|
||||
//TODO: Check if there are annotations in V4
|
||||
List<Annotation> getAnnotations();
|
||||
|
||||
}
|
||||
|
|
|
@ -16,9 +16,8 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.olingo.client.api.edm.xml.v4;
|
||||
package org.apache.olingo.client.api.edm.xml;
|
||||
|
||||
import org.apache.olingo.client.api.edm.xml.EntitySet;
|
||||
|
||||
public interface Singleton extends EntitySet, BindingTarget {
|
||||
|
|
@ -16,11 +16,10 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.olingo.client.api.edm.xml.v4;
|
||||
package org.apache.olingo.client.api.edm.xml;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.olingo.client.api.edm.xml.Named;
|
||||
import org.apache.olingo.commons.api.edm.geo.SRID;
|
||||
|
||||
public interface Term extends Named, Annotatable {
|
|
@ -16,11 +16,10 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.olingo.client.api.edm.xml.v4;
|
||||
package org.apache.olingo.client.api.edm.xml;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.olingo.client.api.edm.xml.Named;
|
||||
import org.apache.olingo.commons.api.edm.geo.SRID;
|
||||
|
||||
public interface TypeDefinition extends Named, Annotatable {
|
|
@ -47,7 +47,9 @@ public interface XMLMetadata {
|
|||
*
|
||||
* @return all Schema objects defined in the EdM metadata document
|
||||
*/
|
||||
List<? extends Schema> getSchemas();
|
||||
List<Schema> getSchemas();
|
||||
|
||||
Map<String, Schema> getSchemaByNsOrAlias();
|
||||
|
||||
List<Reference> getReferences();
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.olingo.client.api.edm.xml.v4.annotation;
|
||||
package org.apache.olingo.client.api.edm.xml.annotation;
|
||||
|
||||
public interface AnnotationExpression {
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.olingo.client.api.edm.xml.v4.annotation;
|
||||
package org.apache.olingo.client.api.edm.xml.annotation;
|
||||
|
||||
public interface AnnotationPath extends DynamicAnnotationExpression {
|
||||
|
|
@ -16,11 +16,11 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.apache.olingo.client.api.edm.xml.v4.annotation;
|
||||
package org.apache.olingo.client.api.edm.xml.annotation;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.olingo.client.api.edm.xml.v4.Annotatable;
|
||||
import org.apache.olingo.client.api.edm.xml.Annotatable;
|
||||
|
||||
public interface Apply extends DynamicAnnotationExpression, Annotatable {
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue