Loading...
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 [...]
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 [...]
October 9, 2008
The Design Decomposition Blog
is written by Doug Barry.
Loading...

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.

Loading...

Related recent articles from Google News

Microsoft Says Virtualization Only a Pit Stop in the Cloud Race
Softpedia
There are of course, additional Cloud offerings from Microsoft, such as hosted versions of Office, Exchange, SharePoint and SQL. One of the best aspects of ...
SpringSource vFabric cloud application framework platform InfoQ.com
VMware maps out journey for vFabric cloud infrastructure SDTimes.com
Microsoft douses VMware with cold cloud shower Register
Techworld.com
all 522 news articles »
1 Sep 2010 at 4:10am
Cover Story: Get Ready for the Entity Framework
Redmond Developer News
The protests have died down with version 2 and the question of whether to use the implementation of LINQ known as LINQ to SQL -- the lightweight ORM that ...
and more »
31 Aug 2010 at 5:43pm
119 iPad apps for admins, coders and geeks
Register
The same developer who put together JAVA Technologies, Impressol, offers SQL & PL/SQL ($9.99) and UNIX Programming ($5.99). We'll leave it up to you to ...
and more »
22 Aug 2010 at 11:39pm
SOA Software Announces IBM IMS Transformation Product
MarketWatch (press release)
SOLA for IMS can also service-enable DB2 stored procedures and SQL statements. SOLA is highly optimized, making it the most efficient option for ...
and more »
1 Sep 2010 at 8:06am
Lattix introduces browser-based architecture management solution
SDTimes.com
The software also supports 64-bit operating systems and has modules for Ada, C/C++, Java, .NET and Pascal, as well as for Oracle, SQL Server and Sybase ...

2 Sep 2010 at 7:39am
More related news on: SQL Java

Related books at Amazon.com

Oracle9i SQLJ Programming
Oracle9i SQLJ Programming
by Nirva Morisseau-Leroy, Martin K. Solomon, Gerald P. Momplaisir
Average Customer Review: 3.5 stars based on 9 reviews.
Customer Review: I wanted to learn more about SQLJ, specifically Oracle SQLJ. I bought this book and I must say, it's worth every penny. I specifically enjoyed the chapters on SQLJ Update Batching and how to handle BLOB and CLOB. It's an excellent book and I recommend it to anyone who wants to learn about SQLJ in general and specifically Oracle SQLJ.
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...
More related books: Search Amazon.com for SQLJ