package com.fitbank.hb.persistence.uci;

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

/**Clase que hace referencia a la Clave Primaria de TCANALCONVERSIONRESPUESTAS*/
public class TanswerconversionchannelKey    implements Serializable,Cloneable{
/** Nombre de la Tabla TCANALCONVERSIONRESPUESTAS */
public static final String TABLE_NAME = "TCANALCONVERSIONRESPUESTAS";
/** HashCode asociado con la Instancia*/
private int hashValue = 0;
/** Version de la Clase*/
private static final long serialVersionUID = 1L;
/**
* Codigo del canal o red de cajeros origen
*/
private String ccanal_origen;

/**
* Codigo del canal o red de cajeros destino
*/
private String ccanal_destino;

/**
* Codigo de respuesta a mensajes de transacciones enviadas o recibidas por una red de cajeros destino
*/
private String crespuesta_origen;

/**
* Codigo de respuesta a mensajes de transacciones enviadas o recibidas por una red de cajeros origen
*/
private String crespuesta_destino;

/**Contructor por defecto*/
public TanswerconversionchannelKey(){}
/**Contructor de TanswerconversionchannelKey
@param pCcanal_origen Codigo del canal o red de cajeros origen
@param pCcanal_destino Codigo del canal o red de cajeros destino
@param pCrespuesta_origen Codigo de respuesta a mensajes de transacciones enviadas o recibidas por una red de cajeros destino
@param pCrespuesta_destino Codigo de respuesta a mensajes de transacciones enviadas o recibidas por una red de cajeros origen
*/
public TanswerconversionchannelKey(String pCcanal_origen,String pCcanal_destino,String pCrespuesta_origen,String pCrespuesta_destino){
 ccanal_origen=pCcanal_origen;
 ccanal_destino=pCcanal_destino;
 crespuesta_origen=pCrespuesta_origen;
 crespuesta_destino=pCrespuesta_destino;
}
public static final String CCANAL_ORIGEN="CCANAL_ORIGEN";
/**Obtiene el valor de ccanal_origen
@return valor de ccanal_origen*/
public String getCcanal_origen(){
  return ccanal_origen;
}
/**Fija el valor de ccanal_origen
@param pCcanal_origen nuevo Valor de ccanal_origen*/
public void setCcanal_origen(String pCcanal_origen){
  ccanal_origen=pCcanal_origen;
}

public static final String CCANAL_DESTINO="CCANAL_DESTINO";
/**Obtiene el valor de ccanal_destino
@return valor de ccanal_destino*/
public String getCcanal_destino(){
  return ccanal_destino;
}
/**Fija el valor de ccanal_destino
@param pCcanal_destino nuevo Valor de ccanal_destino*/
public void setCcanal_destino(String pCcanal_destino){
  ccanal_destino=pCcanal_destino;
}

public static final String CRESPUESTA_ORIGEN="CRESPUESTA_ORIGEN";
/**Obtiene el valor de crespuesta_origen
@return valor de crespuesta_origen*/
public String getCrespuesta_origen(){
  return crespuesta_origen;
}
/**Fija el valor de crespuesta_origen
@param pCrespuesta_origen nuevo Valor de crespuesta_origen*/
public void setCrespuesta_origen(String pCrespuesta_origen){
  crespuesta_origen=pCrespuesta_origen;
}

public static final String CRESPUESTA_DESTINO="CRESPUESTA_DESTINO";
/**Obtiene el valor de crespuesta_destino
@return valor de crespuesta_destino*/
public String getCrespuesta_destino(){
  return crespuesta_destino;
}
/**Fija el valor de crespuesta_destino
@param pCrespuesta_destino nuevo Valor de crespuesta_destino*/
public void setCrespuesta_destino(String pCrespuesta_destino){
  crespuesta_destino=pCrespuesta_destino;
}

public static final String PK_CCANAL_ORIGEN="CCANAL_ORIGEN";
public static final String PK_CCANAL_DESTINO="CCANAL_DESTINO";
public static final String PK_CRESPUESTA_ORIGEN="CRESPUESTA_ORIGEN";
public static final String PK_CRESPUESTA_DESTINO="CRESPUESTA_DESTINO";
/**Implementaci?n de la comparaci?n de TanswerconversionchannelKey
@param o Objeto de comparaci?n
*/
public boolean equals(Object o){
  if (o == null){return false;}
  if (! (o instanceof TanswerconversionchannelKey)){return false;}
  TanswerconversionchannelKey that = (TanswerconversionchannelKey) o;
  if (this.getCcanal_origen() == null || that.getCcanal_origen() == null){
      return false;
  }
  if (! this.getCcanal_origen().equals(that.getCcanal_origen())){
    return false;
  }
  if (this.getCcanal_destino() == null || that.getCcanal_destino() == null){
      return false;
  }
  if (! this.getCcanal_destino().equals(that.getCcanal_destino())){
    return false;
  }
  if (this.getCrespuesta_origen() == null || that.getCrespuesta_origen() == null){
      return false;
  }
  if (! this.getCrespuesta_origen().equals(that.getCrespuesta_origen())){
    return false;
  }
  if (this.getCrespuesta_destino() == null || that.getCrespuesta_destino() == null){
      return false;
  }
  if (! this.getCrespuesta_destino().equals(that.getCrespuesta_destino())){
    return false;
  }
  return true;
}
/**Implementaci?n del m?todo hashCode bajo el patr?n de Bloch
@return hashCode de la instancia TanswerconversionchannelKey
*/
public int hashCode(){
  if (this.hashValue == 0){
    int result = 17;
    result = result * 37 + (this.getCcanal_origen() == null ? 0 : this.getCcanal_origen().hashCode());
    result = result * 37 + (this.getCcanal_destino() == null ? 0 : this.getCcanal_destino().hashCode());
    result = result * 37 + (this.getCrespuesta_origen() == null ? 0 : this.getCrespuesta_origen().hashCode());
    result = result * 37 + (this.getCrespuesta_destino() == null ? 0 : this.getCrespuesta_destino().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;
	}
}
