cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ntimof...@apache.org
Subject cayenne-website git commit: Minor commit-log module docs update
Date Wed, 07 Feb 2018 13:56:01 GMT
Repository: cayenne-website
Updated Branches:
  refs/heads/asf-site c7255d565 -> fa83fd279


Minor commit-log module docs update


Project: http://git-wip-us.apache.org/repos/asf/cayenne-website/repo
Commit: http://git-wip-us.apache.org/repos/asf/cayenne-website/commit/fa83fd27
Tree: http://git-wip-us.apache.org/repos/asf/cayenne-website/tree/fa83fd27
Diff: http://git-wip-us.apache.org/repos/asf/cayenne-website/diff/fa83fd27

Branch: refs/heads/asf-site
Commit: fa83fd279e0e0fdc416fc586ed8c1f483ae5066f
Parents: c7255d5
Author: Nikita Timofeev <stariy95@gmail.com>
Authored: Wed Feb 7 16:55:58 2018 +0300
Committer: Nikita Timofeev <stariy95@gmail.com>
Committed: Wed Feb 7 16:55:58 2018 +0300

----------------------------------------------------------------------
 docs/4.0/cayenne-guide/index.html | 54 +++++++++++++++++++---------------
 docs/4.1/cayenne-guide/index.html | 54 +++++++++++++++++++---------------
 2 files changed, 62 insertions(+), 46 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cayenne-website/blob/fa83fd27/docs/4.0/cayenne-guide/index.html
----------------------------------------------------------------------
diff --git a/docs/4.0/cayenne-guide/index.html b/docs/4.0/cayenne-guide/index.html
index 7218732..4eabde6 100644
--- a/docs/4.0/cayenne-guide/index.html
+++ b/docs/4.0/cayenne-guide/index.html
@@ -5019,23 +5019,21 @@ public class MyEntity extends _MyEntity {
     <div class="paragraph"> 
      <p>In order to use <code>commitlog</code> module you need to perform
three steps:</p> 
     </div> 
-    <div class="paragraph"> 
-     <p>1) Mark all entities which changes you are interested in with <code>@org.apache.cayenne.commitlog.CommitLog</code>
annotation</p> 
-    </div> 
-    <div class="listingblock"> 
-     <div class="content"> 
-      <pre class="highlight"><code class="language-Java Java" data-lang="Java">@CommitLog(ignoredProperties
= {"somePrivatePropertyToSkip"})
+    <div class="olist arabic"> 
+     <ol class="arabic"> 
+      <li> <p>Mark all entities which changes you are interested in with <code>@org.apache.cayenne.commitlog.CommitLog</code>
annotation</p> 
+       <div class="listingblock"> 
+        <div class="content"> 
+         <pre class="highlight"><code class="language-Java Java" data-lang="Java">@CommitLog(ignoredProperties
= {"somePrivatePropertyToSkip"})
 public class MyEntity extends _MyEntity {
     // ...
 }</code></pre> 
-     </div> 
-    </div> 
-    <div class="paragraph"> 
-     <p>2) Implement <code>CommitLogListener</code> interface.</p>

-    </div> 
-    <div class="listingblock"> 
-     <div class="content"> 
-      <pre class="highlight"><code class="language-java java" data-lang="java">
CommitLogListener {
+        </div> 
+       </div> </li> 
+      <li> <p>Implement <code>CommitLogListener</code> interface.</p>

+       <div class="listingblock"> 
+        <div class="content"> 
+         <pre class="highlight"><code class="language-java java" data-lang="java">public
class MyCommitLogListener implements CommitLogListener {
     @Override
     public void onPostCommit(ObjectContext originatingContext, ChangeMap changes) {
         // ChangeMap will contain all information about changes happened in performed commit
@@ -5046,18 +5044,28 @@ public class MyEntity extends _MyEntity {
             .forEach(id -&gt; System.out.println("Inserted new entity with id: " + id));
     }
 }</code></pre> 
-     </div> 
-    </div> 
-    <div class="paragraph"> 
-     <p>3) Inject your listener into <code>ServerRuntime</code></p>

-    </div> 
-    <div class="listingblock"> 
-     <div class="content"> 
-      <pre class="highlight"><code class="language-java java" data-lang="java">ServerRuntime.builder()
+        </div> 
+       </div> </li> 
+      <li> <p>Register your listener implementation.</p> 
+       <div class="listingblock"> 
+        <div class="content"> 
+         <pre class="highlight"><code class="language-java java" data-lang="java">ServerRuntime.builder()
         .addModule(CommitLogModule.extend()
                 .addListener(MyCommitLogListener.class)
                 .module())</code></pre> 
-     </div> 
+        </div> 
+       </div> 
+       <div class="admonitionblock note"> 
+        <table> 
+         <tbody>
+          <tr> 
+           <td class="icon"> <i class="fa fa-info-circle fa-2x" title="Note"></i>
</td> 
+           <td class="content"> You can use several listeners, but they all will get
same changes. </td> 
+          </tr> 
+         </tbody>
+        </table> 
+       </div> </li> 
+     </ol> 
     </div> 
    </div> 
   </div> 

http://git-wip-us.apache.org/repos/asf/cayenne-website/blob/fa83fd27/docs/4.1/cayenne-guide/index.html
----------------------------------------------------------------------
diff --git a/docs/4.1/cayenne-guide/index.html b/docs/4.1/cayenne-guide/index.html
index 38f5f36..cd652af 100644
--- a/docs/4.1/cayenne-guide/index.html
+++ b/docs/4.1/cayenne-guide/index.html
@@ -5004,23 +5004,21 @@ public class MyEntity extends _MyEntity {
     <div class="paragraph"> 
      <p>In order to use <code>commitlog</code> module you need to perform
three steps:</p> 
     </div> 
-    <div class="paragraph"> 
-     <p>1) Mark all entities which changes you are interested in with <code>@org.apache.cayenne.commitlog.CommitLog</code>
annotation</p> 
-    </div> 
-    <div class="listingblock"> 
-     <div class="content"> 
-      <pre class="highlight"><code class="language-Java Java" data-lang="Java">@CommitLog(ignoredProperties
= {"somePrivatePropertyToSkip"})
+    <div class="olist arabic"> 
+     <ol class="arabic"> 
+      <li> <p>Mark all entities which changes you are interested in with <code>@org.apache.cayenne.commitlog.CommitLog</code>
annotation</p> 
+       <div class="listingblock"> 
+        <div class="content"> 
+         <pre class="highlight"><code class="language-Java Java" data-lang="Java">@CommitLog(ignoredProperties
= {"somePrivatePropertyToSkip"})
 public class MyEntity extends _MyEntity {
     // ...
 }</code></pre> 
-     </div> 
-    </div> 
-    <div class="paragraph"> 
-     <p>2) Implement <code>CommitLogListener</code> interface.</p>

-    </div> 
-    <div class="listingblock"> 
-     <div class="content"> 
-      <pre class="highlight"><code class="language-java java" data-lang="java">
CommitLogListener {
+        </div> 
+       </div> </li> 
+      <li> <p>Implement <code>CommitLogListener</code> interface.</p>

+       <div class="listingblock"> 
+        <div class="content"> 
+         <pre class="highlight"><code class="language-java java" data-lang="java">public
class MyCommitLogListener implements CommitLogListener {
     @Override
     public void onPostCommit(ObjectContext originatingContext, ChangeMap changes) {
         // ChangeMap will contain all information about changes happened in performed commit
@@ -5031,18 +5029,28 @@ public class MyEntity extends _MyEntity {
             .forEach(id -&gt; System.out.println("Inserted new entity with id: " + id));
     }
 }</code></pre> 
-     </div> 
-    </div> 
-    <div class="paragraph"> 
-     <p>3) Inject your listener into <code>ServerRuntime</code></p>

-    </div> 
-    <div class="listingblock"> 
-     <div class="content"> 
-      <pre class="highlight"><code class="language-java java" data-lang="java">ServerRuntime.builder()
+        </div> 
+       </div> </li> 
+      <li> <p>Register your listener implementation.</p> 
+       <div class="listingblock"> 
+        <div class="content"> 
+         <pre class="highlight"><code class="language-java java" data-lang="java">ServerRuntime.builder()
         .addModule(CommitLogModule.extend()
                 .addListener(MyCommitLogListener.class)
                 .module())</code></pre> 
-     </div> 
+        </div> 
+       </div> 
+       <div class="admonitionblock note"> 
+        <table> 
+         <tbody>
+          <tr> 
+           <td class="icon"> <i class="fa fa-info-circle fa-2x" title="Note"></i>
</td> 
+           <td class="content"> You can use several listeners, but they all will get
same changes. </td> 
+          </tr> 
+         </tbody>
+        </table> 
+       </div> </li> 
+     </ol> 
     </div> 
    </div> 
   </div> 


Mime
View raw message