|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.fenalco.entities.ShopKeeper
public class ShopKeeper
Esta clase representa a un minorista
| Field Summary | |
|---|---|
private int |
nurit
Este campo indica si el minorista tiene un nurit 0: no 1:si |
private int |
shopKeeperId
Identificador único del minorista |
private java.lang.String |
shopKeeperName
Nombre del minorista (empresa) |
| Constructor Summary | |
|---|---|
ShopKeeper()
Constructor por defecto de la clase |
|
ShopKeeper(int shopKeeperId)
Constructor que recibe el identificador de la empresa |
|
| Method Summary | |
|---|---|
boolean |
changeSupplierState(java.lang.String supplierId,
int newState)
Cambia el estado de un proveedor para permitir o no que este se vea en el catálogo de productos que ve el minorista |
boolean |
delete(Transaction t)
|
int |
getNurit()
Consultor para el atributo nurit. |
int |
getShopKeeperId()
Consultor para el atributo shopKeeperId. |
java.lang.String |
getShopKeeperName()
Consultor para el atributo shopKeeperName. |
boolean |
loadData(int shopKeeperId)
Consulta en la base de datos la tabla minorista por medio de la función query de la clase SqlUtilities
para cargar los datos relacionados al minorista |
static void |
main(java.lang.String[] args)
|
boolean |
saveData(Transaction t)
|
void |
setNurit(int nurit)
Consultor para el atributo nurit. |
void |
setShopKeeperId(int shopKeeperId)
Modificador para el atributo shopKeeperId. |
void |
setShopKeeperName(java.lang.String shopKeeperName)
Modificador para el atributo shopKeeperName. |
boolean |
update(Transaction t)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int shopKeeperId
private java.lang.String shopKeeperName
private int nurit
| Constructor Detail |
|---|
public ShopKeeper()
public ShopKeeper(int shopKeeperId)
shopKeeperId - Identificador de la empresa| Method Detail |
|---|
public boolean loadData(int shopKeeperId)
query de la clase SqlUtilities
para cargar los datos relacionados al minorista
shopKeeperId - Identificador del la empresa
public boolean changeSupplierState(java.lang.String supplierId,
int newState)
supplierId - Identificador del proveedornewState - Nuevo estado (0,1)
public boolean saveData(Transaction t)
public boolean update(Transaction t)
public boolean delete(Transaction t)
public int getShopKeeperId()
public void setShopKeeperId(int shopKeeperId)
shopKeeperId - Nuevo valor para el atributo shopKeeperId.public java.lang.String getShopKeeperName()
public void setShopKeeperName(java.lang.String shopKeeperName)
shopKeeperName - Nuevo valor para el atributo shopKeeperName.public int getNurit()
public void setNurit(int nurit)
nurit - Nuevo valor para el atributo nurit.public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||