src/Entity/ReadFilesDataWeb.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Description of ReadFilesDataWeb
  6.  *
  7.  * @author zaealan
  8.  * @ORM\Table(name="read_files_data_web")
  9.  * @ORM\Entity(repositoryClass="App\Repository\ReadFilesDataWebRepository")
  10.  * @ORM\HasLifecycleCallbacks
  11.  */
  12. class ReadFilesDataWeb {
  13.     /**
  14.      * ya se notifico de un nuevo trabajo en web
  15.      */
  16.     const STATUS_NOTIFIED 1;
  17.     /**
  18.      * ya se proceso y se entrego al android el json
  19.      */
  20.     const STATUS_READED_DELIVERED 2;
  21.     /**
  22.      * android ya respondio el json entregado
  23.      */
  24.     const STATUS_ANDROID_RESPOND 3;
  25.     /**
  26.      * el server ya proceso la respuesta del android
  27.      */
  28.     const STATUS_RESPONSE_READED 4;
  29.     /**
  30.      * el tipo de sync realizada con level (desde level hacia omt)
  31.      */
  32.     const OMT_SYNC_TYPE_LEVEL_OMT 0;
  33.     /**
  34.      * el tipo de sync realizada con omt (desde openmytab hacia level)
  35.      */
  36.     const OMT_SYNC_TYPE_OMT_LEVEL 1;
  37.     /**
  38.      * Constantes para determinar tipo de registro en la sync  
  39.      */
  40.     CONST SYNC_NORMAL 0;
  41.     CONST SYNC_DATABASE_CLEANING 1;
  42.     CONST SYNC_HYBRID 2;
  43.     /**
  44.      * @var integer
  45.      * @ORM\Column(name="rfw_id", type="integer")
  46.      * @ORM\Id
  47.      * @ORM\GeneratedValue(strategy="IDENTITY")
  48.      */
  49.     private $id;
  50.     /**
  51.      * @var string
  52.      * @ORM\Column(name="rfw_name_processed_file", type="string", length=255, nullable=true)
  53.      */
  54.     private $rfwNameProcessedFile;
  55.     /**
  56.      * @var integer
  57.      * @ORM\Column(name="rfw_status", type="integer", length=11, nullable=false, options={"default":"0"})
  58.      */
  59.     private $rfwStatus;
  60.     /**
  61.      * @var \App\Entity\AccountLicense
  62.      * @ORM\ManyToOne(targetEntity="App\Entity\AccountLicense")
  63.      * @ORM\JoinColumns({
  64.      *   @ORM\JoinColumn(name="rfw_license_id", referencedColumnName="al_id", onDelete="CASCADE")
  65.      * })
  66.      */
  67.     private $rfwLicenseId;
  68.     /**
  69.      * @var \DateTime
  70.      * @ORM\Column(name="rfw_date_sinc_ask", type="datetime")
  71.      */
  72.     private $rfwDateSincAsk;
  73.     /**
  74.      * @var string
  75.      * @ORM\Column(name="rfw_date_file_processed", type="datetime", nullable=true)
  76.      */
  77.     private $rfwDateFileProcessed;
  78.     /**
  79.      * @var string
  80.      * @ORM\Column(name="rfw_file_response_expected", type="string", nullable=true)
  81.      */
  82.     private $rfwFileResponseExpected;
  83.     /**
  84.      * @var string
  85.      * @ORM\Column(name="rfw_client_response_file", type="string", length=255, nullable=true)
  86.      */
  87.     private $rfwClientResponseFile;
  88.     /**
  89.      * @var \DateTime
  90.      * @ORM\Column(name="rfw_date_delivered", type="datetime", nullable=true)
  91.      */
  92.     private $rfwDateAndroidRespond;
  93.     /**
  94.      * @var string
  95.      * @ORM\Column(name="rfw_isreaded_server", type="boolean", nullable=true, options={"default":"0"})
  96.      */
  97.     private $isReadedByServer;
  98.     /**
  99.      * @var string
  100.      * @ORM\Column(name="rfw_application_mode", type="boolean", nullable=true, options={"default":"1"})
  101.      */
  102.     private $applicationMode;
  103.     /**
  104.      * @var string
  105.      * @ORM\Column(name="rfw_has_error", type="boolean", nullable=true, options={"default":"0"})
  106.      */
  107.     private $hasPersistentError;
  108.     /**
  109.      * @var \DateTime
  110.      * @ORM\Column(name="rfw_picked_for_consume_date_one", type="datetime", nullable=true)
  111.      */
  112.     private $pickedForConsumeDateOne;
  113.     /**
  114.      * @var \DateTime
  115.      * @ORM\Column(name="rfw_picked_for_consume_date_two", type="datetime", nullable=true)
  116.      */
  117.     private $pickedForConsumeDateTwo;
  118.     /**
  119.      * @var array
  120.      * @ORM\Column(name="rfw_obtained_error", type="json", nullable=true)
  121.      */
  122.     private $obtainedError;
  123.     /**
  124.      * @var integer
  125.      * @ORM\Column(name="rfw_omt_status", type="integer", length=1, nullable=true, options={"default":"0"})
  126.      */
  127.     private $rfwOMTStatus;
  128.     /**
  129.      * @var integer
  130.      * @ORM\Column(name="rfw_omt_sync_type", type="integer", length=1, nullable=true, options={"default":0})
  131.      */
  132.     private $rfwOMTSyncType 0;
  133.     /**
  134.      * @var array
  135.      * @ORM\Column(name="rfw_omt_obtained_error", type="json", nullable=true)
  136.      */
  137.     private $obtainedOMTError;
  138.     /**
  139.      * @var \DateTime
  140.      * @ORM\Column(name="rfw_omt_picked_for_consume_date_one", type="datetime", nullable=true)
  141.      */
  142.     private $pickedOMTForConsumeDateOne;
  143.     /**
  144.      * @var \DateTime
  145.      * @ORM\Column(name="rfw_omt_picked_for_consume_date_two", type="datetime", nullable=true)
  146.      */
  147.     private $pickedOMTForConsumeDateTwo;
  148.     /**
  149.      * @var string
  150.      * @ORM\Column(name="rfw_omt_name_processed_file", type="string", length=255, nullable=true)
  151.      */
  152.     private $rfwOMTNameProcessedFile;
  153.     /**
  154.      * @var string
  155.      * @ORM\Column(name="rfw_omt_date_file_processed", type="datetime", nullable=true)
  156.      */
  157.     private $rfwOMTDateFileProcessed;
  158.     /**
  159.      * @var string
  160.      * @ORM\Column(name="rfw_omt_file_response_expected", type="string", nullable=true)
  161.      */
  162.     private $rfwOMTFileResponseExpected;
  163.     /**
  164.      * @var string
  165.      * @ORM\Column(name="rfw_omt_client_response_file", type="string", length=255, nullable=true)
  166.      */
  167.     private $rfwOMTClientResponseFile;
  168.     /**
  169.      * @var \DateTime
  170.      * @ORM\Column(name="rfw_omt_date_delivered", type="datetime", nullable=true)
  171.      */
  172.     private $rfwOMTDateRespond;
  173.     /**
  174.      * @var string
  175.      * @ORM\Column(name="rfw_has_omt_error", type="boolean", nullable=true, options={"default":"0"})
  176.      */
  177.     private $hasOMTPersistentError;
  178.     /**
  179.      * @var string
  180.      * @ORM\Column(name="rfw_isomtreaded_server", type="boolean", nullable=true, options={"default":"0"})
  181.      */
  182.     private $isOMTReadedByServer;
  183.     
  184.     /**
  185.      * @var integer
  186.      * @ORM\Column(name="rfw_split_login_index", type="integer", length=2, nullable=true)
  187.      */
  188.     private $splitLoginIndex;
  189.     
  190.     /**
  191.      * @var integer
  192.      * @ORM\Column(name="rfw_syncs_to_perform", type="integer", length=3, nullable=true)
  193.      */
  194.     private $syncsToPerfomr;
  195.     /**
  196.      * @var integer
  197.      * @ORM\Column(name="rfw_target_of_sync", type="integer", length=3, nullable=true, options={"default": 0})
  198.      */
  199.     private $targetOfSync 0;
  200.     /**
  201.      * @var string
  202.      * @ORM\Column(name="rfw_file_in_s3_uri", type="string", length=255, nullable=true)
  203.      */
  204.     private $fileInS3URI;
  205.     /**
  206.      * @var string
  207.      * @ORM\Column(name="rfw_file_response_in_s3_uri", type="string", length=255, nullable=true)
  208.      */
  209.     private $fileResponseInS3URI;
  210.     /**
  211.      * @var string
  212.      * @ORM\Column(name="rfw_file_expected_in_s3_uri", type="string", length=255, nullable=true)
  213.      */
  214.     private $fileExpectedInS3URI;
  215.     /**
  216.      * @var string
  217.      * @ORM\Column(name="rfw_priority_flag", type="integer", length=1, nullable=true)
  218.      */
  219.     private $priorityFlag;
  220.     /**
  221.      * @var bool
  222.      * @ORM\Column(name="rfw_omt_massive_sync", type="boolean", nullable=true, options={"default":"0"})
  223.      */
  224.     private $sentAsOMTMassiveSync 0;
  225.     /**
  226.      * @var int
  227.      * @ORM\Column(name="rfw_omt_hybrid_sync", type="integer", nullable=true)
  228.      */
  229.     private $omtHybridSync;
  230.     /**
  231.      * @return type
  232.      */
  233.     public function getId() {
  234.         return $this->id;
  235.     }
  236.     /**
  237.      * Get the value of omtHybridSync
  238.      *
  239.      * @return  bool
  240.      */ 
  241.     public function getOmtHybridSync() {
  242.         return $this->omtHybridSync;
  243.     }
  244.     /**
  245.      * Set the value of omtHybridSync
  246.      *
  247.      * @param  int  $omtHybridSync
  248.      *
  249.      * @return  self
  250.      */ 
  251.     public function setOmtHybridSync(int $omtHybridSync) {
  252.         $this->omtHybridSync $omtHybridSync;
  253.         return $this;
  254.     }
  255.     /**
  256.      * @return type
  257.      */
  258.     public function getPriorityFlag() {
  259.         return $this->priorityFlag;
  260.     }
  261.     /**
  262.      * @param int $priorityFlag
  263.      */
  264.     public function setPriorityFlag($priorityFlag) {
  265.         $this->priorityFlag $priorityFlag;
  266.     }
  267.     /**
  268.      * @return type
  269.      */
  270.     public function getFileInS3URI() {
  271.         return $this->fileInS3URI;
  272.     }
  273.     /**
  274.      * @param type $rfNameFile
  275.      */
  276.     public function setFileInS3URI($fileInS3URI) {
  277.         $this->fileInS3URI $fileInS3URI;
  278.     }
  279.     /**
  280.      * @return type
  281.      */
  282.     public function getFileExpectedInS3URI() {
  283.         return $this->fileExpectedInS3URI;
  284.     }
  285.     /**
  286.      * @param type $rfNameFile
  287.      */
  288.     public function setFileExpectedInS3URI($fileExpectedInS3URI) {
  289.         $this->fileExpectedInS3URI $fileExpectedInS3URI;
  290.     }
  291.     /**
  292.      * @return type
  293.      */
  294.     public function getFileResponseInS3URI() {
  295.         return $this->fileResponseInS3URI;
  296.     }
  297.     /**
  298.      * @param type $rfNameFile
  299.      */
  300.     public function setFileResponseInS3URI($fileResponseInS3URI) {
  301.         $this->fileResponseInS3URI $fileResponseInS3URI;
  302.     }
  303.     /**
  304.      * @return type
  305.      */
  306.     public function getTargetOfSync() {
  307.         return $this->targetOfSync;
  308.     }
  309.     /**
  310.      * @param type $targetOfSync
  311.      */
  312.     public function setTargetOfSync($targetOfSync) {
  313.         $this->targetOfSync $targetOfSync;
  314.     }
  315.     /**
  316.      * @return type
  317.      */
  318.     public function getSyncsToPerfomr() {
  319.         return $this->syncsToPerfomr;
  320.     }
  321.     /**
  322.      * @param type $syncsToPerfomr
  323.      */
  324.     public function setSyncsToPerfomr($syncsToPerfomr) {
  325.         $this->syncsToPerfomr $syncsToPerfomr;
  326.     }
  327.         
  328.     /**
  329.      * @return type
  330.      */
  331.     public function getSplitLoginIndex() {
  332.         return $this->splitLoginIndex;
  333.     }
  334.     /**
  335.      * @param type $splitLoginIndex
  336.      */
  337.     public function setSplitLoginIndex($splitLoginIndex) {
  338.         $this->splitLoginIndex $splitLoginIndex;
  339.     }
  340.         
  341.     /**
  342.      * @return type
  343.      */
  344.     public function getRfwOMTSyncType() {
  345.         return $this->rfwOMTSyncType;
  346.     }
  347.     /**
  348.      * @param type $rfwOMTSyncType
  349.      */
  350.     public function setRfwOMTSyncType($rfwOMTSyncType) {
  351.         $this->rfwOMTSyncType $rfwOMTSyncType;
  352.     }
  353.     /**
  354.      * @return type
  355.      */
  356.     public function getRfwNameProcessedFile() {
  357.         return $this->rfwNameProcessedFile;
  358.     }
  359.     /**
  360.      * @return type
  361.      */
  362.     public function getRfwStatus() {
  363.         return $this->rfwStatus;
  364.     }
  365.     /**
  366.      * @return type
  367.      */
  368.     public function getRfwLicenseId() {
  369.         return $this->rfwLicenseId;
  370.     }
  371.     /**
  372.      * @return type
  373.      */
  374.     public function getRfwDateSincAsk() {
  375.         return $this->rfwDateSincAsk;
  376.     }
  377.     /**
  378.      * @return type
  379.      */
  380.     public function getRfwDateFileProcessed() {
  381.         return $this->rfwDateFileProcessed;
  382.     }
  383.     /**
  384.      * @return type
  385.      */
  386.     public function getRfwClientResponseFile() {
  387.         return $this->rfwClientResponseFile;
  388.     }
  389.     /**
  390.      * @return type
  391.      */
  392.     public function getIsReadedByServer() {
  393.         return $this->isReadedByServer;
  394.     }
  395.     /**
  396.      * @param type $rfwNameProcessedFile
  397.      */
  398.     public function setRfwNameProcessedFile($rfwNameProcessedFile) {
  399.         $this->rfwNameProcessedFile $rfwNameProcessedFile;
  400.     }
  401.     /**
  402.      * @param type $rfwStatus
  403.      */
  404.     public function setRfwStatus($rfwStatus) {
  405.         $this->rfwStatus $rfwStatus;
  406.     }
  407.     /**
  408.      * @param \App\Entity\AccountLicense $rfwLicenseId
  409.      */
  410.     public function setRfwLicenseId(\App\Entity\AccountLicense $rfwLicenseId) {
  411.         $this->rfwLicenseId $rfwLicenseId;
  412.     }
  413.     /**
  414.      * @param \DateTime $rfwDateSincAsk
  415.      */
  416.     public function setRfwDateSincAsk(\DateTime $rfwDateSincAsk null) {
  417.         $this->rfwDateSincAsk $rfwDateSincAsk;
  418.     }
  419.     /**
  420.      * @param \DateTime $rfwDateFileProcessed
  421.      */
  422.     public function setRfwDateFileProcessed(\DateTime $rfwDateFileProcessed null) {
  423.         $this->rfwDateFileProcessed $rfwDateFileProcessed;
  424.     }
  425.     /**
  426.      * @param type $rfwClientResponseFile
  427.      */
  428.     public function setRfwClientResponseFile($rfwClientResponseFile) {
  429.         $this->rfwClientResponseFile $rfwClientResponseFile;
  430.     }
  431.     /**
  432.      * @param type $isReadedByServer
  433.      */
  434.     public function setIsReadedByServer($isReadedByServer) {
  435.         $this->isReadedByServer $isReadedByServer;
  436.     }
  437.     /**
  438.      * @return type
  439.      */
  440.     public function getRfwDateAndroidRespond() {
  441.         return $this->rfwDateAndroidRespond;
  442.     }
  443.     /**
  444.      * @param \DateTime $rfwDateAndroidRespond
  445.      */
  446.     public function setRfwDateAndroidRespond(\DateTime $rfwDateAndroidRespond null) {
  447.         $this->rfwDateAndroidRespond $rfwDateAndroidRespond;
  448.     }
  449.     /**
  450.      * @return type
  451.      */
  452.     public function getApplicationMode() {
  453.         return $this->applicationMode;
  454.     }
  455.     /**
  456.      * @param type $applicationMode
  457.      */
  458.     public function setApplicationMode($applicationMode) {
  459.         $this->applicationMode $applicationMode;
  460.     }
  461.     /**
  462.      * @return type
  463.      */
  464.     public function getHasPersistentError() {
  465.         return $this->hasPersistentError;
  466.     }
  467.     /**
  468.      * @param type $hasPersistentError
  469.      */
  470.     public function setHasPersistentError($hasPersistentError) {
  471.         $this->hasPersistentError $hasPersistentError;
  472.     }
  473.     /**
  474.      * @return type
  475.      */
  476.     public function getPickedForConsumeDateOne() {
  477.         return $this->pickedForConsumeDateOne;
  478.     }
  479.     /**
  480.      * @param \DateTime $pickedForConsumeDateOne
  481.      */
  482.     public function setPickedForConsumeDateOne(\DateTime $pickedForConsumeDateOne null) {
  483.         $this->pickedForConsumeDateOne $pickedForConsumeDateOne;
  484.     }
  485.     /**
  486.      * @return type
  487.      */
  488.     public function getPickedForConsumeDateTwo() {
  489.         return $this->pickedForConsumeDateTwo;
  490.     }
  491.     /**
  492.      * @param \DateTime $pickedForConsumeDateTwo
  493.      */
  494.     public function setPickedForConsumeDateTwo(\DateTime $pickedForConsumeDateTwo null) {
  495.         $this->pickedForConsumeDateTwo $pickedForConsumeDateTwo;
  496.     }
  497.     /**
  498.      * @return type
  499.      */
  500.     public function getObtainedError() {
  501.         return $this->obtainedError;
  502.     }
  503.     /**
  504.      * @param type $obtainedError
  505.      */
  506.     public function setObtainedError($obtainedError) {
  507.         $this->obtainedError $obtainedError;
  508.     }
  509.     /**
  510.      * @return type
  511.      */
  512.     public function getRfwFileResponseExpected() {
  513.         return $this->rfwFileResponseExpected;
  514.     }
  515.     /**
  516.      * @param type $rfwFileResponseExpected
  517.      */
  518.     public function setRfwFileResponseExpected($rfwFileResponseExpected) {
  519.         $this->rfwFileResponseExpected $rfwFileResponseExpected;
  520.     }
  521.     /**
  522.      * @return type
  523.      */
  524.     public function getRfwOMTStatus() {
  525.         return $this->rfwOMTStatus;
  526.     }
  527.     /**
  528.      * @return type
  529.      */
  530.     public function getObtainedOMTError() {
  531.         return $this->obtainedOMTError;
  532.     }
  533.     /**
  534.      * @return type
  535.      */
  536.     public function getPickedOMTForConsumeDateOne() {
  537.         return $this->pickedOMTForConsumeDateOne;
  538.     }
  539.     /**
  540.      * @return type
  541.      */
  542.     public function getPickedOMTForConsumeDateTwo() {
  543.         return $this->pickedOMTForConsumeDateTwo;
  544.     }
  545.     /**
  546.      * @return type
  547.      */
  548.     public function getRfwOMTDateFileProcessed() {
  549.         return $this->rfwOMTDateFileProcessed;
  550.     }
  551.     /**
  552.      * @return type
  553.      */
  554.     public function getRfwOMTFileResponseExpected() {
  555.         return $this->rfwOMTFileResponseExpected;
  556.     }
  557.     /**
  558.      * @return type
  559.      */
  560.     public function getRfwOMTClientResponseFile() {
  561.         return $this->rfwOMTClientResponseFile;
  562.     }
  563.     /**
  564.      * @return type
  565.      */
  566.     public function getRfwOMTDateRespond() {
  567.         return $this->rfwOMTDateRespond;
  568.     }
  569.     /**
  570.      * @param type $rfwOMTStatus
  571.      */
  572.     public function setRfwOMTStatus($rfwOMTStatus) {
  573.         $this->rfwOMTStatus $rfwOMTStatus;
  574.     }
  575.     /**
  576.      * @param type $obtainedOMTError
  577.      */
  578.     public function setObtainedOMTError($obtainedOMTError) {
  579.         $this->obtainedOMTError $obtainedOMTError;
  580.     }
  581.     /**
  582.      * @param \DateTime $pickedOMTForConsumeDateOne
  583.      */
  584.     public function setPickedOMTForConsumeDateOne(\DateTime $pickedOMTForConsumeDateOne null) {
  585.         $this->pickedOMTForConsumeDateOne $pickedOMTForConsumeDateOne;
  586.     }
  587.     /**
  588.      * @param \DateTime $pickedOMTForConsumeDateTwo
  589.      */
  590.     public function setPickedOMTForConsumeDateTwo(\DateTime $pickedOMTForConsumeDateTwo null) {
  591.         $this->pickedOMTForConsumeDateTwo $pickedOMTForConsumeDateTwo;
  592.     }
  593.     /**
  594.      * @param type $rfwOMTDateFileProcessed
  595.      */
  596.     public function setRfwOMTDateFileProcessed(\DateTime $rfwOMTDateFileProcessed null) {
  597.         $this->rfwOMTDateFileProcessed $rfwOMTDateFileProcessed;
  598.     }
  599.     /**
  600.      * @param type $rfwOMTFileResponseExpected
  601.      */
  602.     public function setRfwOMTFileResponseExpected($rfwOMTFileResponseExpected) {
  603.         $this->rfwOMTFileResponseExpected $rfwOMTFileResponseExpected;
  604.     }
  605.     /**
  606.      * @param type $rfwOMTClientResponseFile
  607.      */
  608.     public function setRfwOMTClientResponseFile($rfwOMTClientResponseFile) {
  609.         $this->rfwOMTClientResponseFile $rfwOMTClientResponseFile;
  610.     }
  611.     /**
  612.      * @param \DateTime $rfwOMTDateRespond
  613.      */
  614.     public function setRfwOMTDateRespond(\DateTime $rfwOMTDateRespond null) {
  615.         $this->rfwOMTDateRespond $rfwOMTDateRespond;
  616.     }
  617.     /**
  618.      * @return type
  619.      */
  620.     public function getHasOMTPersistentError() {
  621.         return $this->hasOMTPersistentError;
  622.     }
  623.     /**
  624.      * @param type $hasOMTPersistentError
  625.      */
  626.     public function setHasOMTPersistentError($hasOMTPersistentError) {
  627.         $this->hasOMTPersistentError $hasOMTPersistentError;
  628.     }
  629.     /**
  630.      * @return type
  631.      */
  632.     public function getIsOMTReadedByServer() {
  633.         return $this->isOMTReadedByServer;
  634.     }
  635.     /**
  636.      * @param type $isOMTReadedByServer
  637.      */
  638.     public function setIsOMTReadedByServer($isOMTReadedByServer) {
  639.         $this->isOMTReadedByServer $isOMTReadedByServer;
  640.     }
  641.     /**
  642.      * @return type
  643.      */
  644.     public function getRfwOMTNameProcessedFile() {
  645.         return $this->rfwOMTNameProcessedFile;
  646.     }
  647.     /**
  648.      * @param type $rfwOMTNameProcessedFile
  649.      */
  650.     public function setRfwOMTNameProcessedFile($rfwOMTNameProcessedFile) {
  651.         $this->rfwOMTNameProcessedFile $rfwOMTNameProcessedFile;
  652.     }
  653.     /**
  654.      * Get the value of sentAsOMTMassiveSync
  655.      *
  656.      * @return  bool
  657.      */ 
  658.     public function getSentAsOMTMassiveSync() {
  659.         return $this->sentAsOMTMassiveSync;
  660.     }
  661.     /**
  662.      * Set the value of sentAsOMTMassiveSync
  663.      *
  664.      * @param  bool  $sentAsOMTMassiveSync
  665.      *
  666.      * @return  self
  667.      */ 
  668.     public function setSentAsOMTMassiveSync(bool $sentAsOMTMassiveSync) {
  669.         $this->sentAsOMTMassiveSync $sentAsOMTMassiveSync;
  670.         return $this;
  671.     }
  672.     /**
  673.      * @return type
  674.      */
  675.     public function __toString() {
  676.         return '' $this->id;
  677.     }
  678. }