Newletter Sign Up
Posts on the
Design Decomposition Blog
Iridium Satellite Collision in Space
You might have seen the recent news reports about the collision between U.S. and Russian communication satellites. The U.S. satellite was one of the Iridium satellites. What wasn’t reported and you probably don’t know is that an object database management system (ODBMS) is an important part of the Iridium system. Even though ODBMSs are a [...]
February 13, 2009
(The Acronym) SOA is (Perhaps) Dead (at Some Companies); Long Live Services
I am now also posting on the Cutter Blog. My initial posting is (The Acronym) SOA is (Perhaps) Dead (at Some Companies); Long Live Services. It is a response to Anne Thomas Manes’ SOA is Dead; Long Live Services on her blog at the Burton Group.
January 9, 2009
Atomicity
The typical definition of an atomic task or process is one that cannot be decomposed further. This is vague and subject to interpretation. The Decomposition Matrix on this site uses a specific definition: A task (for business process diagrams) or a process (for data flow diagrams) is atomic if every input relates to every output [...]
December 3, 2008
Well-Formed Business Process Diagrams
My last posting referenced the criteria for a well-formed business process diagram mentioned in Business Process Driven SOA using BPMN and BPEL by Matjaz B. Juric and Kapil Pant. I am going to expand on their criteria to create a more comprehensive definition of a well-formed business process diagram. To start, here are three criteria from [...]
November 18, 2008
Recent Business Process Modeling Books
I recently received two new books on business process modeling. Both books looked interesting because they had great titles. As it turns out, one book is great and the other not so good. The not so good book is Business Process Driven SOA using BPMN and BPEL by Matjaz B. Juric and Kapil Pant. There are [...]
October 9, 2008
The Design Decomposition Blog
is written by Doug Barry.

SQLJ was developed by The SQLJ Group, a consortium comprised of database vendors and Sun Microsystems. The SQLJ Group submitted SQLJ in three parts to the INCITS Technical Committee H2 on Database.  H2 has adopted the three parts into the SQL standard.

SQLJ, which stands for "SQL-Java¹," is a multi-part specification for using SQL with Java:

SQLJ uses the embedded database sublanguage approach when using the Java programming language. This is illustrated by the embedded SQL statements in this diagram.

Embedded database sublanguage

An example of a Part 0 embedded SQLJ statement that creates a new Person instance with a Social Security Number of "999999999" would be:

#sql {  INSERT 
        INTO person 
        VALUES ('999999999', 'Doug Barry');
     };

This code would then be processed by a SQLJ Part 0 Translator, which will look for these embedded statements and replace them with Java statements that cause the SQL statements to be executed. The code shown above would be in addition to any host programming code. If you also wanted to manipulate this new Person instance in the host program, you would need Java code in addition to this code fragment that populates the instance in Java along with the instance in the database.

>>
Also see the INCITS H2 website (new window).
>>
For an architectural example of how JDBC can be used, see using SQLJ with application servers (new window).

¹ Using "SQLJ" avoids possible trademark problems with using the word "Java."

Related content for: SQLJ

More detail for the current topic: SQLJ

More on the general topic: DBMS standards

Read more free articles on this site

There are nearly 400 pages of articles on this site with over 40 pages on database concepts and standards.

Search this site for more articles

Custom Search

Browse this site for more articles

Click on the topics below to browse the articles on this site. You can see more detail by clicking on the arrows. This highlights the location of the current article: SQLJ.

Related recent articles from Google News

Top 15 Technologies in Spotlight at Microsoft MIX 2010
eWeek
"Houston" is a new a browser-based Silverlight control that allows developers to interact with SQL Azure directly. Houston allows for the rapid creation of ...
and more »
19 Mar 2010 at 12:50pm
C# .Net Developer
InfoGrok
Net 3.5, SQL Server 2008 and Excel VBA, but Java is also used and thus some exposure would be a bonus though not a must. You will work on development ...
and more »
18 Mar 2010 at 3:34am
Visualizing Fuel Economy with LabEscape's HeatMap Explorer
VizWorld.com
... and SQL databses into interactive HeatMaps for BI uses. The software to create the maps is a Windows-only package, but offers a web-based Java viewer. ...

18 Mar 2010 at 1:12pm
Elastic Caching Platforms Balance Performance, Scalability, And Fault Tolerance
Dr. Dobb's (blog)
Read the list from the database once, and then cache it in a Java HashMap. Need to avoid the performance-sapping disk trashing of an SQL call to repeatedly ...

18 Mar 2010 at 8:59pm
SQL Server JDBC Driver 1.2 Downloads to Be Discontinued
Softpedia
... no additional charge, and provides access to SQL Server 2000 and SQL Server 2005 from any Java application, application server, or Java-enabled applet. ...
and more »
11 Mar 2010 at 3:33am
More related news on: SQL Java

Related books at Amazon.com

Professional Java Server Programming J2EE Edition
Professional Java Server Programming J2EE Edition
by Subrahmanyam Allamaraju, Andrew Longshaw, Daniel O'Connor, Gordon Van Huizen, Jason Diamond, John Griffin, Mac Holden, Marcus Daley, Mark Wilcox, Richard Browett
Average Customer Review: 4 stars based on 30 reviews.
Customer Review: This book is one the most comprehensive ones that I've bought. It provides you with most of the possible technologies that you could use in a basic J2EE application. I love the section on the J2EE architecture. For newbies I typcially request that they read that section first. It does justice to basic topics like JDBC & Servlets & t...
Java Programming with Oracle SQLJ
Java Programming with Oracle SQLJ
by Jason Price
Average Customer Review: 5 stars based on 10 reviews.
Customer Review: My knowledge of Oracle and Java is beginner/intermediate level and I like this book a lot. The book explains how SQLJ relates to SQL, PL/SQL, Java, JDBC and it provides a good introduction to the JDeveloper IDE (Integrated Development Environment). The book is written very clearly and the appearance and organization of the text is w...
Professional Oracle 8i Application Programming with Java, PL/SQL and XML
Professional Oracle 8i Application Programming with Java, PL/SQL and XML
by Michael Awai, Matthew Bortniker, John Carnell, Kelly Cox, Daniel O'Connor, Mario Zucca, Sean Dillon, Thomas Kyte, Ann Horton, Frank Hubeny, Glenn E. Mitchell II, Kevin Mukhar, Gary Nicol, Guy Ruth Hammond
Average Customer Review: 4 stars based on 10 reviews.
Customer Review: To produce this book, Wrox took twenty expert Oracle developers and had each of them write about their area of expertise. The result is that whether you are a manager, a developer, or a DBA, if you are working with Oracle 8i this book should be on your desk. This book covers virtually every topic that you need to understand about th...
Professional Java Data: RDBMS, JDBC, SQLJ, OODBMS, JNDI, LDAP, Servlets, JSP, WAP, XML, EJBs, CMP2.0, JDO, Transactions, Performance, Scalability, Object and Data Modeling
Professional Java Data: RDBMS, JDBC, SQLJ, OODBMS, JNDI, LDAP, Servlets, JSP, WAP, XML, EJBs, CMP2.0, JDO, Transactions, Performance, Scalability, Object and Data Modeling
by Thomas Bishop, Glenn E. Mitchell, John Bell, Bjarki Holm, Danny Ayers, Carl Calvert Bettis, Sean Rhody, Tony Loton, Michael Bogovich, Mark Wilcox, Lin Kelly Poon, Nitin Nanda, Rick Grehan, Matthew Ferris, Kelly Lin Poon
Average Customer Review: 4 stars based on 2 reviews.
Customer Review: For the past 2 years Wrox has been publishing books dedicated to Windows-based data access (ADO etc.), but the same cannot be said about their Java/database collection. Although you find chapters on JDBC scattered all-over almost all server-side Java related books by Wrox, there was no single volume from them that teaches JDBC first,...
Oracle8i SQLJ Programming
Oracle8i SQLJ Programming
by Nirva Morisseau-Leroy, Martin K. Solomon, Gerald P. Momplaisir
Average Customer Review: 3.5 stars based on 14 reviews.
Customer Review: I found this book delightful reading. The clear exposition, program examples with detailed explanations, clear definitions, and well stated principals makes this a must have book for those wishing to use Java with Oracle8i. The detailed style is reminiscent of the well-known text books by authors Harvey and Paul Deitel. This book is...
More related books: Search Amazon.com for SQLJ