You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@olingo.apache.org by de...@apache.org on 2014/07/01 10:00:40 UTC

svn commit: r1607005 - /olingo/site/trunk/content/doc/tutorials/HandlingClobAndBlob.mdtext

Author: deepa
Date: Tue Jul  1 08:00:39 2014
New Revision: 1607005

URL: http://svn.apache.org/r1607005
Log:
CMS commit to olingo by deepa

Modified:
    olingo/site/trunk/content/doc/tutorials/HandlingClobAndBlob.mdtext

Modified: olingo/site/trunk/content/doc/tutorials/HandlingClobAndBlob.mdtext
URL: http://svn.apache.org/viewvc/olingo/site/trunk/content/doc/tutorials/HandlingClobAndBlob.mdtext?rev=1607005&r1=1607004&r2=1607005&view=diff
==============================================================================
--- olingo/site/trunk/content/doc/tutorials/HandlingClobAndBlob.mdtext (original)
+++ olingo/site/trunk/content/doc/tutorials/HandlingClobAndBlob.mdtext Tue Jul  1 08:00:39 2014
@@ -18,34 +18,32 @@ Notice:    Licensed to the Apache Softwa
 
 ## Handling BLOB and CLOB Data Types
 
-JPA entities can have properties that are of type java.sql.Blob or java.sql.Clob. Internally, JPA entities can instantiate a JPA provider (Eclipse Link or Hibernate or ...) specific implementation 
-
+JPA entities can have properties that are of type `java.sql.Blob` or `java.sql.Clob`. Internally, JPA entities can instantiate a JPA provider (Eclipse Link or Hibernate or ...) specific implementation
 of the above two interfaces and bind them to the properties. To enable write on such properties using OData JPA Processor Library, an additional access modifier is required to be added to the JPA 
-
-entities. Following is the proposal on how OData JPA Processor Library handles java.sql.Blob and java.sql.Clob during metadata generation and runtime processing. 
+entities. Following is the proposal on how OData JPA Processor Library handles 'java.sql.Blob' and 'java.sql.Clob' during metadata generation and runtime processing. 
 
 ### EDM Generation
 
 Based on the JPA entity property type, the pseudocode for generating the EDM is as below.
 
-**For java.sql.Blob**:
+**For `java.sql.Blob`**:
 
 1. Check if JPA entity property is of type byte[] or of type java.sql.Blob and annotated with @Lob annotation. 
 2. If Step 1 is true, then generate an EDM property with type as Edm.Binary
 
-**For java.sql.Clob**:
+**For `java.sql.Clob`**:
 
-1. Check if JPA entity property is of type java.sql.Clob and annotated with @Lob annotation. 
-2. If Step 1 is true, then generate an EDM property with type as Edm.String (with no max length unless a max length is specified). 
+1. Check if JPA entity property is of type `java.sql.Clob` and annotated with @Lob annotation. 
+2. If Step 1 is true, then generate an EDM property with type as `Edm.String` (with no max length unless a max length is specified). 
 
 ### Runtime Processing
 
-**Prerequisite:**
+**Prerequisites:**
 
-1. It is mandatory to implement the callback interface org.apache.olingo.odata2.jpa.processor.api.OnJPAWriteContent.
-2. The implemented interface needs to be registered with the service via the method 'setOnJPAWriteContent' part of 'ODataJPAServiceFactory'. 
+1. It is mandatory to implement the callback interface `org.apache.olingo.odata2.jpa.processor.api.OnJPAWriteContent`.
+2. The implemented interface needs to be registered with the service via the method `setOnJPAWriteContent` part of `ODataJPAServiceFactory`. 
 
-Following is the pseudocode for handling the java.sql.Blob and java.sql.Clob during runtime.
+Following is the pseudocode for handling the `java.sql.Blob` and `java.sql.Clob` during runtime.
 
 		/* Callback Implementation */
 
@@ -96,11 +94,11 @@ Following is the pseudocode for handling
 
 OData JPA Processor Library internally does the following:
 
-1. Checks if the JPA entity property is of type java.sql.Blob or java.sql.Clob.
-2. If Step 1 is true, then it invokes the registered callback method 'getJPABlob' or 'getJPAClob' respectively.
+1. Checks if the JPA entity property is of type `java.sql.Blob` or `java.sql.Clob`.
+2. If Step 1 is true, then it invokes the registered callback method `getJPABlob` or `getJPAClob` respectively.
 3. If callback method is not defined, it throws an exception. 
 
-*Note*: Step 3 is needed because the OData JPA Processor Library is not bound to any specific implementation of Blob or Clob interface. 
+*Note*: Step 3 is needed because the OData JPA Processor Library is not bound to any specific implementation of BLOB or CLOB interface.