IlsDynObjectFactory
 
IlsDynObjectFactory
Category 
Dynamic modeling class
Inheritance Path 
IlsDynObjectFactory
Description 
This factory allows you to instantiate your own dynamic object instead of using the class IlsDynObject. Your dynamic object class must inherit from IlsDynObject. By default, Rogue Wave® Server instantiates IlsDynObject objects.
Library 
<dynmvsvr>
Header File
#include <ilserver/dynobj.h>
Synopsis 
class IlsDynObjectFactory
{
public:
virtual IlsDynObject* newInstance(const IlsObjectType* objType,
const IlsString& identifier);
Attributes
virtual IlsDynAttributes* newAttributes(IlsDynObject& obj);
void setAttributeFactory(IlsDynAttributeFactory& f);
IlsDynAttributeFactory* getAttributeFactory() const;
Relations
virtual IlsDynRelations* newRelations(IlsDynObject& obj);
void setRelationFactory(IlsDynRelationFactory& f);
IlsDynRelationFactory* getRelationFactory() const;
};
Member Functions
[virtual] IlsDynObject* newInstance(const IlsObjectType* objType,
const IlsString& identifier);
Override this member function to instantiate your own dynamic objects.
Attributes
[virtual] virtual IlsDynAttributes* newAttributes(IlsDynObject& obj);
This virtual member function is called by Server when building a new collection of dynamic attributes for the object obj. The default implementation builds a subclass of IlsDynAttributes depending on whether the application allows updating the model or not. See IlsDynMvServer::CanUpdateModel.
void setAttributeFactory(IlsDynAttributeFactory& f);
This member function installs a new attribute factory. Rogue Wave Server is responsible for deleting it at the end of the application.
IlsDynAttributeFactory* getAttributeFactory() const;
This member function returns the attribute factory.
Relations
[virtual] IlsDynRelations* newRelations(IlsDynObject& obj);
This virtual member function is called by Server when building a new collection of dynamic relations for the object obj. The default implementation builds a subclass of IlsDynRelations depending on whether the application allows updating the model or not. See IlsDynMvServer::CanUpdateModel.
void setRelationFactory(IlsDynRelationFactory& f);
This member function installs a new relation factory. Rogue Wave Server is responsible for deleting it at the end of the application.
IlsDynRelationFactory* getRelationFactory() const;
This member function returns the relation factory.
See Also 
IlsDynModelInterpreter, IlsDynMvServer, IlsDynObject

Version 5.8
Copyright © 2014, Rogue Wave Software, Inc. All Rights Reserved.