Generated <Class>ManagerBase

Hierarchy

Inherited from:

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

Inherited by:

<Class>ManagerBase
 |
 +----<Class>ManagerTemplate

Public Functions by Category

Destructor

~<class>ManagerBase

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

Row Access

select<UDM>

public:
void select<UDM>( <parameterList> );

If you have defined a user-defined method using the Manager Methods dialog, then this method will be generated. It opens a database cursor, selects the rows specified by the method, and closes the cursor.

Supported Platforms
Windows OS/2 AIX
Y Y Y

select<SPC>

public:
void open<SPC>( <parameterList> );

If you have defined a stored procedure call using the Manager Methods dialog, then this method will be generated. It opens a database cursor, selects the rows specified by the stored procedure, and closes the cursor.

Supported Platforms
Windows OS/2 AIX
Y Y Y

Cursor Support

fetchNextInto

public:
virtual IBoolean fetchNextInto(<Class> *element);

Fetches next row from open cursor into the given element. This sets the isFetched setting to false, so the deleteFetched and updateFetched methods will not work. To work with the row, you must work with the object into which it was fetched.

Supported Platforms
Windows OS/2 AIX
Y Y Y

deleteFetched

public:
virtual void deleteFetched();

Deletes the row corresponding to the currently-fetched object from the table.

Supported Platforms
Windows OS/2 AIX
Y Y Y

updateFetched

public:
virtual void updateFetched(); 

Update the row corresponding to the currently-fetched object with the current object's attribute values.

Supported Platforms
Windows OS/2 AIX
Y Y Y

element

public:
virtual <Class>* element() const;

This method returns the currently fetched object into a persistent object.

Supported Platforms
Windows OS/2 AIX
Y Y Y

open<UDM>

public:
void open<UDM>( <parameterList> );

If you have defined a user-defined method using the Manager Methods dialog, then this method will be generated. It opens a database cursor on the collection of rows specified by the user-defined method.

Supported Platforms
Windows OS/2 AIX
Y Y Y

open<SPC>

public:
void open<SPC>( <parameterList> );

If you have defined a stored procedure call using the Manager Methods dialog, then this method will be generated. It opens a database cursor on the collection of rows specified by the stored procedure.

Supported Platforms
Windows OS/2 AIX
Y Y Y

Datastore Settings

objectsDatastore

public:
IDatastorexxx* objectsDatastore() const;

Use this method to return the object's datastore setting used for an object fetched by this manager. If this method returns null, then the object uses the default datastore or the application default datastore for database transactions. If this method returns a non-null value, then the returned datastore is used for all datastore transactions. You can change this setting by calling the setObjectDatastore method.

Supported Platforms
Windows OS/2 AIX
Y Y Y

setObjectsDatastore

public:
<Class>ManagerBase& setObjectsDatastore(IDatastorexxx* dsm = 0);

Use this method to change the object's datastore setting that is used for an object fetched by this manager. If you pass in null, then the object will use the default datastore (if it is not null) or the application default datastore for database transactions. If you pass in a non-null value, then the object uses the passed-in datastore object for all its datastore transactions.

Supported Platforms
Windows OS/2 AIX
Y Y Y

currentDatastore

public:
virtual IDatastorexxx* currentDatastore() const;

Use this method to return the current datastore for the object. The current datastore is the datastore that the object uses for all datastore transactions. It is calculated as follows:

If all three datastore settings are null, then an attempt to make a database transaction will result in an exception.

Supported Platforms
Windows OS/2 AIX
Y Y Y

SQL Query

getSQLBaseQuery

public:
static IString getSQLBaseQuery ();

This method returns a string containing the SQL statement that defines the schema. This is the SQL used by the refresh method, and is provided for your information only.

Supported Platforms
Windows OS/2 AIX
Y Y Y

SQL Query Mapping with Parameters

<parameter>

public:
<parameterType> <parameter> ();

If the mapping for which this class is generated came from an SQL query with parameters, then this method will return the current value for the specified parameter. One of these methods is generated for each parameter in the SQL query. The parameter value can be set by calling the corresponding set<Parameter> method.

set<Parameter>

public:
void set<Parameter> ( <parameterType> aParameter );

If the mapping for which this class is generated came from an SQL query with parameters, then this method lets you set the value the specified parameter. One of these methods is generated for each parameter in the SQL query. The parameter value can be retrieved by calling the corresponding <parameter> method.

Public Data

Notification ID Support

public:
static const INotificationID open<UDM>CompletedId;
static const INotificationID open<SPC>CompletedId;
static const INotificationID select<UDM>CompletedId;
static const INotificationID select<SPC>CompletedId;
Supported Platforms
Windows OS/2 AIX
Y Y Y

Protected Methods by Category

Constructors

<Class>ManagerBase

protected:
<Class>ManagerBase( IDatastorexxx* dsm,
                    <Class> *obj, 
                    _seqType *seq );
<Class>ManagerBase( const <Class>ManagerBase& aManager, 
                    <Class> *obj, 
                    _seqType *seq );
Supported Platforms
Windows OS/2 AIX
Y Y Y

New Element

newElement

protected:
virtual <Class>* newElement() const = 0;

Override this method when deriving a class from the generated persistent object class to return an instance of the derived class. If you derive classes by using the Manager template, then the template overrides this method for you.

Supported Platforms
Windows OS/2 AIX
Y Y Y

Protected Operator

=

protected:
<Class>ManagerBase& operator= (const <Class>ManagerBase& aManager);
Supported Platforms
Windows OS/2 AIX
Y Y Y

Inherited Members

Inherited from IDAManager:

Public Functions

Public Data