|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectssbm.db.SQLStatementProvider
public class SQLStatementProvider
Questa classe fornisce gli statement SQL che consentono di recuperare e manipolare i dati memorizzati nel database dell'applicazione.
Field Summary | |
---|---|
static java.lang.String |
SELECT_ELENCO_MOVIMENTAZIONI
La stringa contenente lo statement SQL per il recupero dell'elenco di movimentazioni relative ad un utente, aventi una specifica natura e verificatesi in uno specifico periodo di tempo. |
static java.lang.String |
SELECT_ELENCO_TIPI
La stringa contenente lo statement SQL per il recupero dell'elenco dei tipi di movimentazione relativi ad una particolare natura. |
static java.lang.String |
SELECT_LAST_INSERT_ID
La stringa contenente lo statement SQL per il recupero dell'ultimo ID generato nell'ambito della connessione corrente al database dell'applicazione. |
static java.lang.String |
SELECT4SECURITY_CHECK
La stringa contenente lo statement SQL che seleziona l'ID utente della tupla individuata dallo username e dall'indirizzo IP. |
Constructor Summary | |
---|---|
SQLStatementProvider()
|
Method Summary | |
---|---|
static java.lang.String[] |
getSQLStatement(Services service,
Entities entity)
Restituisce l'elenco degli statement SQL che recuperano e/o manipolano i dati memorizzati nel database per poter eseguire il servizio richiesto. |
static java.lang.String |
getSQLStatement(Services service,
Services helperService)
Restituisce lo statement SQL che recupera o manipola i dati memorizzati nel database per eseguire un servizio di autenticazione richiesto o il servizio d’uso ausiliario ad un servizio di autenticazione. |
private static java.lang.String[] |
getSQLStatement4Delete(Entities entity)
Restituisce l'elenco degli statement SQL da eseguire per aggiornare i dati di un'entità nel database. |
private static java.lang.String[] |
getSQLStatement4Insert(Entities entity)
Restituisce l'elenco degli statement SQL da eseguire per memorizzare i dati di un'entità nel database. |
private static java.lang.String |
getSQLStatement4Select(Entities entity)
Restituisce lo statement SQL da eseguire per recuperare i dati di un'entità. |
private static java.lang.String[] |
getSQLStatement4Update(Entities entity)
Restituisce l'elenco degli statement SQL da eseguire per aggiornare i dati di un'entità nel database. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SELECT_ELENCO_TIPI
public static final java.lang.String SELECT_ELENCO_MOVIMENTAZIONI
public static final java.lang.String SELECT4SECURITY_CHECK
public static final java.lang.String SELECT_LAST_INSERT_ID
Constructor Detail |
---|
public SQLStatementProvider()
Method Detail |
---|
public static java.lang.String getSQLStatement(Services service, Services helperService)
service
- il servizio di autenticazione.helperService
- il servizio d'uso ausiliario al servizio d'autenticazione service.
public static java.lang.String[] getSQLStatement(Services service, Entities entity)
service
- il servizio d'uso da eseguire.entity
- l'entità di riferimento.
private static java.lang.String[] getSQLStatement4Insert(Entities entity) throws java.lang.IllegalArgumentException
entity
- il valore di Entities che denota l'entità da memorizzare.
java.lang.IllegalArgumentException
- se entity è uguale a Entities.Bilancio
private static java.lang.String[] getSQLStatement4Update(Entities entity) throws java.lang.IllegalArgumentException
entity
- il valore di Entities che denota l'entità da aggiornare.
java.lang.IllegalArgumentException
- se entity è uguale a Entities.Bilancio
private static java.lang.String[] getSQLStatement4Delete(Entities entity) throws java.lang.IllegalArgumentException
entity
- il valore di Entities che denota l'entità da eliminare.
java.lang.IllegalArgumentException
- se entity è uguale a Entities.Bilancio
private static java.lang.String getSQLStatement4Select(Entities entity)
entity
- il valore di Entities che denota l'entità per la quale
recuperare i dati dal database.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |