A type-safe embedding of SQL into Java using the extensible compiler framework J% |
| |
Affiliation: | 1. KAIST, South Korea;2. Seoul National University, South Korea;1. Business Informatics Group, TU Wien, Karlsplatz 13, 1040 Wien, Austria;2. Database and Artificial Intelligence Group, TU Wien, Karlsplatz 13, 1040 Wien, Austria;3. Inst. f. Formal Models and Verification, JKU Linz, Altenbergerstr. 69, 4040 Linz, Austria;4. Knowledge-Based Systems Group, TU Wien, Karlsplatz 13, 1040 Wien, Austria;5. School of Economic Disciplines, Univ. Siegen, A.-Reichweinstr. 2, 57076 Siegen, Germany;1. Faculty of Computer Science, Alexandru Ioan Cuza University, Iaşi, Romania;2. Inria Lille Nord Europe, France;1. Google Inc, Mountain View, USA;2. Department of Computer Science, Lund University, Sweden |
| |
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 J%׳s 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. |
| |
Keywords: | Domain-specific languages Programming languages |
本文献已被 ScienceDirect 等数据库收录! |
|