|
Configure lists and objects
Here are examples ertain to find a list of office items
and how to receive customized lists, filters for every need.
We begin to see how to get a list object of all Users Receive a filtered list with search rules absolute. List<Utente> list=Configuration.configure(Utente.CLASS_NAME, new String[]{Utente.GET_CITTA}, new String[]{"Napoli"}); we have shown to take all members of the City of Naples Receive a filtered list with more complete search rules. List<Utente> list2=Configuration.configure(Utente.CLASS_NAME, new String[]{Utente.GET_CITTA,Utente.GET_COGNOME},new String[]{"Napoli","Esposito"}); we have shown to take all members of the city of Naples, with the same last name to Esposito. Receive a filtered list with search rules LIKE .. List<Utente> list2=Configuration.configureLike(Utente.CLASS_NAME, new String[]{Utente.GET_CITTA,Utente.GET_COGNOME},new String[]{"Napoli","Es"}); we have shown to take all members of the city of Naples, whose last name contains a sequence of characters = Es
Receive a filter object with search rules absolute. Example:1) Object utente=Configuration.configureObj(Utente.CLASS_NAME,new String[]{Utente.GET_ID}, new String[]{"153"}); 2) Utente utente=(Utente)Configuration.configureObj(Utente.CLASS_NAME,new String[]{Utente.GET_ID}, new String[]{"153"}); we have shown to take the User with the id = 153 Receiving an array of objects filtered search rules absolute. Example: 1) Object[] utenti=Configuration.configureObjs(Utente.CLASS_NAME, new String[]{Utente.GET_CITTA}, new String[]{"Napoli"}); 2) Utenti[] utenti=(Utenti[])Configuration.configureObjs(Utente.CLASS_NAME, new String[]{Utente.GET_CITTA}, new String[]{"Napoli"}); we have shown to take all members of the City of Naples |