|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.fenalco.entities.City
public class City
| Field Summary | |
|---|---|
private int |
id
id de la ciudad en la base de datos |
private java.lang.String |
name
Nombre de la ciudad |
private int |
province
id del departamento |
| Constructor Summary | |
|---|---|
City()
Constructor por defecto del la clase |
|
City(int id)
Constructor de la clase |
|
| Method Summary | |
|---|---|
boolean |
delete(Transaction transaction)
Operación para eliminar la sección de la base de datos |
int |
getId()
Getter for property id. |
java.lang.String |
getName()
Getter for property name. |
int |
getProvince()
Getter for property province. |
boolean |
loadData(int id)
Operación para guardar el objeto de base de datos |
boolean |
saveData(Transaction transaction)
Operación para guardar el objeto de base de datos |
void |
setId(int id)
Setter for property id. |
void |
setName(java.lang.String name)
Setter for property name. |
void |
setProvince(int province)
Setter for property province. |
boolean |
update(Transaction transaction)
Operación para actualizar la sección en la base de datos |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int id
private java.lang.String name
private int province
| Constructor Detail |
|---|
public City()
public City(int id)
id - id del ciudad en la base de datos| Method Detail |
|---|
public boolean loadData(int id)
public boolean saveData(Transaction transaction)
public boolean update(Transaction transaction)
public boolean delete(Transaction transaction)
public int getId()
public void setId(int id)
id - New value of property id.public java.lang.String getName()
public void setName(java.lang.String name)
name - New value of property name.public int getProvince()
public void setProvince(int province)
province - New value of property province.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||