Il database Object Oriented Generico
From Giona
(→Premessa) |
(→La classe GenericAttribute) |
||
| Line 33: | Line 33: | ||
* [[GenericAttribute.h]] | * [[GenericAttribute.h]] | ||
* [[GenericAttribute.cpp]] | * [[GenericAttribute.cpp]] | ||
| + | |||
| + | ==La classe GenericObject== | ||
| + | |||
| + | {{TODO}} | ||
==La classe OODataBase== | ==La classe OODataBase== | ||
Revision as of 15:10, 19 June 2007
Il database Object Oriented sarà implementato nella classe OODataBase. I metodi forniti dalla classe:
Contents |
Premessa
Sono stati definiti i seguenti "tipi" nell'header bool.h:
#define FALSE 0 #define TRUE 1 typedef int BOOL;
e nell'header mytypes.h:
#define EMPTY_STRING "" typedef char* STRING;
I Sorgenti
La classe GenericAttribute
La classe rappresenta un attributo generico. L'attributo è definito come un oggetto con tre proprietà, tutte di tipo STRING:
- nome
- valore
- descrizione
I sorgenti
La classe GenericObject
TODO: This page is not yet complete
La classe OODataBase
Segue l'analisi funzionale della classe, e l'elenco dei metodi esposti
Metodo connect
BOOL OODataBase::connect(STRING db_source)
Effettua la connessione del DataBase all'origine dati.
Restituisce TRUE se la connessione è avvenuta con successo, FALSE altrimenti.
Metodo disconnect
BOOL OODataBase::disconnect()
Chiude la connessione al DataBase.
Restituisce TRUE in caso di successo, false altrimenti.
Metodo isConnected
BOOL OODataBase::isConnected()
Restituisce TRUE se il DataBase è connesso ad un'origine dati, FALSE altrimenti.
Metodo storeObject
BOOL OODataBase::storeObject(Object obj)
Inserisce l'oggetto nel database (ed i relativi attributi) una volta verificati tutti i vincoli. Restituisce TRUE se l'operazione è andata a buon fine, FALSE altrimenti.
TODO: This page is not yet complete
