package com.fitbank.hb.persistence.sifco;

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

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

/**
* 
*/
private Date fpago;

/**Contructor por defecto*/
public TloanpaymentsifcocoexistenceKey(){}
/**Contructor de TloanpaymentsifcocoexistenceKey
@param pCcuenta null
@param pFpago null
*/
public TloanpaymentsifcocoexistenceKey(String pCcuenta,Date pFpago){
 ccuenta=pCcuenta;
 fpago=pFpago;
}
public static final String CCUENTA="CCUENTA";
/**Obtiene el valor de ccuenta
@return valor de ccuenta*/
public String getCcuenta(){
  return ccuenta;
}
/**Fija el valor de ccuenta
@param pCcuenta nuevo Valor de ccuenta*/
public void setCcuenta(String pCcuenta){
  ccuenta=pCcuenta;
}

public static final String FPAGO="FPAGO";
/**Obtiene el valor de fpago
@return valor de fpago*/
public Date getFpago(){
  return fpago;
}
/**Fija el valor de fpago
@param pFpago nuevo Valor de fpago*/
public void setFpago(Date pFpago){
  fpago=pFpago;
}

public static final String PK_CCUENTA="CCUENTA";
public static final String PK_FPAGO="FPAGO";
/**Implementaci�n de la comparaci�n de TloanpaymentsifcocoexistenceKey
@param o Objeto de comparaciï¿½n
*/
public boolean equals(Object o){
  if (o == null){return false;}
  if (! (o instanceof TloanpaymentsifcocoexistenceKey)){return false;}
  TloanpaymentsifcocoexistenceKey that = (TloanpaymentsifcocoexistenceKey) o;
  if (this.getCcuenta() == null || that.getCcuenta() == null){
      return false;
  }
  if (! this.getCcuenta().equals(that.getCcuenta())){
    return false;
  }
  if (this.getFpago() == null || that.getFpago() == null){
      return false;
  }
  if (! this.getFpago().equals(that.getFpago())){
    return false;
  }
  return true;
}
/**Implementaci�n del m�todo hashCode bajo el patr�n de Bloch
@return hashCode de la instancia TloanpaymentsifcocoexistenceKey
*/
public int hashCode(){
  if (this.hashValue == 0){
    int result = 17;
    result = result * 37 + (this.getCcuenta() == null ? 0 : this.getCcuenta().hashCode());
    result = result * 37 + (this.getFpago() == null ? 0 : this.getFpago().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;
	}
}
