Re: OO programming - illumination?

From: frebe (fredrik_bertilsson_at_passagen.se)
Date: 03/03/05

  • Next message: Ilja Preuß: "Re: Application logic and Business logic"
    Date: 2 Mar 2005 22:30:10 -0800
    
    

    > Commits and rollbacks are an artifact of a particular storage
    paradigm
    > that the problem solution should not have to understand.

    You are wrong again. Transaction handling is not only related to
    storage. In distributed transactions, multiple resources can
    participate. Besides databases, messsage exchage systems use to
    participate in distributed transactions. Virtually any kind of resource
    may participate. The problem solution really need to understand
    transactions.

    > Because if persistence is on flat files or clay tablets, there is no
    > such thing as a rollback.

    It might be. In the old days working with flat files, transaction
    handling could be done, by first making a copy of the entire file. If
    rollback should be done, the modified file was overwritten by the copy
    file.

    > the OO version would be
    > significantly more verbose than your RAD example. Consider the
    > following interfaces:
    Can you show me the code that corresponds to my "main" method. I am not
    sure I understand your example without the full picture.

    Anyway, I am very amazed to see so much similarites with your code and
    Butler. Isn't SQLDispatcher a generic class that could be reused by
    every application that are using a SQL database? In my example I have a
    OrderTable class too, generated from the schema structure. I never
    thought you could had a class that reflects the database schema. In
    Butler there are a generic Table class that have the save functionality
    as your SQLDispatcher, and every generated table-class subclasses this
    Table class.

    Fredrik Bertilsson
    http://butler.sourceforge.net


  • Next message: Ilja Preuß: "Re: Application logic and Business logic"

    Relevant Pages

    • Re: OO programming - illumination?
      ... >>that the problem solution should not have to understand. ... In distributed transactions, multiple resources can ... Note that I said 'storage paradigm', ... isolated the persistence access, it is relatively easy to recognize the ...
      (comp.object)
    • Problem with Update trigger and transaction
      ... updating the order information and inserting the packer detail rows as we go ... If one items fails we bailout and rollback. ... The problem is when the order update occurs a trigger fires to record the ... to solve the issue is to not use transactions. ...
      (microsoft.public.fox.vfp.dbc)
    • Re: Number of open transactions in DAO
      ... The idea behind transactions is to ensure that all updates across multiple tables in a database can succeed prior to committing them. ... I commit when the user presses the save button (which will also add more info to the records in the recordset) and rollback on the form's OnClose event. ... I need this for cleaning up but calling .Rollback or .CommitTrans when there is no transaction causes a runtime error. ...
      (microsoft.public.access.modulesdaovba)
    • Re: ADOBD / JET Transaction Problems
      ... I think it's probably more relevant to post the transaction-related code ... > using ADODB to open the database to use record level locking. ... > Rollback, the Rollback does not Rollback the transactions - all 3 are ...
      (microsoft.public.vb.database.dao)
    • Re: ADOBD / JET Transaction Problems
      ... I think it's probably more relevant to post the transaction-related code ... > using ADODB to open the database to use record level locking. ... > Rollback, the Rollback does not Rollback the transactions - all 3 are ...
      (microsoft.public.data.ado)