View Javadoc
1   /*
2    * This file is part of ***  M y C o R e  ***
3    * See http://www.mycore.de/ for details.
4    *
5    * MyCoRe is free software: you can redistribute it and/or modify
6    * it under the terms of the GNU General Public License as published by
7    * the Free Software Foundation, either version 3 of the License, or
8    * (at your option) any later version.
9    *
10   * MyCoRe is distributed in the hope that it will be useful,
11   * but WITHOUT ANY WARRANTY; without even the implied warranty of
12   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13   * GNU General Public License for more details.
14   *
15   * You should have received a copy of the GNU General Public License
16   * along with MyCoRe.  If not, see <http://www.gnu.org/licenses/>.
17   */
18  
19  package org.mycore.backend.jpa.dnbtransfer;
20  
21  import java.io.Serializable;
22  import java.util.Date;
23  
24  import jakarta.persistence.Basic;
25  import jakarta.persistence.Column;
26  import jakarta.persistence.Entity;
27  import jakarta.persistence.GeneratedValue;
28  import jakarta.persistence.GenerationType;
29  import jakarta.persistence.Id;
30  
31  @Entity
32  public class MCRDNBTRANSFERRESULTS implements Serializable {
33  
34      /**
35       * 
36       */
37      private static final long serialVersionUID = -5543608475323581768L;
38  
39      private int id;
40  
41      private boolean transferPackageArchived;
42  
43      private String protocolType, errorMessage, deliveryRole, objectId, errorModule, tpName;
44  
45      private Date date;
46  
47      /**
48       * @return the id
49       */
50      @Id
51      @GeneratedValue(strategy = GenerationType.IDENTITY)
52      public int getId() {
53          return id;
54      }
55  
56      /**
57       * @param id
58       *            the id to set
59       */
60      public void setId(int id) {
61          this.id = id;
62      }
63  
64      /**
65       * @return the transferPackageArchived
66       */
67      @Basic
68      @Column(name = "TRANSFERPACKAGEARCHIVED")
69      public boolean getTransferPackageArchived() {
70          return transferPackageArchived;
71      }
72  
73      /**
74       * @param transferPackageArchived
75       *            the transferPackageArchived to set
76       */
77      public void setTransferPackageArchived(boolean transferPackageArchived) {
78          this.transferPackageArchived = transferPackageArchived;
79      }
80  
81      /**
82       * @return the protocolType
83       */
84      @Basic
85      @Column(name = "PROTOCOLTYPE", length = 9, nullable = false)
86      public String getProtocolType() {
87          return protocolType;
88      }
89  
90      /**
91       * @param protocolType
92       *            the protocolType to set
93       */
94      public void setProtocolType(String protocolType) {
95          this.protocolType = protocolType;
96      }
97  
98      /**
99       * @return the tpName
100      */
101     @Basic
102     @Column(name = "TP_NAME", length = 9, nullable = false)
103     public String getTpName() {
104         return tpName;
105     }
106 
107     /**
108      * @param tpName the tpName to set
109      */
110     public void setTpName(String tpName) {
111         this.tpName = tpName;
112     }
113 
114     /**
115      * @return the errorMessage
116      */
117     @Basic
118     @Column(name = "ERRORMESSAGE", length = 1024)
119     public String getErrorMessage() {
120         return errorMessage;
121     }
122 
123     /**
124      * @param errorMessage
125      *            the errorMessage to set
126      */
127     public void setErrorMessage(String errorMessage) {
128         this.errorMessage = errorMessage;
129     }
130 
131     /**
132      * @return the deliveryRole
133      */
134     @Basic
135     @Column(name = "DELIVERYROLE", length = 32, nullable = false)
136     public String getDeliveryRole() {
137         return deliveryRole;
138     }
139 
140     /**
141      * @param deliveryRole
142      *            the deliveryRole to set
143      */
144     public void setDeliveryRole(String deliveryRole) {
145         this.deliveryRole = deliveryRole;
146     }
147 
148     /**
149      * @return the objectId
150      */
151     @Basic
152     @Column(name = "OBJECTID", length = 124)
153     public String getObjectId() {
154         return objectId;
155     }
156 
157     /**
158      * @param objectId
159      *            the objectId to set
160      */
161     public void setObjectId(String objectId) {
162         this.objectId = objectId;
163     }
164 
165     /**
166      * @return the errorModule
167      */
168     @Basic
169     @Column(name = "ERRORMODULE", length = 64)
170     public String getErrorModule() {
171         return errorModule;
172     }
173 
174     /**
175      * @param errorModule
176      *            the errorModule to set
177      */
178     public void setErrorModule(String errorModule) {
179         this.errorModule = errorModule;
180     }
181 
182     /**
183      * @return the date
184      */
185     @Basic
186     @Column(name = "DATE", nullable = false)
187     public Date getDate() {
188         return date;
189     }
190 
191     /**
192      * @param date
193      *            the date to set
194      */
195     public void setDate(Date date) {
196         this.date = date;
197     }
198 }