Ofbiz Database

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Ofbiz Database

Brendan Vogt
Hi,

 

I am using for Postgres database for my Ofbiz installation.  I usually work
on SQL Server 2005.  And I use stored procedures.  If I have Ofbiz install
on SQL Server, does it make use of stored procedures?  I'm not sure if the
there is support for stored procedures in Java and Posgres?

 

Regards,

Brendan Vogt

Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz Database

Adrian Crum
Brendan Vogt wrote:
> I am using for Postgres database for my Ofbiz installation.  I usually work
> on SQL Server 2005.  And I use stored procedures.  If I have Ofbiz install
> on SQL Server, does it make use of stored procedures?  I'm not sure if the
> there is support for stored procedures in Java and Posgres?

No, OFBiz does not use stored procedures.

Stored procedures are vendor specific. OFBiz attempts to be database agnostic by avoiding vendor
specific features.

-Adrian


Reply | Threaded
Open this post in threaded view
|

RE: Ofbiz Database

Brendan Vogt
But aren't stored procedures good to use to prevent sql injection attacks?
So what does it implement instead of stored procedures?


-----Original Message-----
From: Adrian Crum [mailto:[hidden email]]
Sent: Friday, October 26, 2007 6:57 PM
To: [hidden email]
Subject: Re: Ofbiz Database

Brendan Vogt wrote:
> I am using for Postgres database for my Ofbiz installation.  I usually
work
> on SQL Server 2005.  And I use stored procedures.  If I have Ofbiz install
> on SQL Server, does it make use of stored procedures?  I'm not sure if the
> there is support for stored procedures in Java and Posgres?

No, OFBiz does not use stored procedures.

Stored procedures are vendor specific. OFBiz attempts to be database
agnostic by avoiding vendor
specific features.

-Adrian


Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz Database

Adrian Crum
Brendan Vogt wrote:
> But aren't stored procedures good to use to prevent sql injection attacks?
> So what does it implement instead of stored procedures?

The Entity Engine.

http://ofbiz.apache.org/docs/entity.html

-Adrian


Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz Database

Gautam Deb-2
In reply to this post by Brendan Vogt
OFBiz does not use/support stored procedure but you can definitely write
your own JDBC layers for calling stored procedure directly, bypassing OFBiz
entity engine.

To answer your other question, YES Java and Postgres supports stored
procedure/functions. Please go thru the following links -

1. http://www.postgresql.org/docs/8.0/interactive/plpgsql.html
2. http://www.onjava.com/pub/a/onjava/2003/08/13/stored_procedures.html

Hope this helps.

--
Gautam Deb


On 10/26/07, Brendan Vogt <[hidden email]> wrote:

>
> Hi,
>
>
>
> I am using for Postgres database for my Ofbiz installation.  I usually
> work
> on SQL Server 2005.  And I use stored procedures.  If I have Ofbiz install
> on SQL Server, does it make use of stored procedures?  I'm not sure if the
> there is support for stored procedures in Java and Posgres?
>
>
>
> Regards,
>
> Brendan Vogt
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz Database

Walter Vaughan
In reply to this post by Brendan Vogt
Brendan Vogt wrote:

> But aren't stored procedures good to use to prevent sql injection attacks?
> So what does it implement instead of stored procedures?

Because the User Interface does not talk directly to the database.
This is not a perl or PHP script.

Its more like a VCR playing back a tape. The machine knows to play back the tape
or record, but what's recorded on it can't pause, stop, or rewind the tape.

http://www.securityfocus.com/bid/21529
Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz Database

BJ Freeman
In reply to this post by Brendan Vogt
ofbiz has a layer that converts what ofbiz does to Database language.
Yes the data layer does create Temporary Stored procedures for some
Databases.
however you will not find stored procedures created in any ofbiz code.
not will you find any permanent Stored procedures in the Database
created by ofbiz.


Brendan Vogt sent the following on 10/26/2007 9:52 AM:

> Hi,
>
>  
>
> I am using for Postgres database for my Ofbiz installation.  I usually work
> on SQL Server 2005.  And I use stored procedures.  If I have Ofbiz install
> on SQL Server, does it make use of stored procedures?  I'm not sure if the
> there is support for stored procedures in Java and Posgres?
>
>  
>
> Regards,
>
> Brendan Vogt
>
>