Download
As a Mapping Database with Write Pojo
Save - Edit - Delete
Configure List - Object - Filtered
How to populate a JTable, JList, JComboBox
How to Change Parameters for the connection to our database
Contact

Configure lists and objects
List<E>     Receive a List<E> Load data

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

List<Utente> lista = Configuration.configure(Utente.CLASS_NAME);

with this statement, we have received all the users in our database


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











contatore