/*
 * This file is part of ***  M y C o R e  ***
 * See http://www.mycore.de/ for details.
 *
 * MyCoRe is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * MyCoRe is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with MyCoRe.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.mycore.backend.jpa.dnbtransfer;

import java.io.Serializable;
import java.util.Date;

import jakarta.persistence.Basic;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;

@Entity
public class MCRDNBTRANSFERRESULTS implements Serializable {

    private static final long serialVersionUID = -5543608475323581768L;

    private int id;

    private boolean transferPackageArchived;

    private String protocolType, errorMessage, deliveryRole, objectId, errorModule, tpName;

    private Date date;

    /**
     * @return the id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public int getId() {
        return id;
    }

    /**
     * @param id
     *            the id to set
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * @return the transferPackageArchived
     */
    @Basic
    @Column(name = "TRANSFERPACKAGEARCHIVED")
    public boolean getTransferPackageArchived() {
        return transferPackageArchived;
    }

    /**
     * @param transferPackageArchived
     *            the transferPackageArchived to set
     */
    public void setTransferPackageArchived(boolean transferPackageArchived) {
        this.transferPackageArchived = transferPackageArchived;
    }

    /**
     * @return the protocolType
     */
    @Basic
    @Column(name = "PROTOCOLTYPE", length = 9, nullable = false)
    public String getProtocolType() {
        return protocolType;
    }

    /**
     * @param protocolType
     *            the protocolType to set
     */
    public void setProtocolType(String protocolType) {
        this.protocolType = protocolType;
    }

    /**
     * @return the tpName
     */
    @Basic
    @Column(name = "TP_NAME", length = 9, nullable = false)
    public String getTpName() {
        return tpName;
    }

    /**
     * @param tpName the tpName to set
     */
    public void setTpName(String tpName) {
        this.tpName = tpName;
    }

    /**
     * @return the errorMessage
     */
    @Basic
    @Column(name = "ERRORMESSAGE", length = 1024)
    public String getErrorMessage() {
        return errorMessage;
    }

    /**
     * @param errorMessage
     *            the errorMessage to set
     */
    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    /**
     * @return the deliveryRole
     */
    @Basic
    @Column(name = "DELIVERYROLE", length = 32, nullable = false)
    public String getDeliveryRole() {
        return deliveryRole;
    }

    /**
     * @param deliveryRole
     *            the deliveryRole to set
     */
    public void setDeliveryRole(String deliveryRole) {
        this.deliveryRole = deliveryRole;
    }

    /**
     * @return the objectId
     */
    @Basic
    @Column(name = "OBJECTID", length = 124)
    public String getObjectId() {
        return objectId;
    }

    /**
     * @param objectId
     *            the objectId to set
     */
    public void setObjectId(String objectId) {
        this.objectId = objectId;
    }

    /**
     * @return the errorModule
     */
    @Basic
    @Column(name = "ERRORMODULE", length = 64)
    public String getErrorModule() {
        return errorModule;
    }

    /**
     * @param errorModule
     *            the errorModule to set
     */
    public void setErrorModule(String errorModule) {
        this.errorModule = errorModule;
    }

    /**
     * @return the date
     */
    @Basic
    @Column(name = "DATE", nullable = false)
    public Date getDate() {
        return date;
    }

    /**
     * @param date
     *            the date to set
     */
    public void setDate(Date date) {
        this.date = date;
    }
}
