title: row data gateway return value
body: <p>Recently, I read about the row data gateway pattern in the poeaa. </p>
  
  <p>My question is, what is the return value by the row data gateway pattern. Is it the gateway object itself? if so, doesn't this add a dependency between DAL and BLL? </p>
  
  <p>I mean, like in the repository pattern, we have a relation: DAL -> BLL, for example:</p>
  
  <pre><code>class personrepository
  {
     public model.person getpersonby(id) {...}
  }
  </code></pre>
  
  <p>but in the gateway, the relation is like this: BLL -> DAL, for example:</p>
  
  <pre><code>//organize by transaction script
  class personservice
  {
     public static void dosomethingwith(persongateway) {...}
  }
  </code></pre>
  
  <p>am I misunderstanding something?</p>