[fpc-devel] Implementing a Dataset

2012-09-03 Thread Felipe Monteiro de Carvalho
Hello, I searched a bit but there seams to be no documentation showing how to implement a new dataset, correct? Any idea what is the list of minimum amount of methods which I need to implement? I really would like to implement the absolute minimum to get started. I am starting already based on

Re: [fpc-devel] Implementing a Dataset

2012-09-03 Thread Felipe Monteiro de Carvalho
On Mon, Sep 3, 2012 at 11:18 AM, michael.vancann...@wisa.be wrote: I think your best bet is to create a descendent of TBufDataset: it is in itself a full TDataset. You'll have to implement the least amount of methods there, and you can see in TSQLQuery which ones. But why would this be a

Re: [fpc-devel] Implementing a Dataset

2012-09-03 Thread michael . vancanneyt
On Mon, 3 Sep 2012, Felipe Monteiro de Carvalho wrote: On Mon, Sep 3, 2012 at 11:18 AM, michael.vancann...@wisa.be wrote: I think your best bet is to create a descendent of TBufDataset: it is in itself a full TDataset. You'll have to implement the least amount of methods there, and you can

Re: [fpc-devel] Implementing a Dataset

2012-09-03 Thread Ludo Brands
But why would this be a better solution? TBufDataset is huge ... it me it looks much harder to understand how it works and subclass it then to attempt to start with empty methods and see if implementing something on them will work. You can also take a look at rxmemds in the rx components

Re: [fpc-devel] Implementing a Dataset

2012-09-03 Thread Felipe Monteiro de Carvalho
On Mon, Sep 3, 2012 at 2:15 PM, michael.vancann...@wisa.be wrote: And do not forget, you don't need to do TBufDataset, but TSQLQuery. That just implements a few simple things. The rest is taken care of by TBufDataset. Now you are confusing me even more. Are you suggesting that I subclass

Re: [fpc-devel] Implementing a Dataset

2012-09-03 Thread Felipe Monteiro de Carvalho
On Mon, Sep 3, 2012 at 2:19 PM, Ludo Brands ludo.bra...@free.fr wrote: What is it you are trying to accomplish? A dataset that can be accessed from java or the other way around, access an android integrated database (sqlite?) over jni? The second one: Access sqlite Java API from native code.

Re: [fpc-devel] Implementing a Dataset

2012-09-03 Thread Ludo Brands
The second one: Access sqlite Java API from native code. The normal TSQLite3Connection does not work in Android (no idea why). Then you need to make a TSQLConnection descendant which is below TBufDataset. Ludo ___ fpc-devel maillist -

Re: [fpc-devel] Implementing a Dataset

2012-09-03 Thread Felipe Monteiro de Carvalho
On Mon, Sep 3, 2012 at 2:15 PM, michael.vancann...@wisa.be wrote: Believe me, it is not :-) Could you make some theorical considerations about this? From what I see now my 2 choices are either implement a TDBDataset descendent or a TSQLConnection descendent. For me it doesn't matter either way,