<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Description of ReadFilesDataWeb
*
* @author zaealan
* @ORM\Table(name="read_files_data_web")
* @ORM\Entity(repositoryClass="App\Repository\ReadFilesDataWebRepository")
* @ORM\HasLifecycleCallbacks
*/
class ReadFilesDataWeb {
/**
* ya se notifico de un nuevo trabajo en web
*/
const STATUS_NOTIFIED = 1;
/**
* ya se proceso y se entrego al android el json
*/
const STATUS_READED_DELIVERED = 2;
/**
* android ya respondio el json entregado
*/
const STATUS_ANDROID_RESPOND = 3;
/**
* el server ya proceso la respuesta del android
*/
const STATUS_RESPONSE_READED = 4;
/**
* el tipo de sync realizada con level (desde level hacia omt)
*/
const OMT_SYNC_TYPE_LEVEL_OMT = 0;
/**
* el tipo de sync realizada con omt (desde openmytab hacia level)
*/
const OMT_SYNC_TYPE_OMT_LEVEL = 1;
/**
* Constantes para determinar tipo de registro en la sync
*/
CONST SYNC_NORMAL = 0;
CONST SYNC_DATABASE_CLEANING = 1;
CONST SYNC_HYBRID = 2;
/**
* @var integer
* @ORM\Column(name="rfw_id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var string
* @ORM\Column(name="rfw_name_processed_file", type="string", length=255, nullable=true)
*/
private $rfwNameProcessedFile;
/**
* @var integer
* @ORM\Column(name="rfw_status", type="integer", length=11, nullable=false, options={"default":"0"})
*/
private $rfwStatus;
/**
* @var \App\Entity\AccountLicense
* @ORM\ManyToOne(targetEntity="App\Entity\AccountLicense")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="rfw_license_id", referencedColumnName="al_id", onDelete="CASCADE")
* })
*/
private $rfwLicenseId;
/**
* @var \DateTime
* @ORM\Column(name="rfw_date_sinc_ask", type="datetime")
*/
private $rfwDateSincAsk;
/**
* @var string
* @ORM\Column(name="rfw_date_file_processed", type="datetime", nullable=true)
*/
private $rfwDateFileProcessed;
/**
* @var string
* @ORM\Column(name="rfw_file_response_expected", type="string", nullable=true)
*/
private $rfwFileResponseExpected;
/**
* @var string
* @ORM\Column(name="rfw_client_response_file", type="string", length=255, nullable=true)
*/
private $rfwClientResponseFile;
/**
* @var \DateTime
* @ORM\Column(name="rfw_date_delivered", type="datetime", nullable=true)
*/
private $rfwDateAndroidRespond;
/**
* @var string
* @ORM\Column(name="rfw_isreaded_server", type="boolean", nullable=true, options={"default":"0"})
*/
private $isReadedByServer;
/**
* @var string
* @ORM\Column(name="rfw_application_mode", type="boolean", nullable=true, options={"default":"1"})
*/
private $applicationMode;
/**
* @var string
* @ORM\Column(name="rfw_has_error", type="boolean", nullable=true, options={"default":"0"})
*/
private $hasPersistentError;
/**
* @var \DateTime
* @ORM\Column(name="rfw_picked_for_consume_date_one", type="datetime", nullable=true)
*/
private $pickedForConsumeDateOne;
/**
* @var \DateTime
* @ORM\Column(name="rfw_picked_for_consume_date_two", type="datetime", nullable=true)
*/
private $pickedForConsumeDateTwo;
/**
* @var array
* @ORM\Column(name="rfw_obtained_error", type="json", nullable=true)
*/
private $obtainedError;
/**
* @var integer
* @ORM\Column(name="rfw_omt_status", type="integer", length=1, nullable=true, options={"default":"0"})
*/
private $rfwOMTStatus;
/**
* @var integer
* @ORM\Column(name="rfw_omt_sync_type", type="integer", length=1, nullable=true, options={"default":0})
*/
private $rfwOMTSyncType = 0;
/**
* @var array
* @ORM\Column(name="rfw_omt_obtained_error", type="json", nullable=true)
*/
private $obtainedOMTError;
/**
* @var \DateTime
* @ORM\Column(name="rfw_omt_picked_for_consume_date_one", type="datetime", nullable=true)
*/
private $pickedOMTForConsumeDateOne;
/**
* @var \DateTime
* @ORM\Column(name="rfw_omt_picked_for_consume_date_two", type="datetime", nullable=true)
*/
private $pickedOMTForConsumeDateTwo;
/**
* @var string
* @ORM\Column(name="rfw_omt_name_processed_file", type="string", length=255, nullable=true)
*/
private $rfwOMTNameProcessedFile;
/**
* @var string
* @ORM\Column(name="rfw_omt_date_file_processed", type="datetime", nullable=true)
*/
private $rfwOMTDateFileProcessed;
/**
* @var string
* @ORM\Column(name="rfw_omt_file_response_expected", type="string", nullable=true)
*/
private $rfwOMTFileResponseExpected;
/**
* @var string
* @ORM\Column(name="rfw_omt_client_response_file", type="string", length=255, nullable=true)
*/
private $rfwOMTClientResponseFile;
/**
* @var \DateTime
* @ORM\Column(name="rfw_omt_date_delivered", type="datetime", nullable=true)
*/
private $rfwOMTDateRespond;
/**
* @var string
* @ORM\Column(name="rfw_has_omt_error", type="boolean", nullable=true, options={"default":"0"})
*/
private $hasOMTPersistentError;
/**
* @var string
* @ORM\Column(name="rfw_isomtreaded_server", type="boolean", nullable=true, options={"default":"0"})
*/
private $isOMTReadedByServer;
/**
* @var integer
* @ORM\Column(name="rfw_split_login_index", type="integer", length=2, nullable=true)
*/
private $splitLoginIndex;
/**
* @var integer
* @ORM\Column(name="rfw_syncs_to_perform", type="integer", length=3, nullable=true)
*/
private $syncsToPerfomr;
/**
* @var integer
* @ORM\Column(name="rfw_target_of_sync", type="integer", length=3, nullable=true, options={"default": 0})
*/
private $targetOfSync = 0;
/**
* @var string
* @ORM\Column(name="rfw_file_in_s3_uri", type="string", length=255, nullable=true)
*/
private $fileInS3URI;
/**
* @var string
* @ORM\Column(name="rfw_file_response_in_s3_uri", type="string", length=255, nullable=true)
*/
private $fileResponseInS3URI;
/**
* @var string
* @ORM\Column(name="rfw_file_expected_in_s3_uri", type="string", length=255, nullable=true)
*/
private $fileExpectedInS3URI;
/**
* @var string
* @ORM\Column(name="rfw_priority_flag", type="integer", length=1, nullable=true)
*/
private $priorityFlag;
/**
* @var bool
* @ORM\Column(name="rfw_omt_massive_sync", type="boolean", nullable=true, options={"default":"0"})
*/
private $sentAsOMTMassiveSync = 0;
/**
* @var int
* @ORM\Column(name="rfw_omt_hybrid_sync", type="integer", nullable=true)
*/
private $omtHybridSync;
/**
* @return type
*/
public function getId() {
return $this->id;
}
/**
* Get the value of omtHybridSync
*
* @return bool
*/
public function getOmtHybridSync() {
return $this->omtHybridSync;
}
/**
* Set the value of omtHybridSync
*
* @param int $omtHybridSync
*
* @return self
*/
public function setOmtHybridSync(int $omtHybridSync) {
$this->omtHybridSync = $omtHybridSync;
return $this;
}
/**
* @return type
*/
public function getPriorityFlag() {
return $this->priorityFlag;
}
/**
* @param int $priorityFlag
*/
public function setPriorityFlag($priorityFlag) {
$this->priorityFlag = $priorityFlag;
}
/**
* @return type
*/
public function getFileInS3URI() {
return $this->fileInS3URI;
}
/**
* @param type $rfNameFile
*/
public function setFileInS3URI($fileInS3URI) {
$this->fileInS3URI = $fileInS3URI;
}
/**
* @return type
*/
public function getFileExpectedInS3URI() {
return $this->fileExpectedInS3URI;
}
/**
* @param type $rfNameFile
*/
public function setFileExpectedInS3URI($fileExpectedInS3URI) {
$this->fileExpectedInS3URI = $fileExpectedInS3URI;
}
/**
* @return type
*/
public function getFileResponseInS3URI() {
return $this->fileResponseInS3URI;
}
/**
* @param type $rfNameFile
*/
public function setFileResponseInS3URI($fileResponseInS3URI) {
$this->fileResponseInS3URI = $fileResponseInS3URI;
}
/**
* @return type
*/
public function getTargetOfSync() {
return $this->targetOfSync;
}
/**
* @param type $targetOfSync
*/
public function setTargetOfSync($targetOfSync) {
$this->targetOfSync = $targetOfSync;
}
/**
* @return type
*/
public function getSyncsToPerfomr() {
return $this->syncsToPerfomr;
}
/**
* @param type $syncsToPerfomr
*/
public function setSyncsToPerfomr($syncsToPerfomr) {
$this->syncsToPerfomr = $syncsToPerfomr;
}
/**
* @return type
*/
public function getSplitLoginIndex() {
return $this->splitLoginIndex;
}
/**
* @param type $splitLoginIndex
*/
public function setSplitLoginIndex($splitLoginIndex) {
$this->splitLoginIndex = $splitLoginIndex;
}
/**
* @return type
*/
public function getRfwOMTSyncType() {
return $this->rfwOMTSyncType;
}
/**
* @param type $rfwOMTSyncType
*/
public function setRfwOMTSyncType($rfwOMTSyncType) {
$this->rfwOMTSyncType = $rfwOMTSyncType;
}
/**
* @return type
*/
public function getRfwNameProcessedFile() {
return $this->rfwNameProcessedFile;
}
/**
* @return type
*/
public function getRfwStatus() {
return $this->rfwStatus;
}
/**
* @return type
*/
public function getRfwLicenseId() {
return $this->rfwLicenseId;
}
/**
* @return type
*/
public function getRfwDateSincAsk() {
return $this->rfwDateSincAsk;
}
/**
* @return type
*/
public function getRfwDateFileProcessed() {
return $this->rfwDateFileProcessed;
}
/**
* @return type
*/
public function getRfwClientResponseFile() {
return $this->rfwClientResponseFile;
}
/**
* @return type
*/
public function getIsReadedByServer() {
return $this->isReadedByServer;
}
/**
* @param type $rfwNameProcessedFile
*/
public function setRfwNameProcessedFile($rfwNameProcessedFile) {
$this->rfwNameProcessedFile = $rfwNameProcessedFile;
}
/**
* @param type $rfwStatus
*/
public function setRfwStatus($rfwStatus) {
$this->rfwStatus = $rfwStatus;
}
/**
* @param \App\Entity\AccountLicense $rfwLicenseId
*/
public function setRfwLicenseId(\App\Entity\AccountLicense $rfwLicenseId) {
$this->rfwLicenseId = $rfwLicenseId;
}
/**
* @param \DateTime $rfwDateSincAsk
*/
public function setRfwDateSincAsk(\DateTime $rfwDateSincAsk = null) {
$this->rfwDateSincAsk = $rfwDateSincAsk;
}
/**
* @param \DateTime $rfwDateFileProcessed
*/
public function setRfwDateFileProcessed(\DateTime $rfwDateFileProcessed = null) {
$this->rfwDateFileProcessed = $rfwDateFileProcessed;
}
/**
* @param type $rfwClientResponseFile
*/
public function setRfwClientResponseFile($rfwClientResponseFile) {
$this->rfwClientResponseFile = $rfwClientResponseFile;
}
/**
* @param type $isReadedByServer
*/
public function setIsReadedByServer($isReadedByServer) {
$this->isReadedByServer = $isReadedByServer;
}
/**
* @return type
*/
public function getRfwDateAndroidRespond() {
return $this->rfwDateAndroidRespond;
}
/**
* @param \DateTime $rfwDateAndroidRespond
*/
public function setRfwDateAndroidRespond(\DateTime $rfwDateAndroidRespond = null) {
$this->rfwDateAndroidRespond = $rfwDateAndroidRespond;
}
/**
* @return type
*/
public function getApplicationMode() {
return $this->applicationMode;
}
/**
* @param type $applicationMode
*/
public function setApplicationMode($applicationMode) {
$this->applicationMode = $applicationMode;
}
/**
* @return type
*/
public function getHasPersistentError() {
return $this->hasPersistentError;
}
/**
* @param type $hasPersistentError
*/
public function setHasPersistentError($hasPersistentError) {
$this->hasPersistentError = $hasPersistentError;
}
/**
* @return type
*/
public function getPickedForConsumeDateOne() {
return $this->pickedForConsumeDateOne;
}
/**
* @param \DateTime $pickedForConsumeDateOne
*/
public function setPickedForConsumeDateOne(\DateTime $pickedForConsumeDateOne = null) {
$this->pickedForConsumeDateOne = $pickedForConsumeDateOne;
}
/**
* @return type
*/
public function getPickedForConsumeDateTwo() {
return $this->pickedForConsumeDateTwo;
}
/**
* @param \DateTime $pickedForConsumeDateTwo
*/
public function setPickedForConsumeDateTwo(\DateTime $pickedForConsumeDateTwo = null) {
$this->pickedForConsumeDateTwo = $pickedForConsumeDateTwo;
}
/**
* @return type
*/
public function getObtainedError() {
return $this->obtainedError;
}
/**
* @param type $obtainedError
*/
public function setObtainedError($obtainedError) {
$this->obtainedError = $obtainedError;
}
/**
* @return type
*/
public function getRfwFileResponseExpected() {
return $this->rfwFileResponseExpected;
}
/**
* @param type $rfwFileResponseExpected
*/
public function setRfwFileResponseExpected($rfwFileResponseExpected) {
$this->rfwFileResponseExpected = $rfwFileResponseExpected;
}
/**
* @return type
*/
public function getRfwOMTStatus() {
return $this->rfwOMTStatus;
}
/**
* @return type
*/
public function getObtainedOMTError() {
return $this->obtainedOMTError;
}
/**
* @return type
*/
public function getPickedOMTForConsumeDateOne() {
return $this->pickedOMTForConsumeDateOne;
}
/**
* @return type
*/
public function getPickedOMTForConsumeDateTwo() {
return $this->pickedOMTForConsumeDateTwo;
}
/**
* @return type
*/
public function getRfwOMTDateFileProcessed() {
return $this->rfwOMTDateFileProcessed;
}
/**
* @return type
*/
public function getRfwOMTFileResponseExpected() {
return $this->rfwOMTFileResponseExpected;
}
/**
* @return type
*/
public function getRfwOMTClientResponseFile() {
return $this->rfwOMTClientResponseFile;
}
/**
* @return type
*/
public function getRfwOMTDateRespond() {
return $this->rfwOMTDateRespond;
}
/**
* @param type $rfwOMTStatus
*/
public function setRfwOMTStatus($rfwOMTStatus) {
$this->rfwOMTStatus = $rfwOMTStatus;
}
/**
* @param type $obtainedOMTError
*/
public function setObtainedOMTError($obtainedOMTError) {
$this->obtainedOMTError = $obtainedOMTError;
}
/**
* @param \DateTime $pickedOMTForConsumeDateOne
*/
public function setPickedOMTForConsumeDateOne(\DateTime $pickedOMTForConsumeDateOne = null) {
$this->pickedOMTForConsumeDateOne = $pickedOMTForConsumeDateOne;
}
/**
* @param \DateTime $pickedOMTForConsumeDateTwo
*/
public function setPickedOMTForConsumeDateTwo(\DateTime $pickedOMTForConsumeDateTwo = null) {
$this->pickedOMTForConsumeDateTwo = $pickedOMTForConsumeDateTwo;
}
/**
* @param type $rfwOMTDateFileProcessed
*/
public function setRfwOMTDateFileProcessed(\DateTime $rfwOMTDateFileProcessed = null) {
$this->rfwOMTDateFileProcessed = $rfwOMTDateFileProcessed;
}
/**
* @param type $rfwOMTFileResponseExpected
*/
public function setRfwOMTFileResponseExpected($rfwOMTFileResponseExpected) {
$this->rfwOMTFileResponseExpected = $rfwOMTFileResponseExpected;
}
/**
* @param type $rfwOMTClientResponseFile
*/
public function setRfwOMTClientResponseFile($rfwOMTClientResponseFile) {
$this->rfwOMTClientResponseFile = $rfwOMTClientResponseFile;
}
/**
* @param \DateTime $rfwOMTDateRespond
*/
public function setRfwOMTDateRespond(\DateTime $rfwOMTDateRespond = null) {
$this->rfwOMTDateRespond = $rfwOMTDateRespond;
}
/**
* @return type
*/
public function getHasOMTPersistentError() {
return $this->hasOMTPersistentError;
}
/**
* @param type $hasOMTPersistentError
*/
public function setHasOMTPersistentError($hasOMTPersistentError) {
$this->hasOMTPersistentError = $hasOMTPersistentError;
}
/**
* @return type
*/
public function getIsOMTReadedByServer() {
return $this->isOMTReadedByServer;
}
/**
* @param type $isOMTReadedByServer
*/
public function setIsOMTReadedByServer($isOMTReadedByServer) {
$this->isOMTReadedByServer = $isOMTReadedByServer;
}
/**
* @return type
*/
public function getRfwOMTNameProcessedFile() {
return $this->rfwOMTNameProcessedFile;
}
/**
* @param type $rfwOMTNameProcessedFile
*/
public function setRfwOMTNameProcessedFile($rfwOMTNameProcessedFile) {
$this->rfwOMTNameProcessedFile = $rfwOMTNameProcessedFile;
}
/**
* Get the value of sentAsOMTMassiveSync
*
* @return bool
*/
public function getSentAsOMTMassiveSync() {
return $this->sentAsOMTMassiveSync;
}
/**
* Set the value of sentAsOMTMassiveSync
*
* @param bool $sentAsOMTMassiveSync
*
* @return self
*/
public function setSentAsOMTMassiveSync(bool $sentAsOMTMassiveSync) {
$this->sentAsOMTMassiveSync = $sentAsOMTMassiveSync;
return $this;
}
/**
* @return type
*/
public function __toString() {
return '' . $this->id;
}
}