|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.fenalco.entities.StoreList
public class StoreList
Esta clase representa el conjunto de establecimientos que pertenecen a un minorista, o que pertenecen a una comunidad segùn los paràmetros utilizados para su comstrucciòn
| Field Summary | |
|---|---|
private java.util.Hashtable |
stores
Este Hashtable contiene un conjunto de establecimentos que
pertenecen a un minorista, está organizado de la siguiente forma:
key:Identificador del establecimiento storeId
value:Objeto del tipo Store |
| Constructor Summary | |
|---|---|
StoreList()
|
|
StoreList(int shopKeeperId)
Constructor que recibe como parámetro el identificador del proveedor, llama al método loadData para cargar los establecimientos del minorista
en el objeto. |
|
| Method Summary | |
|---|---|
boolean |
getCommunityStores(int shopKeeperId,
int communityId)
|
boolean |
getNonCommunityStores(int shopKeeperId,
int communityId)
|
java.util.Hashtable |
getStores()
Consultor para el atributo stores. |
boolean |
loadData(int shopKeeperId)
Este método carga los establecimientos del minorista desde la base de datos haciendo uso del identificador del minorista y del método query
de la clase SQLUtilities. |
static void |
main(java.lang.String[] args)
|
void |
setStores(java.util.Hashtable stores)
Valor para el parámetro stores. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.Hashtable stores
Hashtable contiene un conjunto de establecimentos que
pertenecen a un minorista, está organizado de la siguiente forma:
key:Identificador del establecimiento storeId
value:Objeto del tipo Store
| Constructor Detail |
|---|
public StoreList()
public StoreList(int shopKeeperId)
loadData para cargar los establecimientos del minorista
en el objeto.
shopKeeperId - Identificador del minorista| Method Detail |
|---|
public boolean loadData(int shopKeeperId)
query
de la clase SQLUtilities.
shopKeeperId - Identificador del minorista
public java.util.Hashtable getStores()
public void setStores(java.util.Hashtable stores)
stores - Nuevo valor para el parámetro stores.
public boolean getNonCommunityStores(int shopKeeperId,
int communityId)
public boolean getCommunityStores(int shopKeeperId,
int communityId)
public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||