Re: Serializing PreparedStatement, or: how do create a database history?



Look at the disconnected JDBC RowSet:
http://today.java.net/pub/a/today/2004/10/15/jdbcRowsets.html

Yakov Fain
http://www.weekendwithexperts.com


Chris wrote:
> Hi,
> I want to do the following and I hope you can give me hints on how to do
> this:
>
> We have a Database (MS SQL over JDBC) which is not always necessary
> accessible. But this fact has to be transparent for the application
> which uses the db. If the db is not available, all updates/inserts and
> deletes must be saved (persistent on the harddisk!) and later be
> executed on the database (SQL select is not needed).
> I first thought about serializing the PreparedStatement, but first of
> all it is not serializable, second, all status about the database is lost.
> Simply saving the SQL string does not help, as there can be binary
> objects in the query which are set using the PerparedStatement.
> As this is an extension to an existing program, and PreparedStatement is
> used there all over, building something around the PreparedStatement
> seems like the only solution.
>
> If you have only the slightest suggestion on how this can be done,
> thanks a lot!
>
> Regards,
> Chris

.



Relevant Pages

  • Re: Are split databases a chimera of utility?
    ... reading tutorials about access and SQL and learned more than my boss, ... Chris, ... Not in SQL Server, not in mysql, not in Oracle, not even in Access. ... the db, speed for developers in development and maintenance, exclusive access ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Threading
    ... Chris - Thanks for the pointer. ... Dim dlgt As New AsyncDelegate ... Some of them are not a problem but the question I have is with SQL ... and populating items on a form. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: PHP and secure MySQL injections
    ... Chris Hope wrote: ... >> I don't think My SQL will do that anyway. ... I then used what was in the error message (which contained the full ... as I just ran another test for semi-colons ...
    (comp.lang.php)
  • Re: XML XPath Query compact framework
    ... Thanks Chris - I had a feeling that might be the case... ... >> the relevant sql element out of the XML and returning it as a string. ... >> are XPath node selections done in the CF? ... > There is no XPath support on the CF. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: PreparedStatement + "order by ?"
    ... Chris wrote: ... Is there a way to use a PreparedStatement with a query such as ... where the first parameter is the name of the table field I'd like to ...
    (comp.lang.java.programmer)