Added restaurant client listing introduction

This commit is contained in:
Claudio Maggioni 2018-05-16 10:22:01 +02:00
parent ba1808d112
commit 6706d2b44c
1 changed files with 12 additions and 1 deletions

View File

@ -646,6 +646,13 @@ public abstract class CRUDUtils {
\begin{it}
\subsubsection{\textit{restaurant} -- lato client}
La parte client della libreria \textit{restaurant} è implementata con il
linguaggio \textit{TypeScript}, un'estensione di \textit{Javascript}
che aggiunge tipizzazione statica, i classici costrutti della programmazione
ad oggetti, nonchè il supporto alle generiche. Segue il listato dell'interfaccia della
classe \textit{RESTService}, la quale contiene metodi statici per comunicare
con il server asincronamente tramite istanze di classi-entità, cioè classi
figlie della classe astratta \textit{Table}.
\end{it}
\begin{lstlisting}[caption=Interfaccia della classe \textit{RESTService}, label={lst:restservice-ts}, language=Java]
export class RESTService {
@ -681,7 +688,7 @@ export class RESTService {
* done on multiple fields with a logic OR.
*
* The different suffixes denote different logical criteria. Look up
* the documentation of meetsCriteriaFilter*(...) methods in
* the documentation of the meetsCriteriaFilter*(...) methods in
* order to get detailed info on each one.
*
* @param {{ new(): T }} type - type of the table to read
@ -756,6 +763,10 @@ export class RESTService {
* deletion in the offline sync queue.
*
* @param {{ new(): T }} type - class of the entity to be saved
* @param {any} keyData - the primary key fields and their values in
* a JS Object, plus the 'id' field of type string
* that goes in the end bit of the request
* path
* @return {Promise<T>} - promise of the element created.
*/
public delete<T extends Table>(type: TableStatic | string, keyData: any):