A type-safe embedding of SQL into Java using the extensible compiler framework J%

Journal Article (2015)
Author(s)

Vassilios Karakoidas (Athens University of Economics and Business)

Dimitrios Mitropoulos (Athens University of Economics and Business)

Panos Louridas (Athens University of Economics and Business)

Diomidis Spinellis (Athens University of Economics and Business)

Affiliation
External organisation
DOI related publication
https://doi.org/10.1016/j.cl.2015.01.001
More Info
expand_more
Publication Year
2015
Language
English
Affiliation
External organisation
Volume number
41
Pages (from-to)
1-20

Abstract

J% is an extension of the Java programming language that efficiently supports the integration of domain-specific languages. In particular, J% allows the embedding of domain-specific language code into Java programs in a syntax-checked and type-safe manner. This paper presents Js support for the sql language. J% checks the syntax and semantics of sql statements at compile-time. It supports query validation against a database schema or through execution to a live database server. The J% compiler generates code that uses standard jdbc api calls, enhancing runtime efficiency and security against sql injection attacks.

No files available

Metadata only record. There are no files for this record.