package com.fitbank.hb.persistence.cash;

import java.io.Serializable;
import java.lang.reflect.Field;

/**Clase que hace referencia a la Clave Primaria de VCAJATRANSACCIONESREVERSADAS*/
public class VboxTransactionsReversadasKey    implements Serializable,Cloneable{
/** Nombre de la Tabla VCAJATRANSACCIONESREVERSADAS */
public static final String TABLE_NAME = "VCAJATRANSACCIONESREVERSADAS";
/** HashCode asociado con la Instancia*/
private int hashValue = 0;
/** Version de la Clase*/
private static final long serialVersionUID = 1L;
/**
*  
*/
private String numeromensaje;

/**
*  
*/
private Long stransaccion;

/**Contructor por defecto*/
public VboxTransactionsReversadasKey(){}
/**Contructor de VboxTransactionsReversadasKey
@param pNumeromensaje  
@param pStransaccion  
*/
public VboxTransactionsReversadasKey(String pNumeromensaje,Long pStransaccion){
 numeromensaje=pNumeromensaje;
 stransaccion=pStransaccion;
}
public static final String NUMEROMENSAJE="NUMEROMENSAJE";
/**Obtiene el valor de numeromensaje
@return valor de numeromensaje*/
public String getNumeromensaje(){
  return numeromensaje;
}
/**Fija el valor de numeromensaje
@param pNumeromensaje nuevo Valor de numeromensaje*/
public void setNumeromensaje(String pNumeromensaje){
  numeromensaje=pNumeromensaje;
}

public static final String STRANSACCION="STRANSACCION";
/**Obtiene el valor de stransaccion
@return valor de stransaccion*/
public Long getStransaccion(){
  return stransaccion;
}
/**Fija el valor de stransaccion
@param pStransaccion nuevo Valor de stransaccion*/
public void setStransaccion(Long pStransaccion){
  stransaccion=pStransaccion;
}

public static final String PK_NUMEROMENSAJE="NUMEROMENSAJE";
public static final String PK_STRANSACCION="STRANSACCION";
/**Implementaciï¿½n de la comparaciï¿½n de VboxTransactionsReversadasKey
@param o Objeto de comparaciÃ¯Â¿Â½n
*/
public boolean equals(Object o){
  if (o == null){return false;}
  if (! (o instanceof VboxTransactionsReversadasKey)){return false;}
  VboxTransactionsReversadasKey that = (VboxTransactionsReversadasKey) o;
  if (this.getNumeromensaje() == null || that.getNumeromensaje() == null){
      return false;
  }
  if (! this.getNumeromensaje().equals(that.getNumeromensaje())){
    return false;
  }
  if (this.getStransaccion() == null || that.getStransaccion() == null){
      return false;
  }
  if (! this.getStransaccion().equals(that.getStransaccion())){
    return false;
  }
  return true;
}
/**Implementaciï¿½n del mï¿½todo hashCode bajo el patrï¿½n de Bloch
@return hashCode de la instancia VboxTransactionsReversadasKey
*/
public int hashCode(){
  if (this.hashValue == 0){
    int result = 17;
    result = result * 37 + (this.getNumeromensaje() == null ? 0 : this.getNumeromensaje().hashCode());
    result = result * 37 + (this.getStransaccion() == null ? 0 : this.getStransaccion().hashCode());
    this.hashValue = result;
  }
  return this.hashValue;
}
public Object cloneMe() throws Exception {
  return this.clone();
}
/**Implementaciï¿½n toString
*/
public String toString() {
	Field[]fs=this.getClass().getDeclaredFields();
	String data="";
	for(Field f:fs){
	 try{	
	 String name=f.getName();
	 if(name.compareTo("hashValue")==0||name.compareTo("serialVersionUID")==0){continue;}
		data+="pk."+name+"="+f.get(this)+";";
	 }catch(Exception e){
		 continue;
	 }
		}
		if(data.compareTo("")==0){
		data=super.toString();
		}
	return data;
	}
}
