Generated <Class>ManagerTemplate

template < class classType >

Hierarchy

Inherited from:

IBase
 |
 +----IVBase
       |
       +----INotifier
             |
             +----IStandardNotifier
                   |
                   +----IDAManager
                         |
                         +----<Class>ManagerBase
                               |
                               +----<Class>ManagerTemplate

Inherited by:

<Class>ManagerTemplate
 |
 +----<Class>Manager

Public Methods by Category

Constructors

<Class>ManagerTemplate

<Class>ManagerTemplate(const INumber i=100) 
                                 : <Class>ManagerBase( 0, 
                                                       new classType, 
                                                       (_seqType*) new sequenceType(i) )
<Class>ManagerTemplate(const <Class>ManagerTemplate < classType >& aManager,
                       const INumber i=100)
                                  : <Class>ManagerBase( aManager, 
                                                        new classType(*(aManager.element())), 
                                                        (_seqType*) new sequenceType(i) )
<Class>ManagerTemplate(IDatastorexxx* dsm, 
                       const INumber i = 100)
                                  : <Class>ManagerBase(dsm, 
                                                       new classType(dsm), 
                                                       (_seqType*) new sequenceType(i) )
Supported Platforms
Windows OS/2 AIX
Y Y Y

Destructor

~<Class>ManagerTemplate

virtual ~<Class>ManagerTemplate();
Supported Platforms
Windows OS/2 AIX
Y Y Y

Collection Management

append

virtual unsigned append(unsigned Number = 0);
virtual unsigned append(IACollection<elementType> *aCollection, 
                        unsigned Number=0);

Use this method to append the passed-in number of rows from the cursor's current position to the internal collection that was created by the last fill call (or to an empty collection). In order to use this method, a cursor must be open. If you pass in 0 (zero), it will append all remaining rows to the collection. This method returns an unsigned integer value indicating the number of rows fetched. Each time you call the append method, it adds more rows to the end of the internal collection.

If you pass in a collection object, the rows will be appended to that collection.

Supported Platforms
Windows OS/2 AIX
Y Y Y

element

virtual classType* element() const;

This method returns a pointer to the currently-fetched object.

Supported Platforms
Windows OS/2 AIX
Y Y Y

items

virtual sequenceType* items() const;

Use this method to retrieve a pointer to the collection of objects retrieved by the manager.

Supported Platforms
Windows OS/2 AIX
Y Y Y

cursorFor

virtual managerCursor cursorFor() const;

Use this method to return a cursor for the internal collection. Use this method after you have used the select method to retrieve rows to use cursor methods such as fetchNext.

Supported Platforms
Windows OS/2 AIX
Y Y Y

Public Operators

=

<Class>ManagerTemplate< classType >& 
                      operator= (const <Class>ManagerTemplate< classType >& aManager)
Supported Platforms
Windows OS/2 AIX
Y Y Y

Public Types

sequenceType

typedef IVSequence<classType*> sequenceType;

This type represents a sequence of objects from the generated class, <class>, or if you are deriving another class from <class>, then it is a sequence of objects from the derived class.

Supported Platforms
Windows OS/2 AIX
Y Y Y

managerCursor

typedef sequenceType::Cursor managerCursor;

This is a cursor for sequenceType.

Supported Platforms
Windows OS/2 AIX
Y Y Y

Protected Functions

postAddProcess

virtual void postAddProcess( classType* obj );

Override this method to add behavior to each derived object after it is retrieved from the datastore by the <Class>ManagerTemplate.

Supported Platforms
Windows OS/2 AIX
Y Y Y

Protected Types

elementType

typedef IMngElemPointer < classType > elementType;

This is an element of sequenceType.

Supported Platforms
Windows OS/2 AIX
Y Y Y

Inherited Members

Inherited from IDAManager:

Public Functions

Public Data

Inherited from <Class>ManagerBase:

Public Functions

Public Data

Protected Functions