umbrello: umbrello/codegenerators/sql/mysqlwriter.h Source File

umbrello 2.31.0 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

mysqlwriter.h
Go to the documentation of this file.
1 /***************************************************************************
2 * This program is free software; you can redistribute it and/or modify *
3 * it under the terms of the GNU General Public License as published by *
4 * the Free Software Foundation; either version 2 of the License, or *
5 * (at your option) any later version. *
6 * *
7 * copyright (C) 2002-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef MYSQLWRITER_H
12 #define MYSQLWRITER_H
13
14 #include "sqlwriter.h"
15 #include "umlattributelist.h"
16
17 //forward declarations
18 class UMLClassifierListItemList;
19
26 class MySQLWriter : public SQLWriter
27 {
28 Q_OBJECT
29 public:
30
31 MySQLWriter();
32 virtual ~MySQLWriter();
33
34 Uml::ProgrammingLanguage::Enum language() const;
35
36 QStringList defaultDatatypes();
37
38 void printForeignKeyConstraints(QTextStream& sql, UMLClassifierListItemList constrList);
39 void printCheckConstraints(QTextStream& sql, UMLClassifierListItemList constrList);
40
41 protected:
42
43 virtual void printAutoIncrements(QTextStream& sql, UMLEntityAttributeList entAttList);
44
45 };
46
47 #endif // MySQLWRITER_H
umlattributelist.h
Uml::ProgrammingLanguage::Enum
Enum
Definition: basictypes.h:288
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
entity.h
CodeGenerator::cleanName
static QString cleanName(const QString &name)
Definition: codegenerator.cpp:549
foreignkeyconstraint.h
UMLClassifierListItem::getTypeName
virtual QString getTypeName() const
Definition: classifierlistitem.cpp:112
UMLForeignKeyConstraint
Sets up Foreign Key entity constraint information.
Definition: foreignkeyconstraint.h:32
Uml::ProgrammingLanguage::MySQL
@ MySQL
Definition: basictypes.h:297
SQLWriter
Definition: sqlwriter.h:29
MySQLWriter::printCheckConstraints
void printCheckConstraints(QTextStream &sql, UMLClassifierListItemList constrList)
Definition: mysqlwriter.cpp:158
SQLWriter::printIndex
virtual void printIndex(QTextStream &sql, UMLEntity *ent, UMLEntityAttributeList entAttList)
Definition: sqlwriter.cpp:586
UMLEntityAttribute::getAttributes
QString getAttributes() const
Definition: entityattribute.cpp:75
MySQLWriter::printAutoIncrements
virtual void printAutoIncrements(QTextStream &sql, UMLEntityAttributeList entAttList)
Definition: mysqlwriter.cpp:114
umlclassifierlistitemlist.h
entityattribute.h
mysqlwriter.h
umlentityattributelist.h
SimpleCodeGenerator::m_endl
QString m_endl
Definition: simplecodegenerator.h:87
MySQLWriter::defaultDatatypes
QStringList defaultDatatypes()
Definition: mysqlwriter.cpp:43
UMLEntityAttribute::getAutoIncrement
bool getAutoIncrement() const
Definition: entityattribute.cpp:111
UMLObject::asUMLForeignKeyConstraint
UMLForeignKeyConstraint * asUMLForeignKeyConstraint()
Definition: umlobject.cpp:1318
SQLWriter::printForeignKeyConstraints
virtual void printForeignKeyConstraints(QTextStream &sql, UMLClassifierListItemList constrList)
Definition: sqlwriter.cpp:507
MySQLWriter::printForeignKeyConstraints
void printForeignKeyConstraints(QTextStream &sql, UMLClassifierListItemList constrList)
Definition: mysqlwriter.cpp:86
UMLForeignKeyConstraint::getEntityAttributePairs
QMap< UMLEntityAttribute *, UMLEntityAttribute * > getEntityAttributePairs()
Definition: foreignkeyconstraint.cpp:409
SQLWriter::printCheckConstraints
virtual void printCheckConstraints(QTextStream &sql, UMLClassifierListItemList constrList)
Definition: sqlwriter.cpp:634
SQLWriter::m_pEntity
UMLEntity * m_pEntity
Definition: sqlwriter.h:47
UMLEntityAttributeList
Definition: umlentityattributelist.h:25
UMLClassifierListItemList
Definition: umlclassifierlistitemlist.h:26
MySQLWriter::language
Uml::ProgrammingLanguage::Enum language() const
Definition: mysqlwriter.cpp:35
MySQLWriter
Definition: mysqlwriter.h:26
UMLEntityAttribute
Sets up entityattribute information.
Definition: entityattribute.h:25
UMLClassifierListItem
A base class for classifier list items (e.g. attributes)
Definition: classifierlistitem.h:29
sqlwriter.h
MySQLWriter::~MySQLWriter
virtual ~MySQLWriter()
Definition: mysqlwriter.cpp:28
MySQLWriter::MySQLWriter
MySQLWriter()
Definition: mysqlwriter.cpp:24