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.
153 lines
2.8 KiB
153 lines
2.8 KiB
/*
|
|
* Contacto.java
|
|
*
|
|
* Generated by com.evutils.codegen.JDOObjectGenerator on 13/Out/2004
|
|
*
|
|
* Use but DON'T TOUCH
|
|
*/
|
|
package siprp.data;
|
|
|
|
import java.util.Date;
|
|
import com.evolute.utils.jdo.*;
|
|
|
|
public final class Contacto implements JDOInnerObject
|
|
{
|
|
private Integer id;
|
|
private String nome;
|
|
private String cargo;
|
|
private String telefone;
|
|
private String telemovel;
|
|
private String fax;
|
|
private String email;
|
|
|
|
public Contacto()
|
|
{
|
|
}
|
|
|
|
public Object getField( String fieldName )
|
|
{
|
|
if( fieldName == ContactoData.ID )
|
|
{
|
|
return id;
|
|
}
|
|
else if( fieldName == ContactoData.NOME )
|
|
{
|
|
return nome;
|
|
}
|
|
else if( fieldName == ContactoData.CARGO )
|
|
{
|
|
return cargo;
|
|
}
|
|
else if( fieldName == ContactoData.TELEFONE )
|
|
{
|
|
return telefone;
|
|
}
|
|
else if( fieldName == ContactoData.TELEMOVEL )
|
|
{
|
|
return telemovel;
|
|
}
|
|
else if( fieldName == ContactoData.FAX )
|
|
{
|
|
return fax;
|
|
}
|
|
else if( fieldName == ContactoData.EMAIL )
|
|
{
|
|
return email;
|
|
}
|
|
else if( fieldName.equals( ContactoData.ID ) )
|
|
{
|
|
return id;
|
|
}
|
|
else if( fieldName.equals( ContactoData.NOME ) )
|
|
{
|
|
return nome;
|
|
}
|
|
else if( fieldName.equals( ContactoData.CARGO ) )
|
|
{
|
|
return cargo;
|
|
}
|
|
else if( fieldName.equals( ContactoData.TELEFONE ) )
|
|
{
|
|
return telefone;
|
|
}
|
|
else if( fieldName.equals( ContactoData.TELEMOVEL ) )
|
|
{
|
|
return telemovel;
|
|
}
|
|
else if( fieldName.equals( ContactoData.FAX ) )
|
|
{
|
|
return fax;
|
|
}
|
|
else if( fieldName.equals( ContactoData.EMAIL ) )
|
|
{
|
|
return email;
|
|
}
|
|
return null;
|
|
}
|
|
|
|
public void setField( String fieldName, Object value )
|
|
{
|
|
if( fieldName == ContactoData.ID )
|
|
{
|
|
id = ( Integer ) value;
|
|
}
|
|
else if( fieldName == ContactoData.NOME )
|
|
{
|
|
nome = ( String ) value;
|
|
}
|
|
else if( fieldName == ContactoData.CARGO )
|
|
{
|
|
cargo = ( String ) value;
|
|
}
|
|
else if( fieldName == ContactoData.TELEFONE )
|
|
{
|
|
telefone = ( String ) value;
|
|
}
|
|
else if( fieldName == ContactoData.TELEMOVEL )
|
|
{
|
|
telemovel = ( String ) value;
|
|
}
|
|
else if( fieldName == ContactoData.FAX )
|
|
{
|
|
fax = ( String ) value;
|
|
}
|
|
else if( fieldName == ContactoData.EMAIL )
|
|
{
|
|
email = ( String ) value;
|
|
}
|
|
else if( fieldName.equals( ContactoData.ID ) )
|
|
{
|
|
id = ( Integer ) value;
|
|
}
|
|
else if( fieldName.equals( ContactoData.NOME ) )
|
|
{
|
|
nome = ( String ) value;
|
|
}
|
|
else if( fieldName.equals( ContactoData.CARGO ) )
|
|
{
|
|
cargo = ( String ) value;
|
|
}
|
|
else if( fieldName.equals( ContactoData.TELEFONE ) )
|
|
{
|
|
telefone = ( String ) value;
|
|
}
|
|
else if( fieldName.equals( ContactoData.TELEMOVEL ) )
|
|
{
|
|
telemovel = ( String ) value;
|
|
}
|
|
else if( fieldName.equals( ContactoData.FAX ) )
|
|
{
|
|
fax = ( String ) value;
|
|
}
|
|
else if( fieldName.equals( ContactoData.EMAIL ) )
|
|
{
|
|
email = ( String ) value;
|
|
}
|
|
}
|
|
|
|
public Class getOuterClass()
|
|
{
|
|
return ContactoData.class;
|
|
}
|
|
}
|