首页> 外国专利> Data models containing host language embedded constraints

Data models containing host language embedded constraints

机译:包含宿主语言嵌入式约束的数据模型

摘要

Techniques are described for expressing a constraint in a host language. A constraint can be defined in the host language as an event handler. The event handler can be registered to a built-in event associated with an object of the database that the constraint is intended to validate. When the object triggers the built-in event, the event handler is called to execute the constraint. Exemplary built-in events include onSave (trigger the event when the object is saved), onValidate (trigger the event when an explicit call to validate the object is detected), onInsert (trigger the event when the object is inserted), onUpdate (trigger the event when the object is updated), and onCheckBeforeSave (trigger the event when the object is checked prior to saving).
机译:描述了用于以宿主语言表达约束的技术。可以在宿主语言中将约束定义为事件处理程序。可以将事件处理程序注册到与该约束旨在验证的数据库对象相关联的内置事件。当对象触发内置事件时,将调用事件处理程序以执行约束。示例性的内置事件包括onSave(在保存对象时触发事件),onValidate(在检测到验证对象的显式调用时触发事件),onInsert(在插入对象时触发事件),onUpdate(触发对象更新时的事件)和onCheckBeforeSave(在保存之前检查对象时触发事件)。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号