Java
  Home arrow Java arrow Page 4 - Querying Oracle 10G XE using Sun Java Crea...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
JAVA

Querying Oracle 10G XE using Sun Java Creator 2
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 3
    2006-12-06

    Table of Contents:
  • Querying Oracle 10G XE using Sun Java Creator 2
  • Creating a table in Oracle 10G XE
  • Adding an Oracle 10G XE data source to Creator 2
  • Adding data to the page
  • Displaying the Query results

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Querying Oracle 10G XE using Sun Java Creator 2 - Adding data to the page


    (Page 4 of 5 )

    You can drag and drop the data objects, such as a table, to the page. For example if you drag and drop the Employees table to the page you will be creating SessionBean1 as shown. You are effectively adding rows of data from the query "Select * from HR.EMPLOYEES".

    Editing the query in the query editor

    Now double click the employeesRowset icon under SessionBean1. This opens up the query editor as shown in the next picture. The query can be "run" to review the rows returned. This will populate a pane below the SQL view where you can review the results. If you right click on an empty area, you can pop open the context sensitive menu from which you can run the query as well as add more tables, or add grouping information to your query.

    The result of running the query together with the SQL statement is shown in the next picture. You may modify the query until you are satisfied with the results of the query. As you can see the query was modified to drop a number of columns by deselecting them; a criterion is added, the results sorted by LastName, and the column aliases added.

    More Java Articles
    More By Jayaram Krishnaswamy


       · I am a mostly Microsoft guy and when I used Sun Java Studio Creator 2, I was quite...
     

    JAVA ARTICLES

    - Deploying Multiple Java Applets as One
    - Deploying Java Applets
    - Understanding Deployment Frameworks
    - Database Programming in Java Using JDBC
    - Extension Interfaces and SAX
    - Entities, Handlers and SAX
    - Advanced SAX
    - Conversions and Java Print Streams
    - Formatters and Java Print Streams
    - Java Print Streams
    - Wildcards, Arrays, and Generics in Java
    - Wildcards and Generic Methods in Java
    - Finishing the Project: Java Web Development ...
    - Generics and Limitations in Java
    - Getting Started with Java Web Development in...







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek