SQLJ

SQLJ

SQLJ is an ISO standard (ISO/IEC 9075-10) for embedding SQL statements in Java programs.

Unlike JDBC, SQLJ is not an API but a language extension. Thus, SQLJ programs must be run through a preprocessor (the SQLJ translator) before they can be compiled.

Some advantages of SQLJ over JDBC:
* SQLJ tend to be shorter than equivalent JDBC programs.
* SQL syntax can be checked at compile time.

There are some disadvantages:
* SQLJ requires a preprocessing step.
* Many IDEs do not have SQLJ support.
* There is no SQLJ support for most of the common persistence frameworks, such as Hibernate.

Examples

The following examples compare SQLJ syntax with JDBC usage.

External links

* [http://www.redbooks.ibm.com/abstracts/sg246435.html IBM Redbook: DB2 for z/OS and OS/390: Ready for Java]


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • SQLJ — SQLJ  подмножество стандарта SQL, направленное на объединение преимуществ синтаксиса языков SQL и Java ради удобства реализации бизнес логики и работы с данными. Данный стандарт разработан консорциумом, состоящим из компаний IBM, Micro Focus …   Википедия

  • Sqlj — подмножество стандарта Java ради удобства реализации бизнес логики и работы с данными. Данный стандарт разработан консорциумом, состоящим из компаний Microsoft, Informix, Oracle, Sun и Содержание 1 Предыстория 2 Пример кода 3 SQLJ и JDBC 4… …   Википедия

  • SQLJ — Saltar a navegación, búsqueda SQLJ es un estándard ISO (ISO/IEC 9075 10) para embeber sentencias SQL en programas de Lenguaje de programación Java. Al contrario que JDBC, SQLJ no es una API sino una extensión del lenguaje. Así, los programas SQLJ …   Wikipedia Español

  • SQLJ — (Embedded SQL) ist ein eingebettetes SQL für Java. SQLJ ermöglicht eine direkte Einbettung von SQL Anweisungen in Java Code, wobei die statischen SQL Anweisungen zur Übersetzungszeit syntaktisch und semantisch überprüft werden können. SQLJ bietet …   Deutsch Wikipedia

  • SQLJ — abbr. Structured Query Language Java (SQL, Java, DB, ANSI, NCITS) …   United dictionary of abbreviations and acronyms

  • SQL — This article is about the database language. For the airport with IATA code SQL, see San Carlos Airport. SQL Paradigm(s) Multi paradigm Appeared in 1974 Designed by Donald D. Chamberlin Raymond F. Boyce Developer …   Wikipedia

  • SQL/OLB — The SQL/OLB, or Object Language Bindings , extension to the SQL standard is defined by ISO/IEC 9075 10:2003. SQL/OLB defines the syntax and symantics of SQLJ, which is SQL embedded in Java. The standard also describes mechanisms to ensure binary… …   Wikipedia

  • Pro*C — [pɹoʊˈsiː]/Pro*C++ [ ˈplʌs ˈplʌs] ist ein Precompiler des Unternehmens Oracle für die Programmiersprache C und C++. Mittels des Precompilers ist es möglich, SQL Ausdrücke und normale C oder C++ Quellcode Elemente miteinander zu vermischen. Dies… …   Deutsch Wikipedia

  • SQL-92 — SQL (das Kürzel für Structured Query Language; offizielle Aussprache [ɛskjuːˈɛl], häufig auch [ˈsiːkwəl] →SEQUEL), ist eine Datenbanksprache zur Definition, Abfrage und Manipulation von Daten in relationalen Datenbanken. SQL ist von ANSI und ISO… …   Deutsch Wikipedia

  • SQL-99 — SQL (das Kürzel für Structured Query Language; offizielle Aussprache [ɛskjuːˈɛl], häufig auch [ˈsiːkwəl] →SEQUEL), ist eine Datenbanksprache zur Definition, Abfrage und Manipulation von Daten in relationalen Datenbanken. SQL ist von ANSI und ISO… …   Deutsch Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”