[OFBiz] Dev - Databaseutil.java
David E. Jones
jonesde at ofbiz.org
Wed Apr 6 11:40:42 EDT 2005
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2363 bytes
Desc: not available
Url : http://lists.ofbiz.org/pipermail/dev/attachments/20050406/0fe81014/smime.bin
More information about the Dev
mailing list