<?php

class AppGelombangToFinansi extends Database {

   protected $mSqlFile= 'module/gelombang/business/appgelombangtofinansi.sql.php';
   
   function __construct($connectionNumber=3) {
      parent::__construct($connectionNumber);
            
   }
 
   function DoAddGelombang($gelombangId,$gelombangNama) {
      $result = $this->Execute($this->mSqlQueries['do_add_gelombang'], array($gelombangId,$gelombangNama));
      //print($this->GetLastError());
      return $result;
   }
   
   function DoUpdateGelombang($gelombangId,$gelombangNama, $oldId) {
  // print($this->mSqlQueries['do_update_gelombang']);
      $result = $this->Execute($this->mSqlQueries['do_update_gelombang'], array($gelombangId,$gelombangNama, $oldId));
      //print($this->GetLastError());
      return $result;
   }
   
   function DoDeleteGelombangById($gelombangId) {
      $result=$this->Execute($this->mSqlQueries['do_delete_gelombang_by_id'], array($gelombangId));
      return $result;
   }

   function DoDeleteGelombangByArrayId($arrGelombangId) {
      $gelombangId = implode("', '", $arrGelombangId);
      $result=$this->Execute($this->mSqlQueries['do_delete_gelombang_by_array_id'], array($gelombangId));
      return $result;
   }
}
?>
