GrOOm  0.2
BTS SNIR LaSalle Avignon 2020
Référence de la classe com.example.groom.GroomBDD
Graphe de collaboration de com.example.groom.GroomBDD:
Collaboration graph

Fonctions membres publiques

void close ()
 
SQLiteDatabase getBDD ()
 
 GroomBDD (Context context)
 
void open ()
 

Attributs privés

SQLiteDatabase bdd = null
 
GroomSQLite groomSQLite = null
 

Description détaillée

Définition à la ligne 6 du fichier GroomBDD.java.

Documentation des constructeurs et destructeur

◆ GroomBDD()

com.example.groom.GroomBDD.GroomBDD ( Context  context)

Définition à la ligne 11 du fichier GroomBDD.java.

12  {
13  groomSQLite = new GroomSQLite(context);
14  }

Documentation des fonctions membres

◆ close()

void com.example.groom.GroomBDD.close ( )

Définition à la ligne 22 du fichier GroomBDD.java.

23  {
24  if (bdd != null)
25  if (bdd.isOpen())
26  bdd.close();
27  }
SQLiteDatabase bdd
Definition: GroomBDD.java:8

◆ getBDD()

SQLiteDatabase com.example.groom.GroomBDD.getBDD ( )

Définition à la ligne 29 du fichier GroomBDD.java.

Références com.example.groom.GroomBDD.bdd, et com.example.groom.GroomBDD.open().

Référencé par com.example.groom.Occupants.Occupants(), et com.example.groom.Preferences.Preferences().

30  {
31  if (bdd == null)
32  open();
33  return bdd;
34  }
SQLiteDatabase bdd
Definition: GroomBDD.java:8

◆ open()

void com.example.groom.GroomBDD.open ( )

Définition à la ligne 16 du fichier GroomBDD.java.

Référencé par com.example.groom.GroomBDD.getBDD(), com.example.groom.Occupants.Occupants(), et com.example.groom.Preferences.Preferences().

17  {
18  if (bdd == null)
19  bdd = groomSQLite.getWritableDatabase();
20  }
SQLiteDatabase bdd
Definition: GroomBDD.java:8

Documentation des données membres

◆ bdd

SQLiteDatabase com.example.groom.GroomBDD.bdd = null
private

Définition à la ligne 8 du fichier GroomBDD.java.

Référencé par com.example.groom.GroomBDD.getBDD().

◆ groomSQLite

GroomSQLite com.example.groom.GroomBDD.groomSQLite = null
private

Définition à la ligne 9 du fichier GroomBDD.java.


La documentation de cette classe a été générée à partir du fichier suivant :