This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Using views instead of SQL queries in SB? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Using views instead of SQL queries in SB?" Watch "Using views instead of SQL queries in SB?" New topic
Author

Using views instead of SQL queries in SB?

Amit Shanker
Greenhorn

Joined: Mar 08, 2003
Posts: 23
Hi All,

In our application, we fire SQL queries from SB methods. Now whenever we change the query, we need to compile the SB and restart the application server.

To avoid the above scenario, we are planning to create oracle views and to fetch data just fire a "SELECT" on the view. If the query changes, we just have to modify the view, so there is no need to modify SB or restart the application server.

Are there any problems in using views or calling them through SB methods??

Your experience and answers will be highly appreciated.

We are using iPlanet Application server version 6.5 SP1 and database is Oracle 8i.

Thank you very much.

Amit.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Its fine so long as your application is read only I think. There are however restrictions when it comes to updating data through views (search your oracle documentation for "updatable views").


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using views instead of SQL queries in SB?