/** * Listar algunos Prestamo dado un rango inferior * * @param $value * @param $performSize * @param $firstResultNumber * @param $numResults */ public function listPrestamosByPrestamoSalidaLowerThan($value, $performSize = false, $firstResultNumber = null, $numResults = null, $orderBy = null, $orderPriority = SQL_ASCENDING_ORDER) { # Validamos los campos if ($firstResultNumber !== null && !EntityValidator::validatePositiveNumber($firstResultNumber)) { throw new Exception(SALAS_COMP_ALERT_E_VALIDATION_FAIL, $this->ID + 55); } if (!EntityValidator::validateGlobalOrderPriority($orderPriority)) { throw new Exception(SALAS_COMP_ALERT_E_VALIDATION_FAIL, $this->ID + 57); } if (!EntityValidator::validateDate($value)) { throw new Exception(SALAS_COMP_ALERT_E_VALIDATION_FAIL, $this->ID + 59); } # Listamos las entidades if ($performSize) { $this->lastRequestSize = $this->prestamoBean->countGetPrestamosByPrestamoSalidaLowerThan($value); } return PrestamoDTO::loadFromEntities($this->prestamoBean->listPrestamosByPrestamoSalidaLowerThan($value, $firstResultNumber, $numResults, $orderBy, $orderPriority)); }