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

Segue Technologies - Java Developer- Job Shop
MyFox Washington DC
•Extensive knowledge and experience in struts, MVC, Java, Eclipse, log4j, jBoss, AJAX, XML, JAXB, Quartz, web services, SOAP, SQL, JSF, LDAP and spring. ...
Sun-Oracle Merger Looks Bright for OpenOffi ...
PC Magazine
The acquisition might make MySQL and OpenOffice.org even more competitive against costly Microsoft counterparts (SQL Server and Microsoft Office). Why? ...
Home Database How Will Oracle Ownership of MySQL Affect IBM, Microsoft? eWeek
Oracle-Sun Merger Could Benefit Small Business PC World
Oracle to Sun open source users: Don't worry Search Enterprise Linux
CNET
all 1,270 news articles »
Microsoft Will Be Running a 'Windows Azure' Workshop at the Cloud Computing ...
MarketWatch
NET, Java, Ruby, PhP, SQL Server, MySQL and more to be run on Microsoft Data Centers. "For the past decade we have relied on Microsoft for underpinning ...
Windows Azure: Microsoft's Cloud Launches DABCC.com
Windows Azure Interoperability, an Invitation to Embrace the Cloud Softpedia
Microsoft Brings Cloud Interoperability Down to Earth SYS-CON Media (press release)
all 204 news articles »
Azure to feature at cloud conference
OnWindows.com
NET, Java, Ruby, PhP, SQL Server, MySQL and more to be run on Microsoft data centres. "For the past decade we have relied on Microsoft for underpinning ...
and more »
Oracle may get EU approval on Sun this week: source
Reuters
... and storage equipment, the acquisition will also give Oracle the widely used Java programing language, the Solaris operating system and SQL database. ...
Sun-Oracle Deal Could Shake Up Tech TheStreet.com
Oracle-Sun merger foes head to China, Russia ITWorld Canada
Oracle wins unconditional EU approval for Sun buy Washington Post
GCN.com
all 890 news articles »
More related news on: SQL Java

Related books at Amazon.com

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 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...
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