文档详情

sql开发人员插件接口plugin.pdf

发布:2025-03-23约15.05万字共48页下载文档
文本预览下载声明

PL/SQLDeveloperPlug-IninterfaceDocumentation

Version2.10ofPL/SQLDeveloperintroducedaPlug-Ininterface.Thepurposeofthisinterfaceiseasy

externaladditionofnewfunctionalitytoPL/SQLDeveloper.Plug-Insshouldbeusedtoaddfunctions

toPL/SQLDeveloperthatarenotverywellsuitedasbuilt-infunctions.ReasonstobuildaPlug-In

couldbetoaddsomecompanyorproductspecificfunctions.Youcouldalsoconsidertobuild

commercialPlug-Ins(nolicensefeerequired).WewilldistributesomePlug-Insofourownonourweb

site(severalinterfacestoversioncontrolsystems),wecanalsopromoteyours(commercialornot)if

youwish.

APlug-InisaDLL,soifyouareusingaprogramminglanguagethatcancreateDLL’s,youcancreate

PL/SQLDeveloperPlug-Ins.OnstartupPL/SQLDeveloperwillcheckcertaindirectoriesfor*.dllfiles

whichwillbeloadedifcertainkeyfunctionsareavailable.IfoneormorePlug-Insarefound,the

configurationmenuitemisenabledwhichallowsanend-usertoactivateorde-activatePlug-Ins.

TheinterfaceisbuiltinC++style.ThismeansthatifyouareusinganonC++language(likeDelphi)

youshouldmakesurethatyouforceallcallportfunctionsandcallbacks)totheC++calling

convention.Topreventprogramminglanguageincompatibilitieswelimitedthenumberofdifferent

parameterstothree,Boolean(32bit),Integer(32bit)andzeroterminatedstrings.

Ifyoushouldfindabugorifyouhavewishesforadditionalfunctions,justletusknowandwewilltryto

improvetheinterface.We’llmakesurehoweverthatanymodificationstotheinterfacewillbeupward

compatible.

Basicfunctions

TherearetenfunctionsthatcanbeexportedfromtheDLL.Threeofthesefunctionsarerequiredfor

PL/SQLDevelopertorecognizeaDLLasaPlug-In.Belowarethebasicfunctionstocreatea

functionalPlug-In.

NOTE:

Startinginversion500,onlytheIdentifyPlugInfunctionisr

显示全部
相似文档