public function execute(HermitStatement $stmt, HermitValueType $type)
 {
     $count = $stmt->rowCount();
     $stmt->closeCursor();
     unset($stmt);
     return $count;
 }
 public function execute(HermitStatement $stmt, HermitValueType $type)
 {
     if ($row = $stmt->fetch(PDO::FETCH_NUM)) {
         // first column only
         $count = (int) $row[0];
         return $count;
     }
     return -1;
 }
 public function execute(HermitStatement $stmt, HermitValueType $type)
 {
     if ($stmt->columnCount() < 1) {
         $stmt->closeCursor();
         unset($stmt);
         return null;
     }
     //
     // check single result
     //
     if ($this->annote->isSingleProcedureResult($this->method)) {
         $resultset = HermitResultSetFactory::create($this->method);
         return $resultset->execute($stmt, $type);
     }
     $resultset = HermitResultSetFactory::create($this->method);
     $results = array();
     do {
         $results[] = $resultset->execute($stmt, $type);
     } while ($stmt->nextRowset());
     $stmt->closeCursor();
     unset($stmt);
     return $results;
 }
 public function apply(HermitStatement $stmt)
 {
     $stmt->setFetchMode(PDO::FETCH_OBJ);
 }