<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Persistent classes and 'dirty' data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/persistent-classes-and-dirty-data/m-p/776894#M38860</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I may have now found the answer.&lt;/P&gt;&lt;P&gt;I believe that it is just a case of using Locks as usual on the data, so that the second program cannot gain the lock until the first has finished.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anybody has anything better please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Alex.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Oct 2004 08:22:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2004-10-22T08:22:26Z</dc:date>
    <item>
      <title>Persistent classes and 'dirty' data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/persistent-classes-and-dirty-data/m-p/776893#M38859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking into using a persistent class for the records of a database table.&lt;/P&gt;&lt;P&gt;I have been experimenting with it, but I don't know how best to handle 'dirty' data that may be contained in the instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The scenario I have is as follows:&lt;/P&gt;&lt;P&gt;Two seperate programs get instances of the same persistent object with the same key.  On checking the status of these instances, they both are status 2.  I then use a set method on both instances, which both return 0 in sy-subrc.  On checking again the status of these instances, the instance that set first has a status of 3 (changed) and the second has a status of 2 (unchanged).&lt;/P&gt;&lt;P&gt;Then both classes commit work and wait, both return 0 in sy-subrc.&lt;/P&gt;&lt;P&gt;My problem is that I cannot tell if the second class has either not used any set methods (so is unchanged) or it is using 'dirty' data, so will not change the data.&lt;/P&gt;&lt;P&gt;Is there something that I am missing on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;many thanks,&lt;/P&gt;&lt;P&gt;Alex.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2004 07:50:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/persistent-classes-and-dirty-data/m-p/776893#M38859</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-10-22T07:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Persistent classes and 'dirty' data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/persistent-classes-and-dirty-data/m-p/776894#M38860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I may have now found the answer.&lt;/P&gt;&lt;P&gt;I believe that it is just a case of using Locks as usual on the data, so that the second program cannot gain the lock until the first has finished.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anybody has anything better please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Alex.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2004 08:22:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/persistent-classes-and-dirty-data/m-p/776894#M38860</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-10-22T08:22:26Z</dc:date>
    </item>
  </channel>
</rss>

