package com.fitbank.hb.persistence.batch;

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

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

/**
*  
*/
private Date fcontable;

/**Contructor por defecto*/
public VlogbatchprocessKey(){}
/**Contructor de VlogbatchprocessKey
@param pCsubsistema  
@param pFcontable  
*/
public VlogbatchprocessKey(String pCsubsistema,Date pFcontable){
 csubsistema=pCsubsistema;
 fcontable=pFcontable;
}
public static final String CSUBSISTEMA="CSUBSISTEMA";
/**Obtiene el valor de csubsistema
@return valor de csubsistema*/
public String getCsubsistema(){
  return csubsistema;
}
/**Fija el valor de csubsistema
@param pCsubsistema nuevo Valor de csubsistema*/
public void setCsubsistema(String pCsubsistema){
  csubsistema=pCsubsistema;
}

public static final String FCONTABLE="FCONTABLE";
/**Obtiene el valor de fcontable
@return valor de fcontable*/
public Date getFcontable(){
  return fcontable;
}
/**Fija el valor de fcontable
@param pFcontable nuevo Valor de fcontable*/
public void setFcontable(Date pFcontable){
  fcontable=pFcontable;
}

public static final String PK_CSUBSISTEMA="CSUBSISTEMA";
public static final String PK_FCONTABLE="FCONTABLE";
/**Implementaci?n de la comparaci?n de VlogbatchprocessKey
@param o Objeto de comparaci?n
*/
public boolean equals(Object o){
  if (o == null){return false;}
  if (! (o instanceof VlogbatchprocessKey)){return false;}
  VlogbatchprocessKey that = (VlogbatchprocessKey) o;
  if (this.getCsubsistema() == null || that.getCsubsistema() == null){
      return false;
  }
  if (! this.getCsubsistema().equals(that.getCsubsistema())){
    return false;
  }
  if (this.getFcontable() == null || that.getFcontable() == null){
      return false;
  }
  if (! this.getFcontable().equals(that.getFcontable())){
    return false;
  }
  return true;
}
/**Implementaci?n del m?todo hashCode bajo el patr?n de Bloch
@return hashCode de la instancia VlogbatchprocessKey
*/
public int hashCode(){
  if (this.hashValue == 0){
    int result = 17;
    result = result * 37 + (this.getCsubsistema() == null ? 0 : this.getCsubsistema().hashCode());
    result = result * 37 + (this.getFcontable() == null ? 0 : this.getFcontable().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;
	}
}
