package com.ejie.aa20b.model;

import java.sql.Blob;
import org.codehaus.jackson.annotate.JsonIgnore;

/**
 * Partefirma generated by UDA, 13-ene-2015 13:00:39.
 * 
 * @author UDA
 */

public class Partefirma implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	private Integer idparte;
	private Integer idtecnico;
	private Integer idpartec;
	private Blob firma;
	private byte[] firmaArray;

	/**
	 * Method 'Partefirma'.
	 */
	public Partefirma() {
	}

	/**
	 * Method 'Partefirma'.
	 * 
	 * @param idparte
	 *            Integer
	 * @param firma
	 *            Blob
	 */
	public Partefirma(Integer idparte, Integer idtecnico, Integer idpartec,
			Blob firma) {

		this.idparte = idparte;
		this.idtecnico = idtecnico;
		this.idpartec = idpartec;
		this.firma = firma;

	}

	/**
	 * Method 'getIdparte'.
	 * 
	 * @return Integer
	 */

	public Integer getIdparte() {
		return this.idparte;
	}

	/**
	 * Method 'setIdparte'.
	 * 
	 * @param idparte
	 *            Integer
	 * @return
	 */

	public void setIdparte(Integer idparte) {
		this.idparte = idparte;
	}

	public Integer getIdtecnico() {
		return idtecnico;
	}

	public void setIdtecnico(Integer idtecnico) {
		this.idtecnico = idtecnico;
	}

	public Integer getIdpartec() {
		return idpartec;
	}

	public void setIdpartec(Integer idpartec) {
		this.idpartec = idpartec;
	}

	/**
	 * Method 'getFirma'.
	 * 
	 * @return Blob
	 */
	@JsonIgnore
	public Blob getFirma() {
		return this.firma;
	}

	/**
	 * Method 'setFirma'.
	 * 
	 * @param firma
	 *            Blob
	 * @return
	 */

	public void setFirma(Blob firma) {
		this.firma = firma;
	}

	public byte[] getFirmaArray() {
		return firmaArray;
	}

	public void setFirmaArray(byte[] firmaArray) {
		this.firmaArray = firmaArray;
	}

	/**
	 * Intended only for logging and debugging.
	 * 
	 * Here, the contents of every main field are placed into the result.
	 * 
	 * @return String
	 */
	@Override
	public String toString() {
		StringBuilder result = new StringBuilder();
		result.append(this.getClass().getName()).append(" Object { ");
		result.append(" [ idparte: ").append(this.idparte).append(" ]");
		result.append(" [ idtecnico: ").append(this.idtecnico).append(" ]");
		result.append(" [ idpartec: ").append(this.idpartec).append(" ]");
		result.append("}");
		return result.toString();
	}

}
