DumontEXE 0.0.1
Public Slots | Public Member Functions | Private Attributes
cmcItems Class Reference

Commence Items. More...

#include <cmcItems.h>

Inheritance diagram for cmcItems:

List of all members.

Public Slots

cmcCategoryDefcategoryDef ()
 Return the forms category definition
.
QString categoryName ()
 Return the Category name of this Form
.
QString conCatName ()
 Full Connection Category Name
.
long count ()
 Return the item count
.
cmcCursorcursor ()
 Item Cursor
.
cmcItemitem (long index)
 Return an item
.
bool loadByField (const QString &fieldName, const QString &qualifier, const QString &value, bool notFlag=false, bool caseSensitive=false)
 Load an item by field value
.
bool loadByKey (const QString &itemKey)
 Load an Item by Key value
.
QString name ()
 Connection Name
.
cmcItemparentItem ()
 Reference to parent item
.
QString reverseName ()
 Reverse Name
.
cmcRowSetrowset ()
 Item Edit Row Set
.
long setColumn (const QString &connectionName, const QString &categoryName, const QString &fieldName="")
 Set a Connection
.
QString toCategory ()
 Target Category
.

Public Member Functions

 cmcItems (const cmcItems &copy)
 Copy Constructor
.
 cmcItems (const QString &connectionName, const QString &targetCategoryName, const QString &reverseConnectionName, cmcApplication *application, cmcItem *parentItem)
 Default Constructor
.
 cmcItems (const QString &categoryName, cmcDatabase *database)
 Direct Constructor
.
void setColumnDefault ()
 Set Default Columns
.

Private Attributes

QCache< int, cmcItemitems
 Items cache
.
QPointer< cmcCategoryDefm_categoryDef
 categoryDef pointer cache

QString m_connectionName
 Connection Name cache
.
QPointer< cmcCursorm_cursor
 Cursor cache
.
QString m_reverseConnectionName
 Reverse Connection Name cache
.
QPointer< cmcRowSetm_rowset
 Rowset Cache
.
QString m_targetCategoryName
 Target Category Name cache
.

Detailed Description

Commence Items.

This object acts like an enhanced Form.Connection type of object. It is designed to manage and manipulate a list of items associated with a connection to a particular category. This object has two modes of operation:

mode 1 (preferred)
When the reverse connection name is known, this object opens a cursor against the target category and filters for all items that connect back to the originating category.

Definition at line 59 of file cmcItems.h.


Constructor & Destructor Documentation

cmcItems ( const cmcItems copy)

Copy Constructor
.

cmcItems ( const QString &  connectionName,
const QString &  targetCategoryName,
const QString &  reverseConnectionName,
cmcApplication application,
cmcItem parentItem 
)

Default Constructor
.

Parameters:
connectionNamestring ~ forward connection name

targetCategoryNamestring ~ target category

reverseConnectionNamestring ~ reverse connection name

applicationapplication ~ pointer to hosting applicaiton

parentItemitem ~ parent item

Definition at line 10 of file cmcItems.cpp.

cmcItems ( const QString &  categoryName,
cmcDatabase database 
)

Direct Constructor
.

Parameters:
categoryNamestring ~ target category

databasedatabase ~ pointer to hosting database

Definition at line 114 of file cmcItems.cpp.


Member Function Documentation

cmcCategoryDef * categoryDef ( void  ) [slot]

Return the forms category definition
.

Definition at line 223 of file cmcItems.cpp.

QString categoryName ( void  ) [slot]

Return the Category name of this Form
.

Return the category name that this form is associated with.

vbScript Example:
   dim cursor: set cursor = dfrm.DB.getCursor( 0, dfrm.categoryName, 0 )

Definition at line 228 of file cmcItems.cpp.

QString conCatName ( ) [slot]

Full Connection Category Name
.

Definition at line 158 of file cmcItems.cpp.

long count ( void  ) [slot]

Return the item count
.

Definition at line 168 of file cmcItems.cpp.

cmcCursor * cursor ( ) [slot]

Item Cursor
.

Definition at line 207 of file cmcItems.cpp.

cmcItem * item ( long  index) [slot]

Return an item
.

Definition at line 173 of file cmcItems.cpp.

bool loadByField ( const QString &  fieldName,
const QString &  qualifier,
const QString &  value,
bool  notFlag = false,
bool  caseSensitive = false 
) [slot]

Load an item by field value
.

Parameters:
fieldNamestring ~ field name
qualifierstring ~ qualifier
valuestring ~ field value
notFlagbool ~ Not Flag (default to false)
caseSensitivebool ~ Case Sensitivity (defaults to false)

Definition at line 187 of file cmcItems.cpp.

bool loadByKey ( const QString &  itemKey) [slot]

Load an Item by Key value
.

Definition at line 192 of file cmcItems.cpp.

QString name ( ) [slot]

Connection Name
.

Reimplemented from cmcObject.

Definition at line 143 of file cmcItems.cpp.

cmcItem * parentItem ( ) [slot]

Reference to parent item
.

Definition at line 163 of file cmcItems.cpp.

QString reverseName ( ) [slot]

Reverse Name
.

Definition at line 153 of file cmcItems.cpp.

cmcRowSet * rowset ( ) [slot]

Item Edit Row Set
.

Definition at line 212 of file cmcItems.cpp.

long setColumn ( const QString &  connectionName,
const QString &  categoryName,
const QString &  fieldName = "" 
) [slot]

Set a Connection
.

This sets the connection on this item.

Parameters:
connectionNamestring ~ Forward Connection Name
categoryNamestring ~ Target Category Name
fieldNamestring ~ Reverse Connection Name

Definition at line 197 of file cmcItems.cpp.

void setColumnDefault ( )

Set Default Columns
.

This will set default columns on the cursor. This insures that there are a few internal system columns that are always assigned to the item even if the user doesn't do it. This eleviates the user from having to worry about internal columns.

QString toCategory ( ) [slot]

Target Category
.

Definition at line 148 of file cmcItems.cpp.


Member Data Documentation

QCache<int, cmcItem> items [private]

Items cache
.

Definition at line 290 of file cmcItems.h.

QPointer<cmcCategoryDef> m_categoryDef [private]

categoryDef pointer cache

Definition at line 284 of file cmcItems.h.

QString m_connectionName [private]

Connection Name cache
.

Definition at line 254 of file cmcItems.h.

QPointer<cmcCursor> m_cursor [private]

Cursor cache
.

Definition at line 272 of file cmcItems.h.

QString m_reverseConnectionName [private]

Reverse Connection Name cache
.

Definition at line 266 of file cmcItems.h.

QPointer<cmcRowSet> m_rowset [private]

Rowset Cache
.

Definition at line 278 of file cmcItems.h.

QString m_targetCategoryName [private]

Target Category Name cache
.

Definition at line 260 of file cmcItems.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties




~ ~ ~ ~ ~ ~
Source Code without Comments is like a Cranberry Garland
without the berries. Comment your Code!
 
Commence Database User Support Group Forum
http://newsgroup.showoff-db.org/
~ ~ ~ ~ ~ ~
Author: Mark Petryk
Lorimark Solutions, LLC
mark@lorimarksolutions.com