Re: Help Required In Writing a New SDBC Driver For LDAP
Rohit Kulkarni <[email protected]> Thu, 10 Mar 2011 21:28:28 +0530
| Newsgroups | gmane.comp.openoffice.dba.devel |
|---|---|
| Message-ID | <[email protected]> |
--0016367fb31b90e287049e22eaf5 Content-Type: text/plain; charset=ISO-8859-1 Hi, Thanks for your reply. I really appreciate the help. I could find the skeleton files at the location you have mentioned. Currently we are planning to develop the SDBC driver which will not be an extension. So, we will have to build the skeleton driver first, get it in the list of available drivers and then make it work for LDAP. Could you please elaborate the point where you mentioned to search for macab key on the website? How does the open office dmake understand that it has to build this new driver? Thanks, Rohit On Thu, Mar 10, 2011 at 12:38 PM, Ocke Janssen <[email protected]>wrote: > Hi Rohit, > > First of all you have to decide if the driver should be an extension or > not. I would first try it as extension because you could look at the mysql > driver. > > Not an extension: > The best and easiest way to start I guess is to simply copy the skeleton > files in a folder beside the other database drivers in connectivity. Further > on you should copy e.g. the macab.xml and macab.xcu file and rename it to > your driver in the same directory. > Search with opengrok http://svn.services.openoffice.org/opengrok/ the > macab key inside the other projects e.g. scp2 to include the files into the > OOo installation. Build OOo. > > As extension: > Here the best way is to look at the mysqlc/source where the mysql extension > is build and copy the files you need to build the oxt. But please be aware > to replace all occurrences of mysql with your name ;-) > > > Best regards, > > Ocke > > > On 09.03.2011 19:21, Ocke Janssen wrote: > >> Hi, >> >> The driver can be found here >> ooo\odk\examples\DevelopersGuide\Database\DriverSkeleton >> >> - oj >> >> PS: I'll write more tomorrow. ;-) >> >> On 09.03.2011 16:37, Rohit Kulkarni wrote: >> >>> Currently I am writing an SDBC driver for LDAP directories. I am >>> following the guidelines given at >>> >>> http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/Database/SDBC_Driver >>> >>> This includes writing Driver, connection, statement and resultset >>> services. >>> >>> I want to compile the skeleton driver code and have an entry in the list >>> of available drivers. This driver will be a pseudo driver and will not >>> have any functionality. This will help in developing the actual driver. >>> >>> I am not able to find skeleton driver related source files. I could >>> locate a folder named skeleton in >>> "/OOO320_m19/connectivity/workben/skeleton" but could not find actual >>> source files. >>> >>> Could anyone please give me any pointers regarding >>> >>> 1. Where can I find the source files for the skeleton driver? >>> 2. How to build a skeleton driver? >>> 3. How to make an entry in available drivers list? >>> >>> Thanks for your time. I really appreciate the help. >>> >>> Regards, >>> Rohit >>> >> >> -- >> ----------------------------------------------------------------- >> To unsubscribe send email to [email protected] >> For additional commands send email to [email protected] >> with Subject: help >> > > -- > ----------------------------------------------------------------- > To unsubscribe send email to [email protected] > For additional commands send email to [email protected] > with Subject: help > -- ----------------------------------------------------------------- To unsubscribe send email to [email protected] For additional commands send email to [email protected] with Subject: help --0016367fb31b90e287049e22eaf5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,<div><br></div><div>Thanks for your reply. I really appreciate the=20 help.</div><div><br></div><div>I could find the skeleton files at the=20 location you have mentioned.=A0Currently we are planning to develop the=20 SDBC driver which will not be an extension. So, we will have to build=20 the skeleton driver first, get it in the list of available drivers and=20 then make it work for LDAP.</div> <div><br></div><div>Could you please elaborate the point where you=20 mentioned to search for=A0macab key on the website?</div><div>How does the open office dmake understand that it has to build this new driver?=A0</div= ><div><br> </div><div>Thanks,</div>Rohit<br><br><div class=3D"gmail_quote">On Thu, Mar= 10, 2011 at 12:38 PM, Ocke Janssen <span dir=3D"ltr"><<a href=3D"mailto= :[email protected]">[email protected]</a>></span> wrote:<br>= <blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; borde= r-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> Hi Rohit,<br> <br> First of all you have to decide if the driver should be an extension or not= . I would first try it as extension because you could look at the mysql dri= ver.<br> <br> Not an extension:<br> The best and easiest way to start I guess is to simply copy the skeleton fi= les in a folder beside the other database drivers in connectivity. Further = on you should copy e.g. the macab.xml and macab.xcu file and rename it to y= our driver in the same directory.<br> Search with opengrok <a href=3D"http://svn.services.openoffice.org/opengrok= /" target=3D"_blank">http://svn.services.openoffice.org/opengrok/</a> the m= acab key inside the other projects e.g. scp2 to include the files into the = OOo installation. Build OOo.<br> <br> As extension:<br> Here the best way is to look at the mysqlc/source where the mysql extension= is build and copy the files you need to build the oxt. But please be aware= to replace all occurrences of mysql with your name ;-)<br> <br> <br> Best regards,<br><font color=3D"#888888"> <br> Ocke</font><div><div></div><div class=3D"h5"><br> <br> On 09.03.2011 19:21, Ocke Janssen wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; borde= r-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> Hi,<br> <br> The driver can be found here<br> ooo\odk\examples\DevelopersGuide\Database\DriverSkeleton<br> <br> - oj<br> <br> PS: I'll write more tomorrow. ;-)<br> <br> On 09.03.2011 16:37, Rohit Kulkarni wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; borde= r-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> Currently I am writing an SDBC driver for LDAP directories. I am<br> following the guidelines given at<br> <a href=3D"http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/= Database/SDBC_Driver" target=3D"_blank">http://wiki.services.openoffice.org= /wiki/Documentation/DevGuide/Database/SDBC_Driver</a><br> <br> This includes writing Driver, connection, statement and resultset<br> services.<br> <br> I want to compile the skeleton driver code and have an entry in the list<br> of available drivers. This driver will be a pseudo driver and will not<br> have any functionality. This will help in developing the actual driver.<br> <br> I am not able to find skeleton driver related source files. I could<br> locate a folder named skeleton in<br> "/OOO320_m19/connectivity/workben/skeleton" but could not find ac= tual<br> source files.<br> <br> Could anyone please give me any pointers regarding<br> <br> 1. Where can I find the source files for the skeleton driver?<br> 2. How to build a skeleton driver?<br> 3. How to make an entry in available drivers list?<br> <br> Thanks for your time. I really appreciate the help.<br> <br> Regards,<br> Rohit<br> </blockquote> <br> --<br> -----------------------------------------------------------------<br> To unsubscribe send email to <a href=3D"mailto:[email protected]= ce.org" target=3D"_blank">[email protected]</a><br> For additional commands send email to <a href=3D"mailto:[email protected]= e.org" target=3D"_blank">[email protected]</a><br> with Subject: help<br> </blockquote> <br> --<br> -----------------------------------------------------------------<br> To unsubscribe send email to <a href=3D"mailto:[email protected]= ce.org" target=3D"_blank">[email protected]</a><br> For additional commands send email to <a href=3D"mailto:[email protected]= e.org" target=3D"_blank">[email protected]</a><br> with Subject: help<br> </div></div></blockquote></div><br> --0016367fb31b90e287049e22eaf5--