[Form Builer]Locking Mode and LOCK_RECORD
Locking Mode Property
Description
Specifies when Oracle Forms tries to obtain database locks on rows that correspond to queried records in the form.
The following table describes the allowed settings for the Locking Mode property:
Value Description
Automatic (default) Identical to Immediate if the datasource is an Oracle database. For other datasources, OracleForms determines the available locking facilities
and behaves as much like Immediate as possible.默认值:修改记录时Forms会立即锁定数据库记录
Immediate Oracle Forms locks the corresponding row as soon as the end user presses a key to enter or edit the value in a text item.
与Automatic一样,一般情况下建议使用Automatic代替Immediate
Delayed Oracle Forms locks the row only while it posts the transaction to the database, not while the end user is editing the record.
Oracle Forms prevents the commit action from processing if values of the fields in the block have changed when the user
causes a commit action.在post事务保存时Forms才尝试锁定记录
LOCK_RECORD Built-in
Description (尝试立即锁定相关的record,而不管lock mode是自动(立即)或是延迟)
Attempts to lock the row in the database that corresponds to the current record. LOCK_RECORD locks the record immediately, regardless of whether the Locking Mode block property is set to Immediate (the default) or Delayed. When executed from within an On-Lock trigger, LOCK_RECORD initiates default database locking. The following example illustrates this technique.
Syntax
PROCEDURE LOCK_RECORD;
Built-in Type unrestricted procedure
Enter Query Mode no
Parameters none
LOCK_RECORD Examples
/*
** Built-in: LOCK_RECORD
** Example: Perform Oracle Forms standard record locking on the
** queried record which has just been deleted or
** updated. Decide whether to use default
** processing or a user exit by consulting a
** global flag setup at startup by the form,
** perhaps based on a parameter.
** Trigger: On-Lock
*/
BEGIN
/*
** Check the global flag we set up at form startup
*/
IF :Global.Non_Oracle_Datasource = 'TRUE' THEN
User_Exit('my_lockrec block=EMP');
/*
** Otherwise, do the right thing.
*/
ELSE Lock_Record;
END IF;
END;
[Form Builer]Locking Mode and LOCK_RECORD的更多相关文章
- oracle Form Builer:FIND_FORM Built-in
Description Searches the list of forms and returns a form module ID when it finds a valid form with ...
- oracle Form Builer:ID_NULL Built-in
Description Returns a BOOLEAN va ...
- redis学习教程之一基本命令
参阅redis中文的 互动教程(interactive tutorial)来学习的. 目录: 全局操作 get get incr 自增 del 删除 expire 定时 list 队列 set ...
- (转) Redis学习教程--基本命令
原文出自:http://www.cnblogs.com/woshimrf/p/5198361.html 目录 全局操作:1.redis是key-value存储的,放在内存中,并在磁盘持久化的数据结构存 ...
- Method and apparatus for speculative execution of uncontended lock instructions
A method and apparatus for executing lock instructions speculatively in an out-of-order processor ar ...
- Oracle Form属性、内置子程序、触发器、系统变量简要
一.属性 1.1 通用属性 名称(Name) 子类信息(Subclass Information) 备注(Comments) 标题(Title) 方向(Direction) 字体名称(Font Nam ...
- [Form Builder]内置函数execute_trigger、do_key详解
转:http://yedward.net/?id=82 1.execute_trigger:用来运行一个指定的触发器,常用来运行用户自定义的触发器. 语法:procedure execute_trig ...
- oracle form 触发器执行顺序及键定义[Z]
1当打开FORM时: (1)PRE-FORM (2)PRE-BLOCK(BLOCK级) (3)WHEN-NEW-FORM-INSTANCE (4)WHEN-NEW-BLOCK-INSTANCE (5) ...
- FORM内置系统函数
abort_query; 停止查询的执行 add_group_column(record grou ...
随机推荐
- Emeditor所有快捷键操作
新建文本 Ctrl+N 创建一个新的文本文件. 打开 Ctrl+O 打开一个已存在的文件. 保存 Ctrl+S 保存当前文件. 重新 ...
- Import data from SQLServer with Sqoop
author: luciuz date: 2013/11/15 -------------------------------------------------------------------- ...
- BZOJ_1833_[ZJOI2010]_数字计数_(数位dp)
描述 http://www.lydsy.com/JudgeOnline/problem.php?id=1833 统计\(a~b\)中数字\(0,1,2,...,9\)分别出现了多少次. 分析 数位dp ...
- modsecurity配置指令学习
事务(transactions) Console(控制台) 1 Introduction Modsecurity是保护网络应用安全的工作.不,从零开始.我常称modsecurity为WAF(网络应用防 ...
- [codevs1557]热浪
本题地址:http://www.luogu.org/problem/show?pid=1339 http://codevs.cn/problem/1557/ http://www.tyvj.cn/p/ ...
- [综述]领域特定语言(Domain-Specific Language)的概念和意义
领域特定语言(Domain Specific Language, DSL)是一种为解决特定领域问题而对某个特定领域操作和概念进行抽象的语言.领域特定语言只是针对某个特定的领域,这点与通用编程语言(Ge ...
- 简单三步为Azure安装 Visual Studio
如果你尚未安装 Azure Tools,此过程可帮助你安装.如果你已安装 Azure Tools,则可以转到下一个过程. 安装 Azure Tools 若要安装 Azure Tools,请在菜单栏上依 ...
- HDU-3622 Bomb Game 2sat
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=3622 题意:一个平面上有很多的炸弹,每个炸弹的爆炸范围是一样的,求最大的爆炸范围使得炸弹之间不相互影响 ...
- Weblogic 集群部署说明 --转
代理web.xml 设置 <servlet> l <servlet-name>HttpClusterServlet</servlet-nam ...
- GitHub初次使用记录(一)
1.从GitHub上克隆或者复制别人的档案库: