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 |
DataClass * | getParent () |
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 |
DataClass * | parent |
Definition at line 33 of file DataClass.h.