cplusDBAction 4.2                                                                                        Copyright addoit GmbH 2009

 

 

5.4.1 cplusDBAction Code Generator conventions

 

Independent of the RDBMS Schema, all User DBTableSets contain the following methods and properties:

           

            Class:               [User DBTableSet]

Base Class:     clsDBTableSet

 

Modifier

[User DBTableSet] methods

Comments

static

Open()

 

static

Close()

 

static

Start()

 

static

Stop()

 

 

GetDBTableSetName()

 

 

GetCurrentSelected()

 

 

GetCurrentUpdated()

 

 

GetCurrentInserted ()

 

 

GetCurrentDeleted()

 

 

GetTableCount()

 

 

GetTableName()

 

 

GetTableIndex()

 

 

CreateNewTableClass()

 

 

CleanCache()

 

 

Clean()

 

 

Save()

 

 

FieldQuery()

 

 

FieldSubQuery()

 

 

Select()

 

 

Delete()

 

 

Update()

 

 

Insert()

 

 

CountShort()

 

 

UpdateShort()

 

 

DeleteShort()

 

 

EnablePKCache()

 

 

EnableFKCache()

 

 

DisablePKCache()

 

 

DisableFKCache()

 

 

GetLastDBActionError()

 

const

CTBL_[Tablename]

One for each table

const

_CTBL_[Tablename]()

One for each table

 

            Class:               [Table Collection]

Base Class:     clsCollDBTable

 

Modifier

[Table Collection] methods

Comments

 

GetTableName()

 

 

FirstItem()

 

 

LastItem()

 

 

ItemAt()

 

 

Item()

 

 

CusrsorInit()

 

 

NextItem()

 

 

MoveNext()

 

 

Current()

 

 

Add()

 

 

NewItem()

 

 

SeekItem()

 

 

Edit()

 

 

IsValid()

 

 

SetToValid()

 

 

SetToInvalid()

 

 

LastError()

 

 

 

Class:              [Table Item]

Base Class:     clsDBTable

 

Modifier

[Table Item] methods

Comments

const

CFL_[Fieldname]

One for each field

const

_CFL_[Fieldname]()

One for each field

 

GetTableName()

 

 

GetFieldCount()

 

 

GetFieldName()

 

 

FieldCompare()

 

 

IsEditable()

 

 

IsValid()

 

 

SetToValid()

 

 

SetToInvalid()

 

 

MarkedToDelete()

 

 

Edit()

 

static

Select()

 

static

Update()

 

static

Insert()

 

static

Delete()

 

static

UpdateShort()

 

static

DeleteShort()

 

static

Save()

 

static

Clean()

 

static

GetCurrentUpdated()

 

static

GetCurrentInserted()

 

static

GetCurrentDeleted()

 

 

DB_[Fieldname]

One for each field

 

FK_[Fieldname]

One for each field

 

PK_[Fieldname]

One for each field

 

 

Related Topics

5.4 cplusDBAction Code Generator


Copyright (c) 1998-2009 addoit GmbH, All Rights Reserved.

www.addoit.com                                                                                                          Page 1 of 52