[OFBiz] Dev - Databaseutil.java
bjfree at free-man.net
bjfree at free-man.net
Wed Apr 6 12:35:04 EDT 2005
Sorry I did not get my idea across,
You and I are on the same page as far as no specific db code.
However that is what has happened for repaircolumnsize
so will you accept a change that makes repaircolumnsize, non DB specific.
and Yes I had planed to use the helper files, since they need updating
anyway.
there are some new minilang that are not covered.
-----Original Message-----
From: David E. Jones [mailto:jonesde at ofbiz.org]
Sent: Wednesday, April 06, 2005 3:41 PM
To: OFBiz Project Development Discussion (High Traffic)
Subject: Re: [OFBiz] Dev - Databaseutil.java
BJ,
The current pattern is to NOT have any code that is specific to a
database.
In other words, there is no "if database is SQLServer then do this else
do that".
Instead we have configuration options on the datasource element in the
entityengine.xml file that are used to specify how the Entity Engine
should behave, and these options are setup for each database. This is
one of the reasons why we have example configurations for each
database.
For optimization reasons there are a couple of places in the code that
need to be changed for something like this, but there are lots of other
examples you can trace through to see how things fit together.
-David
On Apr 6, 2005, at 5:51 AM, bjfree at free-man.net wrote:
> In the SQLprocessor.java there is a way to prepare the statement, so
> it gets
> sent the DB in the way it processes calls.
>
> In the DatabaseUtil.java the repaircolumnsize is hard coded to use a
> particular syntax.
> I would like to re-write this so it takes into account the DB that the
> command is being sent to.
>
> _______________________________________________
> Dev mailing list
> Dev at lists.ofbiz.org
> http://lists.ofbiz.org/mailman/listinfo/dev
_______________________________________________
Dev mailing list
Dev at lists.ofbiz.org
http://lists.ofbiz.org/mailman/listinfo/dev
More information about the Dev
mailing list