Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Expand
titleExpand to see legends and methodology

Include Page
Legends and methodologyLegends and methodologyMethodology
Methodology

Go to page

Anchor
TqlQuery grammar
TqlQuery grammar
Gliffy
nameTqlQuery Grammar

...

Panel
borderStylesolid
titleTqlCrud grammar
Example
 


<Query>

   <Create>

        <Zone>

               <Name = "Zone-1" />

        </Zone>

    </Create>

</Query>


Referenced by:


TqlCrud

  • TqlCrud: CRUD operation content
  • From: Dot-delimited path to source container
  • TqlAs is written as "As": Colon-separated whole result:instance container specifiers
  • TqlOnly is written as "Only": List of attributes to store

...

Panel
borderStylesolid
titleTqlCrudModel grammar
Example
 
<Query>

   <Create>

        <gateway.agriculture.Zone>

               <Name = "Zone-1" />

        </gateway.agriculture.Zone>

    </Create>

</Query>


Referenced by:


TqlCrudModel

  • TqlCrudModel: Tql CRUD query model content
  • $Model=SubtypeOf(DataModel): this should set the $Model variable to be the name of any subtypes of DataModel (i.e. all Models). This variable value will be carried on to be used by TqlCrudAttribute.
  • TqlCrudAttribute: This will use the $Model variable

...

Panel
borderStylesolid
titleTqlCrudAttribute grammar
Example
 

<Query>

    <Create format="version,order,timestamp">

      <User UserId="User1">

        <UserName>myName</UserName>

        <Password>pass</Password>

        <isActive>true</isActive>

        <Address Label="Work">

          <Street>1151 Sonora Ct, Suite 2</Street>

          <City>Sunnyvale</City>

          <State>CA</State>

          <ZipCode>94086</ZipCode>

        </Address>

      </User>

      <User>

      ...

    </Create>

</Query>


Referenced by:


TqlCrudAttribute

  • TqlCrudAttribute: Tql CRUD query model attribute content
  • AttributeOf($Model): name of an attribute of the enclosing model; abbreviated form or extended form
  • Value: actual value
  • Version: optional version
  • do: optional operation

...

Panel
borderStylesolid
titleTqlCrudAttribute grammar
Example
 
 

<Query>

    <Update format="version,order,timestamp">

      <User UserId="User1">

        <UserName>myName</UserName>

        <Password>pass</Password>

        <isActive>true</isActive>

        <Role Do="Create">user</Role>

        <Address Label="Work">

          <Street>1151 Sonora Ct, Suite 2</Street>

          <City>Sunnyvale</City>

          <State>CA</State>

          <ZipCode>94086</ZipCode>

        </Address>

      </User>

      <User>

      ...

    </Update>

</Query>

Referenced by: