发明名称 System and method for constructing a database instruction
摘要 A system and method of the subject technology automatically constructs a database instruction from a template instruction, including one or more variable tokens, and one or more document object representations, each including an object type and a user-generated parameter. The one or more variable tokens in the template instruction are substituted by the user-generated parameter of a corresponding document object representation when the type of a respective variable token is matched to the type of the corresponding document object representation.
申请公布号 US9020972(B1) 申请公布日期 2015.04.28
申请号 US201113196857 申请日期 2011.08.02
申请人 Google Inc. 发明人 Gaun Mark Zhenguo;Nagaraj Karthik M.;Wu Sam Ka-Shing;Wang Ying
分类号 G06F17/30 主分类号 G06F17/30
代理机构 Armstrong Teasdale LLP 代理人 Armstrong Teasdale LLP
主权项 1. A computer implemented method of constructing a database instruction, comprising: receiving a user-generated parameter from a user interface; constructing, in a memory of a computer, an information object based on an element of the user interface associated with the user-generated parameter, the information object including an object type and the user-generated parameter; associating, at runtime, the user-generated parameter with a first template instruction comprising one or more variable tokens each variable token having one or more variable token types, a first variable token occurring more than once in the first template instruction, and a first occurrence of the first variable token having a different variable token type than a second occurrence of the first variable token; determining that a section of a plurality of additional template instructions is defined as optional based on detecting an optional begin token and an optional end token that offset the section of additional template instructions, wherein each of the additional template instructions are associated with a respective variable; substituting, in the first template instruction, the user generated parameter of the information object for the first variable token; and generating a database instruction from at least the first template instruction, at least in part by excluding the additional template instructions from the database instruction based on determining that the information object does not include user-generated parameters for any of the respective variables associated with the additional template instructions.
地址 Mountain View CA US