{"action":"created","comment":{"url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/pulls/comments/168287581","pull_request_review_id":96630795,"id":168287581,"diff_hunk":"@@ -11,32 +11,36 @@\n  *   Contributors:\n  *\n  *   Otavio Santana\n+ *   Lucas Furlaneto\n  */\n package org.jnosql.diana.orientdb.document;\n \n-\n import com.orientechnologies.common.exception.OException;\n import com.orientechnologies.orient.core.db.record.ORecordOperation;\n import com.orientechnologies.orient.core.record.impl.ODocument;\n import com.orientechnologies.orient.core.sql.query.OLiveResultListener;\n import org.jnosql.diana.api.document.DocumentEntity;\n \n-import java.util.function.Consumer;\n-\n class LiveQueryLIstener implements OLiveResultListener {\n \n-    private final Consumer<DocumentEntity> entityConsumer;\n+    private final OrientDBLiveCallback callbacks;\n \n-    LiveQueryLIstener(Consumer<DocumentEntity> entityConsumer) {\n-        this.entityConsumer = entityConsumer;\n+    LiveQueryLIstener(OrientDBLiveCallback callbacks) {\n+        this.callbacks = callbacks;\n     }\n \n     @Override\n     public void onLiveResult(int iLiveToken, ORecordOperation iOp) throws OException {\n         ODocument oDocument = (ODocument) iOp.getRecord();\n         DocumentEntity entity = OrientDBConverter.convert(oDocument);\n-        entityConsumer.accept(entity);\n \n+        if (callbacks.getCreateCallback() != null && ORecordOperation.CREATED == iOp.type) {","path":"orientdb-driver/src/main/java/org/jnosql/diana/orientdb/document/LiveQueryLIstener.java","position":null,"original_position":34,"commit_id":"ba5f9d5fcdb62cd746b6d0f5e10df20c24268db0","original_commit_id":"832ead81506b2b4682f85f677c3c6ead363039fe","user":{"login":"furlaneto","id":10299812,"avatar_url":"https://avatars0.githubusercontent.com/u/10299812?v=4","gravatar_id":"","url":"https://api.github.com/users/furlaneto","html_url":"https://github.com/furlaneto","followers_url":"https://api.github.com/users/furlaneto/followers","following_url":"https://api.github.com/users/furlaneto/following{/other_user}","gists_url":"https://api.github.com/users/furlaneto/gists{/gist_id}","starred_url":"https://api.github.com/users/furlaneto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/furlaneto/subscriptions","organizations_url":"https://api.github.com/users/furlaneto/orgs","repos_url":"https://api.github.com/users/furlaneto/repos","events_url":"https://api.github.com/users/furlaneto/events{/privacy}","received_events_url":"https://api.github.com/users/furlaneto/received_events","type":"User","site_admin":false},"body":"done","created_at":"2018-02-14T19:40:02Z","updated_at":"2018-02-14T19:40:02Z","html_url":"https://github.com/eclipse/jnosql-diana-driver/pull/77#discussion_r168287581","pull_request_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/pulls/77","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/eclipse/jnosql-diana-driver/pulls/comments/168287581"},"html":{"href":"https://github.com/eclipse/jnosql-diana-driver/pull/77#discussion_r168287581"},"pull_request":{"href":"https://api.github.com/repos/eclipse/jnosql-diana-driver/pulls/77"}},"in_reply_to_id":168277781},"pull_request":{"url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/pulls/77","id":169194400,"html_url":"https://github.com/eclipse/jnosql-diana-driver/pull/77","diff_url":"https://github.com/eclipse/jnosql-diana-driver/pull/77.diff","patch_url":"https://github.com/eclipse/jnosql-diana-driver/pull/77.patch","issue_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/issues/77","number":77,"state":"open","locked":false,"title":"Create Fallback for each operation on Live Query","user":{"login":"furlaneto","id":10299812,"avatar_url":"https://avatars0.githubusercontent.com/u/10299812?v=4","gravatar_id":"","url":"https://api.github.com/users/furlaneto","html_url":"https://github.com/furlaneto","followers_url":"https://api.github.com/users/furlaneto/followers","following_url":"https://api.github.com/users/furlaneto/following{/other_user}","gists_url":"https://api.github.com/users/furlaneto/gists{/gist_id}","starred_url":"https://api.github.com/users/furlaneto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/furlaneto/subscriptions","organizations_url":"https://api.github.com/users/furlaneto/orgs","repos_url":"https://api.github.com/users/furlaneto/repos","events_url":"https://api.github.com/users/furlaneto/events{/privacy}","received_events_url":"https://api.github.com/users/furlaneto/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-14T19:01:19Z","updated_at":"2018-02-14T19:40:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fa8ea3af48c9d2c9fd9e720c7b9b6b3b911aa4b0","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/pulls/77/commits","review_comments_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/pulls/77/comments","review_comment_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/issues/77/comments","statuses_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/statuses/ba5f9d5fcdb62cd746b6d0f5e10df20c24268db0","head":{"label":"eclipse:orientdb-improvements","ref":"orientdb-improvements","sha":"ba5f9d5fcdb62cd746b6d0f5e10df20c24268db0","user":{"login":"eclipse","id":56974,"avatar_url":"https://avatars1.githubusercontent.com/u/56974?v=4","gravatar_id":"","url":"https://api.github.com/users/eclipse","html_url":"https://github.com/eclipse","followers_url":"https://api.github.com/users/eclipse/followers","following_url":"https://api.github.com/users/eclipse/following{/other_user}","gists_url":"https://api.github.com/users/eclipse/gists{/gist_id}","starred_url":"https://api.github.com/users/eclipse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclipse/subscriptions","organizations_url":"https://api.github.com/users/eclipse/orgs","repos_url":"https://api.github.com/users/eclipse/repos","events_url":"https://api.github.com/users/eclipse/events{/privacy}","received_events_url":"https://api.github.com/users/eclipse/received_events","type":"Organization","site_admin":false},"repo":{"id":67461402,"name":"jnosql-diana-driver","full_name":"eclipse/jnosql-diana-driver","owner":{"login":"eclipse","id":56974,"avatar_url":"https://avatars1.githubusercontent.com/u/56974?v=4","gravatar_id":"","url":"https://api.github.com/users/eclipse","html_url":"https://github.com/eclipse","followers_url":"https://api.github.com/users/eclipse/followers","following_url":"https://api.github.com/users/eclipse/following{/other_user}","gists_url":"https://api.github.com/users/eclipse/gists{/gist_id}","starred_url":"https://api.github.com/users/eclipse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclipse/subscriptions","organizations_url":"https://api.github.com/users/eclipse/orgs","repos_url":"https://api.github.com/users/eclipse/repos","events_url":"https://api.github.com/users/eclipse/events{/privacy}","received_events_url":"https://api.github.com/users/eclipse/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eclipse/jnosql-diana-driver","description":"This project contains all implementations from Eclipse JNoSQL Diana-API","fork":false,"url":"https://api.github.com/repos/eclipse/jnosql-diana-driver","forks_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/forks","keys_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/teams","hooks_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/hooks","issue_events_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/issues/events{/number}","events_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/events","assignees_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/assignees{/user}","branches_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/branches{/branch}","tags_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/tags","blobs_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/git/refs{/sha}","trees_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/statuses/{sha}","languages_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/languages","stargazers_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/stargazers","contributors_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/contributors","subscribers_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/subscribers","subscription_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/subscription","commits_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/commits{/sha}","git_commits_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/git/commits{/sha}","comments_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/comments{/number}","issue_comment_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/issues/comments{/number}","contents_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/contents/{+path}","compare_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/merges","archive_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/downloads","issues_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/issues{/number}","pulls_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/pulls{/number}","milestones_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/milestones{/number}","notifications_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/labels{/name}","releases_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/releases{/id}","deployments_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/deployments","created_at":"2016-09-06T01:11:50Z","updated_at":"2018-01-13T13:56:58Z","pushed_at":"2018-02-14T19:37:18Z","git_url":"git://github.com/eclipse/jnosql-diana-driver.git","ssh_url":"git@github.com:eclipse/jnosql-diana-driver.git","clone_url":"https://github.com/eclipse/jnosql-diana-driver.git","svn_url":"https://github.com/eclipse/jnosql-diana-driver","homepage":"","size":1707,"stargazers_count":13,"watchers_count":13,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":19,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":19,"open_issues":6,"watchers":13,"default_branch":"master"}},"base":{"label":"eclipse:master","ref":"master","sha":"3c6a8a806ddec1f3d01bb733bafd9956d92a480d","user":{"login":"eclipse","id":56974,"avatar_url":"https://avatars1.githubusercontent.com/u/56974?v=4","gravatar_id":"","url":"https://api.github.com/users/eclipse","html_url":"https://github.com/eclipse","followers_url":"https://api.github.com/users/eclipse/followers","following_url":"https://api.github.com/users/eclipse/following{/other_user}","gists_url":"https://api.github.com/users/eclipse/gists{/gist_id}","starred_url":"https://api.github.com/users/eclipse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclipse/subscriptions","organizations_url":"https://api.github.com/users/eclipse/orgs","repos_url":"https://api.github.com/users/eclipse/repos","events_url":"https://api.github.com/users/eclipse/events{/privacy}","received_events_url":"https://api.github.com/users/eclipse/received_events","type":"Organization","site_admin":false},"repo":{"id":67461402,"name":"jnosql-diana-driver","full_name":"eclipse/jnosql-diana-driver","owner":{"login":"eclipse","id":56974,"avatar_url":"https://avatars1.githubusercontent.com/u/56974?v=4","gravatar_id":"","url":"https://api.github.com/users/eclipse","html_url":"https://github.com/eclipse","followers_url":"https://api.github.com/users/eclipse/followers","following_url":"https://api.github.com/users/eclipse/following{/other_user}","gists_url":"https://api.github.com/users/eclipse/gists{/gist_id}","starred_url":"https://api.github.com/users/eclipse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclipse/subscriptions","organizations_url":"https://api.github.com/users/eclipse/orgs","repos_url":"https://api.github.com/users/eclipse/repos","events_url":"https://api.github.com/users/eclipse/events{/privacy}","received_events_url":"https://api.github.com/users/eclipse/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eclipse/jnosql-diana-driver","description":"This project contains all implementations from Eclipse JNoSQL Diana-API","fork":false,"url":"https://api.github.com/repos/eclipse/jnosql-diana-driver","forks_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/forks","keys_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/teams","hooks_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/hooks","issue_events_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/issues/events{/number}","events_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/events","assignees_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/assignees{/user}","branches_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/branches{/branch}","tags_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/tags","blobs_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/git/refs{/sha}","trees_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/statuses/{sha}","languages_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/languages","stargazers_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/stargazers","contributors_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/contributors","subscribers_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/subscribers","subscription_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/subscription","commits_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/commits{/sha}","git_commits_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/git/commits{/sha}","comments_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/comments{/number}","issue_comment_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/issues/comments{/number}","contents_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/contents/{+path}","compare_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/merges","archive_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/downloads","issues_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/issues{/number}","pulls_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/pulls{/number}","milestones_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/milestones{/number}","notifications_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/labels{/name}","releases_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/releases{/id}","deployments_url":"https://api.github.com/repos/eclipse/jnosql-diana-driver/deployments","created_at":"2016-09-06T01:11:50Z","updated_at":"2018-01-13T13:56:58Z","pushed_at":"2018-02-14T19:37:18Z","git_url":"git://github.com/eclipse/jnosql-diana-driver.git","ssh_url":"git@github.com:eclipse/jnosql-diana-driver.git","clone_url":"https://github.com/eclipse/jnosql-diana-driver.git","svn_url":"https://github.com/eclipse/jnosql-diana-driver","homepage":"","size":1707,"stargazers_count":13,"watchers_count":13,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":19,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":19,"open_issues":6,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eclipse/jnosql-diana-driver/pulls/77"},"html":{"href":"https://github.com/eclipse/jnosql-diana-driver/pull/77"},"issue":{"href":"https://api.github.com/repos/eclipse/jnosql-diana-driver/issues/77"},"comments":{"href":"https://api.github.com/repos/eclipse/jnosql-diana-driver/issues/77/comments"},"review_comments":{"href":"https://api.github.com/repos/eclipse/jnosql-diana-driver/pulls/77/comments"},"review_comment":{"href":"https://api.github.com/repos/eclipse/jnosql-diana-driver/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eclipse/jnosql-diana-driver/pulls/77/commits"},"statuses":{"href":"https://api.github.com/repos/eclipse/jnosql-diana-driver/statuses/ba5f9d5fcdb62cd746b6d0f5e10df20c24268db0"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"furlaneto"}}