interface SCC_COMMON:ENTITY:CODEGEN:EntityGeneratorInterface

Implementing Classes: SCC_COMMON:ENTITY:CODEGEN:EntityGeneratorBase

Summary

Property Summary:

   

public string

BaseAppClass: The base appclass, this is populated based on the entity type when the code generate button is pressed.

public string

ClassName: The class name, which is populated by the entity registry when the code generate button is pressed.

public string

EntityID: The entity id, which is populated by the entity registry when the code generate button is pressed.

public boolean

hasProduction: Specifies if this entity has a production record.

public boolean

hasStage: Specifies if this entity has a stage record.

public Array of string

ignoreFields: Specifies the names of properties implemented on the parent entities that should not be generate on the current entity.

public Rowset

rsProperties: Passes in the rowset of SCC_ENT_PROPS related to the entity.

Method Summary:

   

public void

BuildUI(Rowset rs): Builds the UI of check boxes in the given rowset, SCC_ER_CGEN_VW, this rowset has 2 fields, SCC_ER_CGEN_ARG, the check box to be populated by the user and SCC_ER_CGEN_LBL the label displayed relative to the check box. Using that this code can generate as many yes/no questions as needed for code generation.

public string

GenerateCode(): The process called to generate the code based on the provided properties and UI input.

public void

ParseUI(Rowset rs): Retrieves the data from the UI built in BuildUI, SCC_ER_CGEN_VW, this rowset has 2 fields, SCC_ER_CGEN_ARG, the check box to be populated by the user and SCC_ER_CGEN_LBL the label displayed relative to the check box. This code should retrieve the arguments.

Details

Property Details:

   

BaseAppClass

public string

ClassName

public string

EntityID

public string

hasProduction

public boolean

hasStage

public boolean

ignoreFields

public Array of string

rsProperties

public Rowset

Method Details:

   

BuildUI

Parameters:

Rowset rs: The rowset for SCC_ER_CGEN_VW to be populated.

GenerateCode

Return:

string - returns the generated code as a string for display.

ParseUI

Parameters:

Rowset rs: The rowset for SCC_ER_CGEN_VW to be parsed.