Añado los fuentes de java
This commit is contained in:
@@ -0,0 +1,347 @@
|
||||
/**
|
||||
* @(#) Usuario.java
|
||||
*/
|
||||
package com.tarisan.data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.sql.Date;
|
||||
import java.sql.Timestamp;
|
||||
|
||||
/**
|
||||
* Usuario (médico) conectado a la aplicación Tarisan.
|
||||
* @author <a href="mailto:sistemas@imqnavarra.com">Dpto. Informática</a>
|
||||
* @version 1.0, 24/09/2003
|
||||
*/
|
||||
public class Usuario implements Serializable
|
||||
{
|
||||
/**
|
||||
*/
|
||||
private int medico;
|
||||
|
||||
/**
|
||||
*/
|
||||
private String nombre;
|
||||
|
||||
/**
|
||||
*/
|
||||
private int especialidad;
|
||||
|
||||
/**
|
||||
*/
|
||||
private int tarifa;
|
||||
|
||||
/**
|
||||
*/
|
||||
private String nombreCab;
|
||||
|
||||
/**
|
||||
*/
|
||||
private String direccionCab;
|
||||
|
||||
/**
|
||||
*/
|
||||
private int cpCab;
|
||||
|
||||
/**
|
||||
*/
|
||||
private String telefonoCab;
|
||||
|
||||
/**
|
||||
*/
|
||||
private String poblacionCab;
|
||||
|
||||
/**
|
||||
*/
|
||||
private String colegiadoCab;
|
||||
|
||||
/**
|
||||
*/
|
||||
private String especialidadCab;
|
||||
|
||||
/**
|
||||
*/
|
||||
private Date fechaCaducidad;
|
||||
|
||||
/**
|
||||
*/
|
||||
private Timestamp fechaUltAcceso;
|
||||
|
||||
/**
|
||||
*/
|
||||
private String emailCab;
|
||||
|
||||
|
||||
/**
|
||||
* @return
|
||||
*/
|
||||
public int getMedico()
|
||||
{
|
||||
return this.medico;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param medico
|
||||
* @return
|
||||
*/
|
||||
public void setMedico(int medico)
|
||||
{
|
||||
this.medico = medico;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return
|
||||
*/
|
||||
public String getNombre()
|
||||
{
|
||||
if (this.nombre==null)
|
||||
return "";
|
||||
else
|
||||
return this.nombre;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param nombre
|
||||
* @return
|
||||
*/
|
||||
public void setNombre(String nombre)
|
||||
{
|
||||
this.nombre = nombre;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return
|
||||
*/
|
||||
public int getEspecialidad()
|
||||
{
|
||||
return this.especialidad;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param especialidad
|
||||
* @return
|
||||
*/
|
||||
public void setEspecialidad(int especialidad)
|
||||
{
|
||||
this.especialidad = especialidad;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return
|
||||
*/
|
||||
public int getTarifa()
|
||||
{
|
||||
return this.tarifa;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param tarifa
|
||||
* @return
|
||||
*/
|
||||
public void setTarifa(int tarifa)
|
||||
{
|
||||
this.tarifa = tarifa;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return
|
||||
*/
|
||||
public String getNombreCab()
|
||||
{
|
||||
if (this.nombreCab==null)
|
||||
return "";
|
||||
else
|
||||
return this.nombreCab;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param nombreCab
|
||||
* @return
|
||||
*/
|
||||
public void setNombreCab(String nombreCab)
|
||||
{
|
||||
this.nombreCab = nombreCab;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return
|
||||
*/
|
||||
public String getDireccionCab()
|
||||
{
|
||||
if (this.direccionCab==null)
|
||||
return "";
|
||||
else
|
||||
return this.direccionCab;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param direccionCab
|
||||
* @return
|
||||
*/
|
||||
public void setDireccionCab(String direccionCab)
|
||||
{
|
||||
this.direccionCab = direccionCab;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return
|
||||
*/
|
||||
public int getCpCab()
|
||||
{
|
||||
return this.cpCab;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param cpCab
|
||||
* @return
|
||||
*/
|
||||
public void setCpCab(int cpCab)
|
||||
{
|
||||
this.cpCab = cpCab;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return
|
||||
*/
|
||||
public String getTelefonoCab()
|
||||
{
|
||||
if (this.telefonoCab==null)
|
||||
return "";
|
||||
else
|
||||
return this.telefonoCab;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param telefonoCab
|
||||
* @return
|
||||
*/
|
||||
public void setTelefonoCab(String telefonoCab)
|
||||
{
|
||||
this.telefonoCab = telefonoCab;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return
|
||||
*/
|
||||
public String getPoblacionCab()
|
||||
{
|
||||
if (this.poblacionCab==null)
|
||||
return "";
|
||||
else
|
||||
return this.poblacionCab;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param poblacionCab
|
||||
* @return
|
||||
*/
|
||||
public void setPoblacionCab(String poblacionCab)
|
||||
{
|
||||
this.poblacionCab = poblacionCab;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return
|
||||
*/
|
||||
public String getColegiadoCab()
|
||||
{
|
||||
if (this.colegiadoCab==null)
|
||||
return "";
|
||||
else
|
||||
return this.colegiadoCab;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param colegiadoCab
|
||||
* @return
|
||||
*/
|
||||
public void setColegiadoCab(String colegiadoCab)
|
||||
{
|
||||
this.colegiadoCab = colegiadoCab;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return
|
||||
*/
|
||||
public String getEspecialidadCab()
|
||||
{
|
||||
if (this.especialidadCab==null)
|
||||
return "";
|
||||
else
|
||||
return this.especialidadCab;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param especialidadCab
|
||||
* @return
|
||||
*/
|
||||
public void setEspecialidadCab(String especialidadCab)
|
||||
{
|
||||
this.especialidadCab = especialidadCab;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return
|
||||
*/
|
||||
public Date getFechaCaducidad()
|
||||
{
|
||||
return this.fechaCaducidad;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param fechaCaducidad
|
||||
* @return
|
||||
*/
|
||||
public void setFechaCaducidad(Date fechaCaducidad)
|
||||
{
|
||||
this.fechaCaducidad = fechaCaducidad;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return
|
||||
*/
|
||||
public Timestamp getFechaUltAcceso()
|
||||
{
|
||||
return this.fechaUltAcceso;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param fechaUltAcceso
|
||||
* @return
|
||||
*/
|
||||
public void setFechaUltAcceso(Timestamp fechaUltAcceso)
|
||||
{
|
||||
this.fechaUltAcceso = fechaUltAcceso;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Descripción de la instancia de la clase.
|
||||
* Devuelve, en forma de String, los datos del usuario conectado a Tarisan (nombre y appellidos del Doctor).
|
||||
* @return los datos del usuario conectado
|
||||
*/
|
||||
public String toString()
|
||||
{
|
||||
StringBuffer cadena = new StringBuffer();
|
||||
|
||||
cadena.append("Dr(a). ");
|
||||
cadena.append(nombre);
|
||||
|
||||
return cadena.toString();
|
||||
}
|
||||
|
||||
public String getEmailCab() {
|
||||
if (this.emailCab==null)
|
||||
return "";
|
||||
else
|
||||
return this.emailCab;
|
||||
}
|
||||
|
||||
public void setEmailCab(String emailCab) {
|
||||
this.emailCab = emailCab;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user