]> git.mxchange.org Git - addressbook-swing.git/blob - Addressbook/src/org/mxchange/addressbook/database/backend/mysql/MySqlDatabaseBackend.java
495c74bf89d6d90ea3d8b629c92a3c2426ade1da
[addressbook-swing.git] / Addressbook / src / org / mxchange / addressbook / database / backend / mysql / MySqlDatabaseBackend.java
1 /*
2  * Copyright (C) 2015 Roland Haeder
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
16  */
17 package org.mxchange.addressbook.database.backend.mysql;
18
19 import java.io.IOException;
20 import java.util.Iterator;
21 import org.mxchange.addressbook.contact.Contact;
22 import org.mxchange.addressbook.database.backend.BaseDatabaseBackend;
23 import org.mxchange.addressbook.database.backend.DatabaseBackend;
24 import org.mxchange.addressbook.database.storage.Storeable;
25 import org.mxchange.addressbook.exceptions.BadTokenException;
26 import org.mxchange.addressbook.exceptions.UnsupportedDatabaseDriverException;
27
28 /**
29  * A backend class for MySQL connections
30  *
31  * @author Roland Haeder
32  */
33 public class MySqlDatabaseBackend extends BaseDatabaseBackend implements DatabaseBackend {
34         /**
35          * Constructor with table name
36          * 
37          * @param tableName Table to access
38          * @throws org.mxchange.addressbook.exceptions.UnsupportedDatabaseDriverException
39          */
40         public MySqlDatabaseBackend (final String tableName) throws UnsupportedDatabaseDriverException {
41                 // Validate driver
42                 this.validateDriver("mysql"); //NOI18N
43
44                 // Now that the driver is there ...
45         }
46
47         @Override
48         public void connectToDatabase () {
49                 throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
50         }
51
52         @Override
53         public Iterator<Contact> contactIterator () throws BadTokenException {
54                 throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
55         }
56
57         @Override
58         public void doShutdown () {
59                 throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
60         }
61
62         @Override
63         public long length () {
64                 throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
65         }
66
67         @Override
68         public void rewind () {
69                 throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
70         }
71
72         @Override
73         public void store (final Storeable object) throws IOException {
74                 throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
75         }
76 }