IRISLIB database
Generator Class Reference

This class contains methods used by the various DeepSee code generators. More...

Inheritance diagram for Generator:
Collaboration diagram for Generator:

Static Private Member Functions

_.Library.Status BuildOrderedList (pDepends, pList)
 This class contains methods used by the various DeepSee code generators. More...
 
_.Library.String DenormalizeType (_.Library.String pType)
 Convert a class name of the form Library.xxx to xxx.
 
_.Library.Status GetAncestors (_.Library.String pItem, pDepends, pList, pVisited)
 Internal method. More...
 
_.Library.String GetFactName (_.Library.String pPrefix, _.Library.String pName, _.Library.String pSourceProperty, _.Library.String pSourceExpression, _.Library.String pFunction, _.Library.String pRangeExpression, _.Library.String pLinkClass, _.Library.String pLinkProperty, _.Library.String pTimeOffset)
 Construct a Fact (property) name based on the given specifications. More...
 
_.Library.String GetSQLColumnName (_.Library.String pClass, _.Library.String pProp)
 Returns the SQL name of property pProp for class pClass.
 
_.Library.String GetSQLFieldExpression (_.Library.Status tSC, _.Library.String pClass, _.Library.String pPropExpr, _.Library.Boolean pAllowStreams)
 Convert a dot syntax reference to an SQL arrow syntax expression.
 
_.Library.String GetSQLTableName (_.Library.String pClass)
 Returns the SQL table name for class pClass.
 
_.Library.Boolean IsString (_.Library.String pType)
 Test to determine if the current type is a string or is a custom datatype. More...
 
_.Library.String MakeDescription (_.Library.String pMemberType, _.Library.String pName, _.Library.String pSource, _.Library.String pNotes)
 Return a description string for the given class member.
 
_.Dictionary.StorageDataValueDefinition MakePropStorageDef (_.Library.String pPropName, pKnownValues, pNewValues)
 Produce a storage definition for the pPropName that can be inserted into the class's storage definition. More...
 
_.Library.Status MakeSQLCompute (pCode, _.Library.String pClass, _.Library.String pMethod, _.Library.String pBase, pOptions)
 Given a classname, method name, base expression, and optional list. More...
 
_.Library.Status ParseExpression (_.Library.String pCode, _.Library.String pResult, _.Library.String pPropList, _.Library.String pVarName)
 Take a ObjectScript expression and find all the occurences of. More...
 
_.Library.Status ParseTimeFunction (_.Library.String pSpec, _.Library.String pFuncName, _.Library.String pOptions)
 Take a time function specification ("Function(p=1)") and find. More...
 

Additional Inherited Members

- Public Member Functions inherited from RegisteredObject
_.Library.Status OnAddToSaveSet (_.Library.Integer depth, _.Library.Integer insert, _.Library.Integer callcount)
 This callback method is invoked when the current object is added to the SaveSet,. More...
 
_.Library.Status OnClose ()
 This callback method is invoked by the <METHOD>Close</METHOD> method to. More...
 
_.Library.Status OnConstructClone (_.Library.RegisteredObject object, _.Library.Boolean deep, _.Library.String cloned)
 This callback method is invoked by the <METHOD>ConstructClone</METHOD> method to. More...
 
_.Library.Status OnNew ()
 This callback method is invoked by the <METHOD>New</METHOD> method to. More...
 
_.Library.Status OnValidateObject ()
 This callback method is invoked by the <METHOD>ValidateObject</METHOD> method to. More...
 
- Static Public Attributes inherited from RegisteredObject
 CAPTION = None
 Optional name used by the Form Wizard for a class when generating forms. More...
 
 JAVATYPE = None
 The Java type to be used when exported.
 
 PROPERTYVALIDATION = None
 This parameter controls the default validation behavior for the object. More...
 

Detailed Description

This class contains methods used by the various DeepSee code generators.


This class should be consider to be INTERNAL to DeepSee; There are no methods intended for public use.

Member Function Documentation

◆ BuildOrderedList()

_.Library.Status BuildOrderedList (   pDepends,
  pList 
)
staticprivate

This class contains methods used by the various DeepSee code generators.


This class should be consider to be INTERNAL to DeepSee; There are no methods intended for public use.

Internal method. Given a list of items of the form:

pDepends(item) = ""
pDepend(item,parent)
Return an ordered list with base items listed first.

◆ GetAncestors()

_.Library.Status GetAncestors ( _.Library.String  pItem,
  pDepends,
  pList,
  pVisited 
)
staticprivate

Internal method.

Given an item within a dependency list,

return its set of ancestors (items with no further dependencies).

◆ GetFactName()

_.Library.String GetFactName ( _.Library.String  pPrefix,
_.Library.String  pName,
_.Library.String  pSourceProperty,
_.Library.String  pSourceExpression,
_.Library.String  pFunction,
_.Library.String  pRangeExpression,
_.Library.String  pLinkClass,
_.Library.String  pLinkProperty,
_.Library.String  pTimeOffset 
)
staticprivate

Construct a Fact (property) name based on the given specifications.


pPrefix is a prefix, such as "Dx".
pName is the name of an element (such as a level).
pSourceProperty is a source property name.
pSourceExpression is a source expression used to derive the fact.
pFunction is a function (or name of time level class) applied to the fact.
pRangeExpression is a range expression applied to the fact.
pTimeOffset is a time offset applied to the fact.

◆ IsString()

_.Library.Boolean IsString ( _.Library.String  pType)
staticprivate

Test to determine if the current type is a string or is a custom datatype.

with String as a superclass

◆ MakePropStorageDef()

_.Dictionary.StorageDataValueDefinition MakePropStorageDef ( _.Library.String  pPropName,
  pKnownValues,
  pNewValues 
)
staticprivate

Produce a storage definition for the pPropName that can be inserted into the class's storage definition.

The array pKnownValues contains the previously compiled storage data, and is used as a working index to avoid collisions in the storage definition. The pNewValues array will contain the storage data for all properties actually encountered while working through this current definition.

◆ MakeSQLCompute()

_.Library.Status MakeSQLCompute (   pCode,
_.Library.String  pClass,
_.Library.String  pMethod,
_.Library.String  pBase,
  pOptions 
)
staticprivate

Given a classname, method name, base expression, and optional list.

of options, return a value that can be used as an SQL computed field expression. Match the options with arguments in the functions formal spec.

◆ ParseExpression()

_.Library.Status ParseExpression ( _.Library.String  pCode,
_.Library.String  pResult,
_.Library.String  pPropList,
_.Library.String  pVarName 
)
staticprivate

Take a ObjectScript expression and find all the occurences of.

<pVarName>.Property, replace them and return a list of property references. An expression can also contain a reference to a class method of the cube class using the syntax cube.Method. This is replaced later.

◆ ParseTimeFunction()

_.Library.Status ParseTimeFunction ( _.Library.String  pSpec,
_.Library.String  pFuncName,
_.Library.String  pOptions 
)
staticprivate

Take a time function specification ("Function(p=1)") and find.

from it the function name and list of options with their values.