Maia\Crud
CLASS ObjectConfig

CLASS dotr.Maia.Crud.ObjectConfig


Method Summary
VOID AddCustomCode (ObjectConfig p_ObjectConfig, CustomCode p_CustomCode)
           adds a CustomCode object
VOID AddIndex (ObjectConfig p_ObjectConfig, Index p_Index)
           adds a Index object
VOID AddProperty (ObjectConfig p_ObjectConfig, Property p_Property)
           adds a property object
VOID AddTemplate (ObjectConfig p_ObjectConfig, CHARACTER p_Template)
           adds a Template object
VOID AddTemplate (ObjectConfig p_ObjectConfig, Template p_Template)
           adds a Template object
ObjectConfig Get (CHARACTER p_ClassName)
           takes an object name and returns an ObjectConfig model
CustomCode GetCustomCode (ObjectConfig p_ObjectConfig, CHARACTER p_CustomCode)
           gets a CustomCode object
Property GetFieldName (ObjectConfig p_ObjectConfig, CHARACTER p_FieldName)
           gets a property object from the fieldname
Index GetIndex (ObjectConfig p_ObjectConfig, CHARACTER p_Index)
           gets a Index object from the fieldname
Property GetProperty (ObjectConfig p_ObjectConfig, CHARACTER p_Property)
           gets a property object from the name
Template GetTemplate (ObjectConfig p_ObjectConfig, CHARACTER p_Template)
           gets a Template object from the name
VOID Remove (ObjectConfig p_ObjectConfig)
           remove ObjectConfig
VOID Save (ObjectConfig p_ObjectConfig)
           save ObjectConfig to xml file
 

Method Detail

AddCustomCode

PUBLIC VOID AddCustomCode(ObjectConfig p_ObjectConfig, CustomCode p_CustomCode)
adds a CustomCode object

Parameters:
p_ObjectConfig - : Object to add property to
p_CustomCode - : CustomCode to add

AddIndex

PUBLIC VOID AddIndex(ObjectConfig p_ObjectConfig, Index p_Index)
adds a Index object

Parameters:
p_ObjectConfig - : Object to add Index to
p_Index - : Index to add

AddProperty

PUBLIC VOID AddProperty(ObjectConfig p_ObjectConfig, Property p_Property)
adds a property object

Parameters:
p_ObjectConfig - : Object to add property to
p_Property - : property to add

AddTemplate

PUBLIC VOID AddTemplate(ObjectConfig p_ObjectConfig, CHARACTER p_Template)
adds a Template object

Parameters:
p_ObjectConfig - : Object to add Template to
p_Template - : Template to add

AddTemplate

PUBLIC VOID AddTemplate(ObjectConfig p_ObjectConfig, Template p_Template)
adds a Template object

Parameters:
p_ObjectConfig - : Object to add Template to
p_Template - : Template to add

Get

PUBLIC ObjectConfig Get(CHARACTER p_ClassName)
takes an object name and returns an ObjectConfig model

Parameters:
p_ClassName - : name of object to load
Returns:
dotr.Maia.Model.ObjectConfig : ObjectConfig model

GetCustomCode

PUBLIC CustomCode GetCustomCode(ObjectConfig p_ObjectConfig, CHARACTER p_CustomCode)
gets a CustomCode object

custom code can be inserted in 3 ways. 1) a customcode directive in the actual generated file 2) a customcode entry in the object config file 3) a customcode snippet in the object config directory
Parameters:
p_ObjectConfig - : Object to get property from
p_CustomCode - : CustomCode to get
Returns:
dotr.Maia.Model.CustomCode : the CustomCode

GetFieldName

PUBLIC Property GetFieldName(ObjectConfig p_ObjectConfig, CHARACTER p_FieldName)
gets a property object from the fieldname

Parameters:
p_ObjectConfig - : Object to get property from
p_fieldname - : fieldname to get
Returns:
dotr.Maia.Model.Property : the property

GetIndex

PUBLIC Index GetIndex(ObjectConfig p_ObjectConfig, CHARACTER p_Index)
gets a Index object from the fieldname

Parameters:
p_ObjectConfig - : Object to get Index from
p_Index - : Index to get
Returns:
dotr.Maia.Model.Index : the Index

GetProperty

PUBLIC Property GetProperty(ObjectConfig p_ObjectConfig, CHARACTER p_Property)
gets a property object from the name

Parameters:
p_ObjectConfig - : Object to get property from
p_Property - : property to get
Returns:
dotr.Maia.Model.Property : the property

GetTemplate

PUBLIC Template GetTemplate(ObjectConfig p_ObjectConfig, CHARACTER p_Template)
gets a Template object from the name

Parameters:
p_ObjectConfig - : Object to get Template from
p_Property - : Template to get
Returns:
dotr.Maia.Model.Template : the Template

Remove

PUBLIC VOID Remove(ObjectConfig p_ObjectConfig)
remove ObjectConfig

Parameters:
p_ObjectConfig - : objectConfig to remove

Save

PUBLIC VOID Save(ObjectConfig p_ObjectConfig)
save ObjectConfig to xml file

Parameters:
p_ObjectConfig - : objectConfig to save