You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@olingo.apache.org by sk...@apache.org on 2013/12/10 09:27:45 UTC
svn commit: r1549783 -
/incubator/olingo/site/trunk/content/doc/tutorials/basicread.mdtext
Author: sklevenz
Date: Tue Dec 10 08:27:45 2013
New Revision: 1549783
URL: http://svn.apache.org/r1549783
Log:
CMS commit to olingo by sklevenz
Modified:
incubator/olingo/site/trunk/content/doc/tutorials/basicread.mdtext
Modified: incubator/olingo/site/trunk/content/doc/tutorials/basicread.mdtext
URL: http://svn.apache.org/viewvc/incubator/olingo/site/trunk/content/doc/tutorials/basicread.mdtext?rev=1549783&r1=1549782&r2=1549783&view=diff
==============================================================================
--- incubator/olingo/site/trunk/content/doc/tutorials/basicread.mdtext (original)
+++ incubator/olingo/site/trunk/content/doc/tutorials/basicread.mdtext Tue Dec 10 08:27:45 2013
@@ -37,10 +37,8 @@ The implementation of the Data Provider
As a shortcut you can download the [Olingo Tutorial 'Basic-Read' Project](apache-olingo-tutorial-basic_read.zip).
### Deployment Descriptor
- - The sample-web project contains a Deployment Descriptor. Create the `web.xml` file in the `$ODATA_PROJECT_HOME\olingo.odata2.sample.cars.web` project by generating a Deployment Descriptor Stub. Replace the xml in the stub with the following deployment descriptor xml.
##### Sample Code
-
:::xml
<?xml version="1.0" encoding="UTF-8"?>
@@ -144,7 +142,7 @@ In this paragraph you will implement the
private static final String ASSOCIATION_SET = "Cars_Manufacturers";
-- Implement `MyEdmProvider.getSchemas`. This method is used to retrieve the complete structural information on order to build the `$metadata` file and the service document. The implementation makes use of other getter of this class for simplicity reasons. If a very performant way of building the whole structural information was required, other implementation strategies could be used.
+- Implement `MyEdmProvider.getSchemas`. This method is used to retrieve the complete structural information in order to build the metadata document and the service document. The implementation makes use of other getter methods of this class for simplicity reasons. If a very performant way of building the whole structural information was required, other implementation strategies could be used.
##### Sample Code
@@ -188,7 +186,8 @@ In this paragraph you will implement the
return schemas;
}
-- `MyEdmProvider.getEntityType(FullQualifiedName edmFQName)`. Returning an Entity Type according to the full qualified name specified. The Entity Type holds all information about its structure like simple properties, complex properties, navigation properties and the definition of its key property (or properties).
+
+- `MyEdmProvider.getEntityType(FullQualifiedName edmFQName)` returns an Entity Type according to the full qualified name specified. The Entity Type holds all information about its structure like simple properties, complex properties, navigation properties and the definition of its key property (or properties).
##### Sample Code
@@ -358,10 +357,10 @@ In this paragraph you will implement the
After the implementation of the Edm Provider the web application can be executed to show the Service Document and the Metadata Document.
-- Build your project. Remember? `mvn clean install`
-- Deploy the Web Application to the server*
- - Show the Service Document: [http://localhost:8080/olingo.odata2.sample.cars.web/MyODataSample.svc/](http://localhost:8080/olingo.odata2.sample.cars.web/MyODataSample.svc/)
- - Show the Metadata Document: [http://localhost:8080/olingo.odata2.sample.cars.web/MyODataSample.svc/$metadata](http://localhost:8080/olingo.odata2.sample.cars.web/MyODataSample.svc/$metadata)
+- Build your project `mvn clean install`
+- Deploy the Web Application to the server.
+ - Show the Service Document: http://localhost:8080/olingo.odata2.sample.cars.web/MyODataSample.svc/
+ - Show the Metadata Document: http://localhost:8080/olingo.odata2.sample.cars.web/MyODataSample.svc/$metadata
### Implement the OData Processor which provides the runtime data
@@ -627,7 +626,7 @@ You already created the `MyODataSinglePr
throw new ODataNotImplementedException();
}
-And add the small method to get the key value of a `KeyPredicate (OO/DRY-principle)`:
+And add the small method to get the key value of a `KeyPredicate`:
private int getKeyValue(KeyPredicate key) throws ODataException {
EdmProperty property = key.getProperty();