Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
使用此系统过程将 Java 方法注册为表事件的脚本,或将 Java 方法注销,不再作为表事件的脚本。
ml_add_java_table_script ( 'version', 'table', 'event', 'script' )
version
VARCHAR(128)。版本名称。
table
VARCHAR(128)。表名。
event
VARCHAR(128)。事件名称。
script
TEXT。脚本内容。如果是 Adaptive Server Enterprise,此参数为 VARCHAR(16384)。如果是 IBM DB2 LUW,此参数为 VARCHAR(4000)。如果是 Oracle,此参数为 CLOB。
要注销某个方法,请将脚本内容参数设置为空值。
script 值是 MobiLink 服务器类路径的类中的公共方法(例如,MyClass.MyMethod)。
调用 ml_add_java_table_script 时,该方法将与您指定的表、事件和脚本版本关联。如果版本名是新的,则会自动插入到 ml_version 表中。
以下示例为 emp 表的 download_cursor 事件注册 CustEmpScripts 类的 empDownloadCursor 方法。
call ml_add_java_table_script( 'ver1', 'emp', 'download_cursor','CustEmpScripts.empDownloadCursor' )