]> git.mxchange.org Git - addressbook-swing.git/blob - Addressbook/src/org/mxchange/addressbook/database/frontend/contact/ContactWrapper.java
ce574ab30cb3d01a020a89dfb32202c547615ade
[addressbook-swing.git] / Addressbook / src / org / mxchange / addressbook / database / frontend / contact / ContactWrapper.java
1 /*\r
2  * Copyright (C) 2015 Roland Häder\r
3  *\r
4  * This program is free software: you can redistribute it and/or modify\r
5  * it under the terms of the GNU General Public License as published by\r
6  * the Free Software Foundation, either version 3 of the License, or\r
7  * (at your option) any later version.\r
8  *\r
9  * This program is distributed in the hope that it will be useful,\r
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
12  * GNU General Public License for more details.\r
13  *\r
14  * You should have received a copy of the GNU General Public License\r
15  * along with this program.  If not, see <http://www.gnu.org/licenses/>.\r
16  */\r
17 package org.mxchange.addressbook.database.frontend.contact;\r
18 \r
19 import org.mxchange.addressbook.database.frontend.DatabaseWrapper;\r
20 import org.mxchange.addressbook.manager.contact.ManageableContact;\r
21 \r
22 /**\r
23  *\r
24  * @author Roland Häder\r
25  */\r
26 public interface ContactWrapper extends DatabaseWrapper {\r
27 \r
28     /**\r
29      * Flushes all contact entries to database\r
30      * \r
31      * @param contactManager An instance of a MangeableContact class\r
32      */\r
33     public void flushAllContacts (final ManageableContact contactManager);\r
34 \r
35     /**\r
36      * Reads all contacts from database backend and handles them over to the\r
37      * contact manager\r
38      * \r
39      * @param contactManager \r
40      */\r
41     public void readAllContacts (final ManageableContact contactManager);\r
42 }\r