umbrello API Documentation

SQLWriter Class Reference

class SQLWriter is a code generator for UMLClassifier objects. More...

#include <sqlwriter.h>

Inheritance diagram for SQLWriter:

SimpleCodeGenerator CodeGenerator List of all members.

Public Member Functions

virtual void writeClass (UMLClassifier *c)
 call this method to generate sql code for a UMLClassifier
virtual Uml::Programming_Language getLanguage ()
 returns "SQL"
virtual QStringList defaultDatatypes ()
 Reimplement method from CodeGenerator.
virtual const QStringList reservedKeywords () const
 get list of reserved keywords

Detailed Description

class SQLWriter is a code generator for UMLClassifier objects.

Create an instance of this class, and feed it a UMLClassifier when calling writeClass and it will generate a sql source file for that concept

Definition at line 30 of file sqlwriter.h.


Member Function Documentation

void SQLWriter::writeClass UMLClassifier c  )  [virtual]
 

call this method to generate sql code for a UMLClassifier

Parameters:
c the class to generate code for

Implements SimpleCodeGenerator.

Definition at line 38 of file sqlwriter.cpp.

References CodeGenerator::cleanName(), CodeGenerator::codeGenerated(), CodeGenerator::findFileName(), CodeGenerator::formatDoc(), CodeGenerator::getHeadingFile(), UMLObject::getID(), UMLObject::getName(), UMLAssociation::getObject(), UMLAssociation::getRoleName(), and CodeGenerator::openFile().

Uml::Programming_Language SQLWriter::getLanguage  )  [virtual]
 

returns "SQL"

Implements CodeGenerator.

Definition at line 214 of file sqlwriter.cpp.

QStringList SQLWriter::defaultDatatypes  )  [virtual]
 

Reimplement method from CodeGenerator.

Reimplemented from CodeGenerator.

Definition at line 218 of file sqlwriter.cpp.

const QStringList SQLWriter::reservedKeywords  )  const [virtual]
 

get list of reserved keywords

Reimplemented from CodeGenerator.

Definition at line 247 of file sqlwriter.cpp.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for umbrello Version 3.1.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Jun 26 08:08:05 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003