TY - JOUR
T1 - A type-safe embedding of SQL into Java using the extensible compiler framework J%
AU - Karakoidas, Vassilios
AU - Mitropoulos, Dimitris
AU - Louridas, Panagiotis
AU - Spinellis, Diomidis
PY - 2015/4/1
Y1 - 2015/4/1
N2 - 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.
AB - 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.
KW - Domain-specific languages
KW - Programming languages
UR - http://www.scopus.com/inward/record.url?scp=84928633060&partnerID=8YFLogxK
U2 - 10.1016/j.cl.2015.01.001
DO - 10.1016/j.cl.2015.01.001
M3 - Article
AN - SCOPUS:84928633060
SN - 1477-8424
VL - 41
SP - 1
EP - 20
JO - Computer Languages, Systems and Structures
JF - Computer Languages, Systems and Structures
ER -