AfDataContainerClassGenerator Class [AX 2012]

The AfDataContainerClassGenerator class generates strongly typed data container classes.

Syntax

class AfDataContainerClassGenerator extends AifClassGeneratorBase

Run On

Called

Methods

  Method Description
Gg735243.protmethod(en-us,AX.60).gif addAttributes Adds attributes to the class or interface declaration. (Overrides the addAttributes Method.)
Gg735243.protmethod(en-us,AX.60).gif addClassDeclaration Adds the class declaration to the newly generated class. (Inherited from AifClassGeneratorBase.)
Gg735243.protmethod(en-us,AX.60).gif addClassVariable Adds a new class level variable. (Inherited from AifClassGeneratorBase.)
Gg735243.protmethod(en-us,AX.60).gif addCreateMethod Generates the Create method for the specified data item.
Gg735243.protmethod(en-us,AX.60).gif addCustomCode Generates the strongly typed data container class methods. (Overrides the addCustomCode Method.)
Gg735243.protmethod(en-us,AX.60).gif addDataContainerTypeMacro Generates a macro for the specified data container type.
Gg735243.protmethod(en-us,AX.60).gif addDataItemMethods Generates the strongly typed data item methods for all data items.
Gg735243.protmethod(en-us,AX.60).gif addDataItemNameMacro Adds the data item name macro to the class declaration.
Gg735243.protmethod(en-us,AX.60).gif addDeclaration Adds the class or interface declaration to the generated class or interface. (Inherited from AifClassGeneratorBase.)
Gg735243.protmethod(en-us,AX.60).gif addDocumentation Adds custom code to class documentation. (Overrides the addDocumentation Method.)
Gg735243.protmethod(en-us,AX.60).gif addExistsMethod Generates the Exists method for the specified data item.
Gg735243.protmethod(en-us,AX.60).gif addInterfaceDeclaration Adds the class declaration for the interface being generated. (Inherited from AifClassGeneratorBase.)
Gg735243.protmethod(en-us,AX.60).gif addNewMethod Generates 'new' method for the strongly typed data container.
Gg735243.protmethod(en-us,AX.60).gif addParmMethod Generates the parm method for the specified data item.
Gg735243.protmethod(en-us,AX.60).gif addToDeclaration Contains changes to be made to the default class declaration, which is empty. (Inherited from AifClassGeneratorBase.)
Gg735243.protmethod(en-us,AX.60).gif addVariables Provides a location to add class variables. (Inherited from AifClassGeneratorBase.)
Gg735243.protmethod(en-us,AX.60).gif buildDataItemNameMap
Gg735243.pubmethod(en-us,AX.60).gif cancelTimeOut Cancels a previous method call to the setTimeOut method. (Inherited from Object.)
Gg735243.protmethod(en-us,AX.60).gif classExists Determines whether the class to be generated already exists. (Inherited from AifClassGeneratorBase.)
Gg735243.protmethod(en-us,AX.60).gif clearClass Microsoft internal use only. (Inherited from AifClassGeneratorBase.)
Gg735243.protmethod(en-us,AX.60).gif compileAndSave Compiles and saves the newly generated class (Inherited from AifClassGeneratorBase.)
Gg735243.pubmethod(en-us,AX.60).gif equal Determines whether the specified object is equal to the current one. (Inherited from Object.)
Gg735243.pubmethod(en-us,AX.60).gif generate Generates or regenerates the class. (Inherited from AifClassGeneratorBase.)
Gg735243.protmethod(en-us,AX.60).gif getBaseAccessorNames Retrieves the names of the base accessors.
Gg735243.privmethod(en-us,AX.60).gif getDataContainerClassId
Gg735243.protmethod(en-us,AX.60).gif getDataItemNameAttributeSource
Gg735243.protmethod(en-us,AX.60).gif getDataItemTypeAndDefaultValueStrings Retrieves the type and default value strings that correspond to the specified data item type.
Gg735243.pubmethod(en-us,AX.60).gif getTimeOutTimerHandle Returns the timer handle for the object. (Inherited from Object.)
Gg735243.pubmethod(en-us,AX.60).gif handle Retrieves the handle of the class of the object. (Inherited from Object.)
Gg735243.protmethod(en-us,AX.60).gif methodExists Determines whether the specified method already exists. (Inherited from AifClassGeneratorBase.)
Gg735243.pubmethod(en-us,AX.60).gif new Constructs an instance of this class. (Overrides the new Method.)
Gg735243.pubmethod(en-us,AX.60).gif notify Releases the hold on an object that has called the wait method on this object. (Inherited from Object.)
Gg735243.pubmethod(en-us,AX.60).gif notifyAll Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.)
Gg735243.pubmethod(en-us,AX.60).gif objectOnServer Determines whether the object is on a server. (Inherited from Object.)
Gg735243.pubmethod(en-us,AX.60).gif owner Returns the instance that owns the object. (Inherited from Object.)
Gg735243.pubmethod(en-us,AX.60).gif parmAllowExistingClass Gets or sets the value of the _allowExistingClass parameter. (Inherited from AifClassGeneratorBase.)
Gg735243.pubmethod(en-us,AX.60).gif parmBaseClassName Gets or sets the value of the ClassName parameter. (Inherited from AifClassGeneratorBase.)
Gg735243.pubmethod(en-us,AX.60).gif parmBaseInterfaceName Gets or sets the value of the ClassName parameter. (Inherited from AifClassGeneratorBase.)
Gg735243.pubmethod(en-us,AX.60).gif parmClassName Gets or sets the value of the ClassName parameter. (Inherited from AifClassGeneratorBase.)
Gg735243.pubmethod(en-us,AX.60).gif parmDataContainerClassMap Gets or sets the DataContainerClassMap parameter.
Gg735243.pubmethod(en-us,AX.60).gif parmDataContainerType Gets or sets the DataContainerType parameter.
Gg735243.pubmethod(en-us,AX.60).gif parmDataContainerTypeMacroLibName Gets or sets the DataContainerTypeMacroLibName parameter.
Gg735243.protmethod(en-us,AX.60).gif parmInterfacesImplemented Gets or sets the current instance of the Set class. (Inherited from AifClassGeneratorBase.)
Gg735243.pubmethod(en-us,AX.60).gif parmIsAbstract Gets or sets the value of the _isAbstract parameter. (Inherited from AifClassGeneratorBase.)
Gg735243.protmethod(en-us,AX.60).gif parmIsInterface Gets or sets the value of the _isInterface parameter. (Inherited from AifClassGeneratorBase.)
Gg735243.pubmethod(en-us,AX.60).gif parmRegenerate Gets or sets the value of the _regenerate parameter. (Inherited from AifClassGeneratorBase.)
Gg735243.pubmethod(en-us,AX.60).gif parmServiceClassName Gets or sets the ServiceClassName parameter.
Gg735243.protmethod(en-us,AX.60).gif postProcess Registers the newly generated strongly typed data container class that has the data container factory. (Overrides the postProcess Method.)
Gg735243.protmethod(en-us,AX.60).gif preProcess Microsoft internal use only. (Overrides the preProcess Method.)
Gg735243.pubmethod(en-us,AX.60).gif setTimeOut Sets up the scheduled execution of a specified method. (Inherited from Object.)
Gg735243.pubmethod(en-us,AX.60).gif toString Returns a string that represents the current object. (Inherited from Object.)
Gg735243.pubmethod(en-us,AX.60).gif usageCount Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.)
Gg735243.protmethod(en-us,AX.60).gif validateGenerationParameters Validates generation parameters. (Overrides the validateGenerationParameters Method.)
Gg735243.pubmethod(en-us,AX.60).gif wait Pauses a process. (Inherited from Object.)
Gg735243.pubmethod(en-us,AX.60).gif xml Returns an XML string that represents the current object. (Inherited from Object.)
Gg735243.pubmethod(en-us,AX.60).gif Gg735243.static(en-us,AX.60).gif ::getDataItemNameMap

Top

Remarks

This class generates strongly typed data container classes.

Examples

static void example() 
{ 
    AfDataContainerClassGenerator dataContainerClassGenerator; 
    dataContainerClassGenerator = new AfDataContainerClassGenerator(); 
    dataContainerClassGenerator.parmClassName('MyDataContainerClass'); 
    dataContainerClassGenerator.parmDataContainerType('MyDataContainerType'); 
    dataContainerClassGenerator.generate(); 
}

Inheritance Hierarchy

Object Class
  AifClassGeneratorBase Class
    AfDataContainerClassGenerator Class