incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Connectors Framework > How to Write an Output Connector
Date Sat, 23 Oct 2010 19:10:00 GMT
Space: Apache Connectors Framework (https://cwiki.apache.org/confluence/display/CONNECTORS)
Page: How to Write an Output Connector (https://cwiki.apache.org/confluence/display/CONNECTORS/How+to+Write+an+Output+Connector)
Comment: https://cwiki.apache.org/confluence/display/CONNECTORS/How+to+Write+an+Output+Connector?focusedCommentId=24184124#comment-24184124

Comment added by Farzad:
---------------------------------------------------------------------

Thanks for the re-clarification in item 1.  As far as cache keys, the CookieManager example
didn't use one during its performInsert so I didn't either.  However going back through the
code, I see the ICacheManager object that it sets up in the constructor.  It then gets an
ICacheHandle using "COOKIES_" + <db column name> and before the endTransaction() it
calls ICacheManager.invalidateKeys passing the ICacheHandle.

I don't understand what this doing or its purpose to apply it to my case.  Is cache keys a
general concept I'm missing?

In reply to a comment by Karl Wright:
(1) I think you misunderstood.&nbsp; There is no need for a transaction.&nbsp; In
fact, I believe I said, "as long as the insert is OUTSIDE of a transaction, there is no ambiguity".

(2) What is the cache key you are using for your table queries?&nbsp; It seems to be null.&nbsp;
So an invalidation cache key of null is appropriate for the insertion.

Change your notification preferences: https://cwiki.apache.org/confluence/users/viewnotifications.action

Mime
View raw message