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

Vassilios Karakoidas*, Dimitris Mitropoulos, Panagiotis Louridas, Diomidis Spinellis

*Corresponding author for this work

Research output: Contribution to journalArticleScientificpeer-review

8 Citations (Scopus)

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.

Original languageEnglish
Pages (from-to)1-20
Number of pages20
JournalComputer Languages, Systems and Structures
Volume41
DOIs
Publication statusPublished - 1 Apr 2015
Externally publishedYes

Keywords

  • Domain-specific languages
  • Programming languages

Fingerprint

Dive into the research topics of 'A type-safe embedding of SQL into Java using the extensible compiler framework J%'. Together they form a unique fingerprint.

Cite this