An update method of a field value annotation is disclosed to display annotated data tables; identify the attribute information of the field values entered by the annotated data table to obtain annotations for the value of the fields described in the annotated table, in which the annotated data table is called when the field values are annotated with the computer program. The annotation corresponding to the field value is obtained; when the update operation of the annotation is received, the annotation is updated according to the update operation. The invention also discloses an updating device for the field value annotation and a computer readable storage medium. As the computer program annotates the field value, it calls the annotation of the value of the field in the annotated data table, so after the annotation of the field values in the annotated data table is updated, all the annotations of the field values in the computer program are updated, thus simplifying the update operation of the annotations in the computer program and reducing the computer program. Later maintenance cost.
【技术实现步骤摘要】
字段值注释的更新方法、装置及计算机可读存储介质
本专利技术涉及计算机
,尤其涉及字段值注释的更新方法、装置及计算机可读存储介质。
技术介绍
在计算机程序的开发中,开发人员通常将数据表的状态或类型字段对应值的注释写在代码的注释中,以便于后续迭代开发时,对字段值的理解。然而将注释写在代码中,当后期程序更新时需要新增或者修改数据表状态或类型字段时,需要修改该字段的所有注释,更有可能会遗漏部分注释的修改,则需要开发人员重新返工修改。从而造成程序后期维护成本高、更新工作十分繁琐的问题。
技术实现思路
本专利技术的主要目的在于提供一种字段值注释的更新方法、装置及计算机可读存储介质,旨在解决程序后期维护成本高、更新工作十分繁琐的技术问题。为实现上述目的,本专利技术提供一种字段值注释的更新方法,所述字段值注释的更新方法包括以下步骤:显示注释数据表;识别通过所述注释数据表输入的字段值的属性信息,获取所述注释数据表中所述字段值的注释,其中,在使用计算机程序对字段值进行注释时,调用所述注释数据表以获取所述字段值对应的注释;接收到所述注释的更新操作时,根据所述更新操作更新所述注释。优选地,所述接收到所述注释的更新操作时,根据所述更新操作更新所述注释的步骤之后,还包括:接收到注释添加指令时,获取所述注释添加指令对应的注释对应的表名、字段名、所述注释对应的字段值以及所述字段值的属性信息;将所述注释对应的表名、字段名、所述注释对应的字段值以及所述字段值的属性信息添加至所述注释数据表;将所述注释对应的表名、字段名、所述注释对应的字段值以及所述字段值的属性信息组成的数组封装成字段值注释的 ...
【技术保护点】
1.一种字段值注释的更新方法,其特征在于,所述字段值注释的更新方法包括以下步骤:显示注释数据表;识别通过所述注释数据表输入的字段值的属性信息,获取所述注释数据表中所述字段值的注释,其中,在使用计算机程序对字段值进行注释时,调用所述注释数据表以获取所述字段值对应的注释;接收到所述注释的更新操作时,根据所述更新操作更新所述注释。
【技术特征摘要】
1.一种字段值注释的更新方法,其特征在于,所述字段值注释的更新方法包括以下步骤:显示注释数据表;识别通过所述注释数据表输入的字段值的属性信息,获取所述注释数据表中所述字段值的注释,其中,在使用计算机程序对字段值进行注释时,调用所述注释数据表以获取所述字段值对应的注释;接收到所述注释的更新操作时,根据所述更新操作更新所述注释。2.如权利要求1所述的字段值注释的更新方法,其特征在于,所述接收到所述注释的更新操作时,根据所述更新操作更新所述注释的步骤之后,还包括:接收到注释添加指令时,获取所述注释添加指令对应的注释对应的表名、字段名、所述注释对应的字段值以及所述字段值的属性信息;将所述注释对应的表名、字段名、所述注释对应的字段值以及所述字段值的属性信息添加至所述注释数据表;将所述注释对应的表名、字段名、所述注释对应的字段值以及所述字段值的属性信息组成的数组封装成字段值注释的键值对,以供所述计算机程序采用所述键值对作为所述字段值的注释。3.如权利要求1所述的字段值注释的更新方法,其特征在于,所述识别通过所述注释数据表输入的字段值的属性信息,获取所述注释数据表中所述字段值的注释的步骤包括:识别通过所述注释数据表输入的字段值的属性信息,根据所述字段值的属性信息遍历所述注释数据表;获取所述注释数据表中具有所述属性信息的字段值的注释。4.如权利要求3所述的字段值注释的更新方法,其特征在于,所述识别...
【专利技术属性】
技术研发人员:林志远,
申请(专利权)人:金行家深圳文化传播有限公司,
类型:发明
国别省市:广东,44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。