[OLINGO-530] Javadoc and cleanup unused imports
This commit is contained in:
parent
1c735e89b3
commit
0aad7c037c
|
@ -301,7 +301,7 @@ public class BatchTestITCase extends AbstractTestITCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||||
public void batchRequest() throws EdmPrimitiveTypeException {
|
public void batchRequest() throws EdmPrimitiveTypeException {
|
||||||
// create your request
|
// create your request
|
||||||
final ODataBatchRequest request = client.getBatchRequestFactory().getBatchRequest(testStaticServiceRootURL);
|
final ODataBatchRequest request = client.getBatchRequestFactory().getBatchRequest(testStaticServiceRootURL);
|
||||||
|
|
|
@ -390,7 +390,7 @@ public class BatchTestITCase extends AbstractTestITCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@SuppressWarnings({"unchecked"})
|
@SuppressWarnings({"unchecked", "rawtypes"})
|
||||||
public void batchRequest() throws EdmPrimitiveTypeException {
|
public void batchRequest() throws EdmPrimitiveTypeException {
|
||||||
// create your request
|
// create your request
|
||||||
final ODataBatchRequest request = client.getBatchRequestFactory().getBatchRequest(testStaticServiceRootURL);
|
final ODataBatchRequest request = client.getBatchRequestFactory().getBatchRequest(testStaticServiceRootURL);
|
||||||
|
|
|
@ -24,10 +24,27 @@ import org.apache.olingo.commons.api.data.Entity;
|
||||||
import org.apache.olingo.commons.api.data.EntitySet;
|
import org.apache.olingo.commons.api.data.EntitySet;
|
||||||
import org.apache.olingo.commons.api.edm.EdmEntityType;
|
import org.apache.olingo.commons.api.edm.EdmEntityType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deserializer on OData server side.
|
||||||
|
*/
|
||||||
public interface ODataDeserializer {
|
public interface ODataDeserializer {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deserializes an entity stream into an {@link Entity} object.
|
||||||
|
* @param stream
|
||||||
|
* @param edmEntityType
|
||||||
|
* @return deserialized {@link Entity} object
|
||||||
|
* @throws DeserializerException
|
||||||
|
*/
|
||||||
Entity entity(InputStream stream, EdmEntityType edmEntityType) throws DeserializerException;
|
Entity entity(InputStream stream, EdmEntityType edmEntityType) throws DeserializerException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deserializes an entity collection stream into an {@link EntitySet} object.
|
||||||
|
* @param stream
|
||||||
|
* @param edmEntityType
|
||||||
|
* @return deserialized {@link EntitySet} object
|
||||||
|
* @throws DeserializerException
|
||||||
|
*/
|
||||||
EntitySet entityCollection(InputStream stream, EdmEntityType edmEntityType) throws DeserializerException;
|
EntitySet entityCollection(InputStream stream, EdmEntityType edmEntityType) throws DeserializerException;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue