diff --git a/main.tex b/main.tex index 2cbb7e2..c3c2f93 100644 --- a/main.tex +++ b/main.tex @@ -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} - promise of the element created. */ public delete(type: TableStatic | string, keyData: any):