You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@olingo.apache.org by ch...@apache.org on 2015/09/08 13:31:50 UTC

svn commit: r1701777 - /olingo/site/trunk/content/doc/odata4/tutorials/read/tutorial_read.mdtext

Author: chrish
Date: Tue Sep  8 11:31:50 2015
New Revision: 1701777

URL: http://svn.apache.org/r1701777
Log:
CMS commit to olingo by chrish

Modified:
    olingo/site/trunk/content/doc/odata4/tutorials/read/tutorial_read.mdtext

Modified: olingo/site/trunk/content/doc/odata4/tutorials/read/tutorial_read.mdtext
URL: http://svn.apache.org/viewvc/olingo/site/trunk/content/doc/odata4/tutorials/read/tutorial_read.mdtext?rev=1701777&r1=1701776&r2=1701777&view=diff
==============================================================================
--- olingo/site/trunk/content/doc/odata4/tutorials/read/tutorial_read.mdtext (original)
+++ olingo/site/trunk/content/doc/odata4/tutorials/read/tutorial_read.mdtext Tue Sep  8 11:31:50 2015
@@ -398,7 +398,7 @@ Which of the properties is the “key
 
 
     :::java
-    public CsdlEntityType getEntityType(FullQualifiedName entityTypeName) throws ODataException {
+    public CsdlEntityType getEntityType(FullQualifiedName entityTypeName) {
 
       // this method is called for one of the EntityTypes that are configured in the Schema
       if(entityTypeName.equals(ET_PRODUCT_FQN)){
@@ -462,7 +462,7 @@ In our example, we have only one _Entity
 
 
     :::java
-    public CsdlEntityContainer getEntityContainer() throws ODataException {
+    public CsdlEntityContainer getEntityContainer() {
 
       // create EntitySets
       List<CsdlEntitySet> entitySets = new ArrayList<CsdlEntitySet>();
@@ -488,7 +488,7 @@ Then our elements are added to the Schem
 
 
     :::java
-    public List<CsdlSchema> getSchemas() throws ODataException {
+    public List<CsdlSchema> getSchemas() {
 
       // create Schema
       CsdlSchema schema = new CsdlSchema();
@@ -514,7 +514,7 @@ Then our elements are added to the Schem
 
 
     :::java
-    public CsdlEntityContainerInfo getEntityContainerInfo(FullQualifiedName entityContainerName) throws ODataException {
+    public CsdlEntityContainerInfo getEntityContainerInfo(FullQualifiedName entityContainerName) {
 
         // This method is invoked when displaying the Service Document at e.g. http://localhost:8080/DemoService/DemoService.svc
         if (entityContainerName == null || entityContainerName.equals(CONTAINER)) {
@@ -745,7 +745,6 @@ The steps for implementating the method
 
       // 3rd: create a serializer based on the requested format (json)
       ODataFormat format = ODataFormat.fromContentType(responseFormat);
-      ODataSerializer serializer = odata.createSerializer(format);
 
       // 4th: Now serialize the content: transform from the EntitySet object to InputStream
       EdmEntityType edmEntityType = edmEntitySet.getEntityType();