Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

DataClass Class Reference

Inheritance diagram for DataClass:

Inheritance graph
[legend]
Collaboration diagram for DataClass:

Collaboration graph
[legend]
List of all members.

Public Types

enum  ClassName {
  DATA_CLASS, INSTITUTE_CLASS, PROGRAMME_CLASS, MODULE_CLASS,
  FACULTY_CLASS, DEPARTMENT_CLASS, STAFF_CLASS, ROOM_CLASS,
  MOD_LEC_ALLOC_CLASS, MOD_LEC_ENROL_CLASS, TIMESLOT_CLASS
}

Public Member Functions

 DataClass (int pID=NO_PARENT)
virtual ~DataClass ()
int getID ()
virtual QString getDescription () const =0
DataClassgetParent ()
int getParentID ()
QString getClassName ()
ClassName rtti ()
bool isParent (DataClass *)
virtual QString getSortValue () const
QString Dump ()
int save (int insertSQL, int updateSQL, int errorSQL)

Static Public Member Functions

static bool unique (int uniqueSQL)
static bool uniqueTrue (QString, int)
static bool dcCompareCI (const DataClass *p1, const DataClass *p2)
static bool dcCompareCS (const DataClass *p1, const DataClass *p2)

Static Public Attributes

static const int NOT_ON_DB = -1
static const int NO_PARENT = -1

Protected Member Functions

virtual int bindPKey (int preparedSQL)
virtual void bindValues (int preparedSQL, int start)=0
int insert (int insertSQL, int errorSQL)
int update (int updateSQL, int errorSQL)
virtual int remove (int deleteSQL, int errorSQL)

Protected Attributes

int id
QString errorMsg
ClassName p_rtti
DataClassparent

Detailed Description

Definition at line 33 of file DataClass.h.


The documentation for this class was generated from the following files:
Generated on Thu Apr 6 16:27:18 2006 for time-table by  doxygen 1.4.4