umbrello 26.07.70-c53146a 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
15 class UMLEntity;
16 class UMLEntityAttributeList;
17 class UMLClassifierListItemList;
18
25 class SQLWriter : public SimpleCodeGenerator
26{
27 Q_OBJECT
28 public:
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
41 protected:
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:173
SQLWriter::printUniqueConstraints
virtual void printUniqueConstraints(QTextStream &sql, UMLClassifierListItemList constrList)
Definition: sqlwriter.cpp:457
SQLWriter::printCheckConstraints
virtual void printCheckConstraints(QTextStream &sql, UMLClassifierListItemList constrList)
Definition: sqlwriter.cpp:633
SQLWriter::reservedKeywords
virtual QStringList reservedKeywords() const
Definition: sqlwriter.cpp:363
SQLWriter::printAutoIncrements
virtual void printAutoIncrements(QTextStream &sql, UMLEntityAttributeList entAttList)
Definition: sqlwriter.cpp:622
SQLWriter::printIndex
virtual void printIndex(QTextStream &sql, UMLEntity *ent, UMLEntityAttributeList entAttList)
Definition: sqlwriter.cpp:585
SQLWriter::~SQLWriter
virtual ~SQLWriter()
Definition: sqlwriter.cpp:178
SQLWriter::printForeignKeyConstraints
virtual void printForeignKeyConstraints(QTextStream &sql, UMLClassifierListItemList constrList)
Definition: sqlwriter.cpp:505
SQLWriter::m_enumsGenerated
QStringList m_enumsGenerated
Definition: sqlwriter.h:42
SQLWriter::writeClass
virtual void writeClass(UMLClassifier *c)
Definition: sqlwriter.cpp:186
SQLWriter::m_pEntity
UMLEntity * m_pEntity
Definition: sqlwriter.h:43
SQLWriter::language
virtual Uml::ProgrammingLanguage::Enum language() const
Definition: sqlwriter.cpp:322
SQLWriter::defaultDatatypes
virtual QStringList defaultDatatypes() const
Definition: sqlwriter.cpp:330
SQLWriter::printEntityAttributes
virtual void printEntityAttributes(QTextStream &sql, UMLEntityAttributeList entityAttributeList)
Definition: sqlwriter.cpp:381
SimpleCodeGenerator
Definition: simplecodegenerator.h:30
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: umlclassifier.h:35
UMLClassifierListItemList
Definition: umlclassifierlistitemlist.h:22
UMLEntityAttributeList
Definition: umlentityattributelist.h:20
UMLEntity
Non-graphical Information for an Entity.
Definition: umlentity.h:30
Uml::ProgrammingLanguage::Enum
Enum
Definition: basictypes.h:291
simplecodegenerator.h
umlattributelist.h