umbrello/umbrello
sqlwriter.cpp
Go to the documentation of this file.
253 UMLClassifierListItemList constrList = m_pEntity->getFilteredList(UMLObject::ot_UniqueConstraint);
364 void SQLWriter::printEntityAttributes(QTextStream& sql, UMLEntityAttributeList entityAttributeList)
467 void SQLWriter::printForeignKeyConstraints(QTextStream& sql, UMLClassifierListItemList constrList)
548 // we don;t have any name, so we just merge the names of all attributes along with their entity name
Definition: entityattribute.h:34
UMLObject * getObject(Uml::RoleType::Enum role) const
Returns the UMLObject assigned to the given role.
Definition: association.cpp:476
UMLEntityAttributeList getEntityAttributeList() const
Get the Entity Attributes List.
Definition: uniqueconstraint.cpp:308
This sub-class adds copyInto and clone to the QPtrList base class...
Definition: umlclassifierlistitemlist.h:26
This class defines the non-graphical information required for a UML Classifier (ie a class or interfa...
Definition: classifier.h:39
Classifiers (classes, interfaces) have lists of operations, attributes, templates and others...
Definition: classifierlistitem.h:29
QString getAttributes() const
Returns the value of the UMLEntityAttribute's attributes property.
Definition: entityattribute.cpp:78
QString getInitialValue() const
Returns The initial value of the UMLAttribute.
Definition: attribute.cpp:98
Definition: basictypes.h:209
DBIndex_Type indexType() const
Returns the UMLEntityAttribute's index type property.
Definition: entityattribute.cpp:132
bool openFile(QFile &file, const QString &name)
Opens a file named "name" for writing in the outputDirectory.
Definition: codegenerator.cpp:586
UMLClassifierListItemList getFilteredList(UMLObject::ObjectType ot) const
Reimplementation of getFilteredList to support ot=UMLObject::ot_EntityConstraint. ...
Definition: entity.cpp:642
static QString formatDoc(const QString &text, const QString &linePrefix=" *", int lineWidth=80)
Format documentation for output in source files.
Definition: codegenerator.cpp:772
QString findFileName(UMLPackage *concept, const QString &ext)
Determine the file name.
Definition: simplecodegenerator.cpp:89
UpdateDeleteAction
Update/Delete Action: Action to be taken on Update or Delete of a referenced attribute is either...
Definition: foreignkeyconstraint.h:42
Definition: basictypes.h:210
QString getValues() const
Returns the UMLEntityAttribute's length/values property.
Definition: entityattribute.cpp:96
virtual void printCheckConstraints(QTextStream &sql, UMLClassifierListItemList constrList)
Prints out Check Constraints as "ALTER TABLE" statements.
Definition: sqlwriter.cpp:591
Definition: umlobject.h:71
virtual void printForeignKeyConstraints(QTextStream &sql, UMLClassifierListItemList constrList)
Prints out foreign key constraints as "ALTER TABLE" statements.
Definition: sqlwriter.cpp:467
QString updateDeleteActionToString(UMLForeignKeyConstraint::UpdateDeleteAction uda)
Converts from the UpdateDeleteAction enum to a QString.
Definition: model_utils.cpp:1636
virtual QString getHeadingFile(const QString &file)
Gets the heading file (as a string) to be inserted at the beginning of the generated file...
Definition: codegenerator.cpp:482
This class is used to set up information for a unique entity constraint.
Definition: checkconstraint.h:25
virtual void printUniqueConstraints(QTextStream &sql, UMLClassifierListItemList constrList)
Prints out unique constraints (including primary key) as "ALTER TABLE" statements.
Definition: sqlwriter.cpp:423
This class is used to set up information for a foreign key entity constraint.
Definition: foreignkeyconstraint.h:32
UMLAssociationList getRelationships()
Shorthand for getSpecificAssocs(Uml::at_Relationship)
Definition: umlcanvasobject.cpp:441
This class contains the non-graphic representation of an association.
Definition: association.h:32
virtual void printAutoIncrements(QTextStream &sql, UMLEntityAttributeList entAttList)
Handles AutoIncrements.
Definition: sqlwriter.cpp:580
Definition: basictypes.h:258
void codeGenerated(UMLClassifier *concept, bool generated)
UMLEntityAttributeList getEntityAttributes() const
Returns the Entity Attributes.
Definition: entity.cpp:689
Definition: umlobject.h:73
virtual void printEntityAttributes(QTextStream &sql, UMLEntityAttributeList entityAttributeList)
Prints out attributes as columns in the table.
Definition: sqlwriter.cpp:364
virtual void printIndex(QTextStream &sql, UMLEntity *ent, UMLEntityAttributeList entAttList)
Prints out Indexes as "CREATE INDEX " statements.
Definition: sqlwriter.cpp:543
UpdateDeleteAction getUpdateAction() const
Get the Update Action.
Definition: foreignkeyconstraint.cpp:424
Definition: umlobject.h:72
UMLEntity * getReferencedEntity() const
Get the Referenced Entity.
Definition: foreignkeyconstraint.cpp:349
QMap< UMLEntityAttribute *, UMLEntityAttribute * > getEntityAttributePairs()
Retrieve all Pairs of Attributes.
Definition: foreignkeyconstraint.cpp:408
bool getNull() const
Returns the UMLEntityAttribute's allow null value.
Definition: entityattribute.cpp:150
virtual Uml::ProgrammingLanguage::Enum language() const
Returns "SQL".
Definition: sqlwriter.cpp:305
This class is used to set up information for a unique entity constraint.
Definition: uniqueconstraint.h:28
This class is used to set up information for an entityattribute.
Definition: entityattribute.h:25
UpdateDeleteAction getDeleteAction() const
Get the Delete Action.
Definition: foreignkeyconstraint.cpp:416
virtual QStringList reservedKeywords() const
Get list of reserved keywords.
Definition: sqlwriter.cpp:346
bool isPrimaryKey(UMLUniqueConstraint *uConstr) const
Checks if a given Unique Constraint is primary key of this entity.
Definition: entity.cpp:676
This sub-class adds copyInto and clone to the QPtrList base class.
Definition: umlentityattributelist.h:25
QString getRoleName(Uml::RoleType::Enum role) const
Returns the name assigned to the role A.
Definition: association.cpp:545
virtual void writeClass(UMLClassifier *c)
Call this method to generate sql code for a UMLClassifier.
Definition: sqlwriter.cpp:188
static QString cleanName(const QString &name)
Replaces spaces with underscores and capitalises as defined in m_modname.
Definition: codegenerator.cpp:609
void showGeneratedFile(const QString &filename)
virtual QStringList defaultDatatypes()
Reimplement method from CodeGenerator.
Definition: sqlwriter.cpp:313
QString getCheckCondition() const
Definition: checkconstraint.h:51
virtual QString getTypeName() const
Returns the type name of the UMLClassifierListItem.
Definition: classifierlistitem.cpp:110
This class contains the non-graphical information required for a UML Entity.
Definition: entity.h:34
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.