1
/***************************************************************************
3
* This program is free software; you can redistribute it and/or modify *
4
* it under the terms of the GNU General Public License as published by *
5
* the Free Software Foundation; either version 2 of the License, or *
6
* (at your option) any later version. *
8
* copyright (C) 2002-2007 *
9
* Umbrello UML Modeller Authors <uml-devel@uml.sf.net> *
10
***************************************************************************/
15
#include "sqlwriter.h"
16
#include "../umlattributelist.h"
18
//forward declarations
19
class UMLClassifierListItemList;
22
* class MySQLWriter is a sql code generator for MySQL
23
* Create an instance of this class, and feed it a UMLClassifier when
24
* calling writeClass and it will generate a sql source file for
27
class MySQLWriter : public SQLWriter {
32
virtual ~MySQLWriter();
37
Uml::Programming_Language getLanguage();
40
* Reimplement method from CodeGenerator.
42
QStringList defaultDatatypes();
45
* Reimplemented method from SQLWriter
47
void printForeignKeyConstraints(QTextStream& sql, UMLClassifierListItemList constrList);
51
* Reimplemented from Base Class to print warning
53
void printCheckConstraints(QTextStream& sql,UMLClassifierListItemList constrList);
58
* Reimplement printAutoIncrements from Base Class for MySQL
60
void printAutoIncrements(QTextStream& sql, UMLEntityAttributeList entAttList);
64
#endif // MySQLWRITER_H