forked from Coded/SIPRP
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
85 lines
1.4 KiB
85 lines
1.4 KiB
/*
|
|
* Medida.java
|
|
*
|
|
* Created on October 19, 2007, 4:59 PM
|
|
*
|
|
* To change this template, choose Tools | Template Manager
|
|
* and open the template in the editor.
|
|
*/
|
|
|
|
package beans;
|
|
|
|
import db.data.siprp.outer.MedidasData;
|
|
|
|
import java.io.Serializable;
|
|
|
|
/**
|
|
*
|
|
* @author lluis
|
|
*/
|
|
public class Medida implements Serializable
|
|
{
|
|
private Integer id;
|
|
private Integer analise_id;
|
|
private String medida;
|
|
|
|
/** Creates a new instance of Medida */
|
|
public Medida() {
|
|
}
|
|
|
|
public Medida( MedidasData medidasData )
|
|
{
|
|
this.withId( medidasData.getId() )
|
|
.withAnalise_id( medidasData.getAnalise_id() )
|
|
.withMedida( medidasData.getMedida() );
|
|
}
|
|
|
|
public Medida withId( final Integer id )
|
|
{
|
|
this.id = id;
|
|
return this;
|
|
}
|
|
|
|
public Medida withAnalise_id( final Integer analise_id )
|
|
{
|
|
this.analise_id = analise_id;
|
|
return this;
|
|
}
|
|
|
|
public Medida withMedida( final String medida )
|
|
{
|
|
this.medida = medida;
|
|
return this;
|
|
}
|
|
|
|
public Integer getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public Integer getAnalise_id() {
|
|
return analise_id;
|
|
}
|
|
|
|
public void setAnalise_id(Integer analise_id) {
|
|
this.analise_id = analise_id;
|
|
}
|
|
|
|
public String getMedida() {
|
|
return medida;
|
|
}
|
|
|
|
public String getMedidaForSql()
|
|
{
|
|
return getMedida().replaceAll( "'", "''" );
|
|
}
|
|
|
|
public void setMedida(String medida) {
|
|
this.medida = medida;
|
|
}
|
|
|
|
}
|