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

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

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

sqlwriter.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3
4 SPDX-FileCopyrightText: 2003 Nikolaus Gradwohl <guru@local-guru.net>
5 SPDX-FileCopyrightText: 2004-2021 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
6*/
7
8#ifndef SQLWRITER_H
9#define SQLWRITER_H
10
11#include "simplecodegenerator.h"
12#include "umlattributelist.h"
13
14//forward declarations
15class UMLEntity;
16class UMLEntityAttributeList;
17class UMLClassifierListItemList;
18
25 class SQLWriter : public SimpleCodeGenerator
26{
27 Q_OBJECT
28public:
29
30 SQLWriter();
31 virtual ~SQLWriter();
32
33 virtual void writeClass(UMLClassifier *c);
34
35 virtual Uml::ProgrammingLanguage::Enum language() const;
36
37 virtual QStringList defaultDatatypes() const;
38
39 virtual QStringList reservedKeywords() const;
40
41protected:
42 QStringList m_enumsGenerated;
43 UMLEntity* m_pEntity;
44
45 virtual void printEntityAttributes(QTextStream& sql, UMLEntityAttributeList entityAttributeList);
46 virtual void printUniqueConstraints(QTextStream& sql, UMLClassifierListItemList constrList);
47 virtual void printForeignKeyConstraints(QTextStream& sql, UMLClassifierListItemList constrList);
48 virtual void printCheckConstraints(QTextStream& sql, UMLClassifierListItemList constrList);
49 virtual void printIndex(QTextStream& sql, UMLEntity* ent, UMLEntityAttributeList entAttList);
50 virtual void printAutoIncrements(QTextStream& sql, UMLEntityAttributeList entAttList);
51};
52
53#endif // SQLWRITER_H
SQLWriter
Definition: sqlwriter.h:26
SQLWriter::SQLWriter
SQLWriter()
Definition: sqlwriter.cpp:174
SQLWriter::printUniqueConstraints
virtual void printUniqueConstraints(QTextStream &sql, UMLClassifierListItemList constrList)
Definition: sqlwriter.cpp:458
SQLWriter::printCheckConstraints
virtual void printCheckConstraints(QTextStream &sql, UMLClassifierListItemList constrList)
Definition: sqlwriter.cpp:634
SQLWriter::reservedKeywords
virtual QStringList reservedKeywords() const
Definition: sqlwriter.cpp:364
SQLWriter::printAutoIncrements
virtual void printAutoIncrements(QTextStream &sql, UMLEntityAttributeList entAttList)
Definition: sqlwriter.cpp:623
SQLWriter::printIndex
virtual void printIndex(QTextStream &sql, UMLEntity *ent, UMLEntityAttributeList entAttList)
Definition: sqlwriter.cpp:586
SQLWriter::~SQLWriter
virtual ~SQLWriter()
Definition: sqlwriter.cpp:179
SQLWriter::printForeignKeyConstraints
virtual void printForeignKeyConstraints(QTextStream &sql, UMLClassifierListItemList constrList)
Definition: sqlwriter.cpp:506
SQLWriter::m_enumsGenerated
QStringList m_enumsGenerated
Definition: sqlwriter.h:42
SQLWriter::writeClass
virtual void writeClass(UMLClassifier *c)
Definition: sqlwriter.cpp:187
SQLWriter::m_pEntity
UMLEntity * m_pEntity
Definition: sqlwriter.h:43
SQLWriter::language
virtual Uml::ProgrammingLanguage::Enum language() const
Definition: sqlwriter.cpp:323
SQLWriter::defaultDatatypes
virtual QStringList defaultDatatypes() const
Definition: sqlwriter.cpp:331
SQLWriter::printEntityAttributes
virtual void printEntityAttributes(QTextStream &sql, UMLEntityAttributeList entityAttributeList)
Definition: sqlwriter.cpp:382
SimpleCodeGenerator
Definition: simplecodegenerator.h:30
UMLClassifierListItemList
Definition: umlclassifierlistitemlist.h:22
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:35
UMLEntityAttributeList
Definition: umlentityattributelist.h:20
UMLEntity
Non-graphical Information for an Entity.
Definition: entity.h:30
Uml::ProgrammingLanguage::Enum
Enum
Definition: basictypes.h:291
simplecodegenerator.h
umlattributelist.h