The object data standard: ODMG 3.0
The object data standard: ODMG 3.0
The Functional Approach to Data Management: Modeling, Analyzing, and Integrating Heterogeneous Data
The Functional Approach to Data Management: Modeling, Analyzing, and Integrating Heterogeneous Data
Safe query objects: statically typed objects as remotely executable queries
Proceedings of the 27th international conference on Software engineering
The Definitive ANTLR Reference: Building Domain-Specific Languages
The Definitive ANTLR Reference: Building Domain-Specific Languages
Compiling mappings to bridge applications and databases
Proceedings of the 2007 ACM SIGMOD international conference on Management of data
Anatomy of the ADO.NET entity framework
Proceedings of the 2007 ACM SIGMOD international conference on Management of data
Haskell '07 Proceedings of the ACM SIGPLAN workshop on Haskell workshop
The jastadd extensible java compiler
Proceedings of the 22nd annual ACM SIGPLAN conference on Object-oriented programming systems and applications
Verification of Object Relational Maps
SEFM '07 Proceedings of the Fifth IEEE International Conference on Software Engineering and Formal Methods
Embedded typesafe domain specific languages for Java
Proceedings of the 6th international symposium on Principles and practice of programming in Java
Caching and incrementalisation in the java query language
Proceedings of the 23rd ACM SIGPLAN conference on Object-oriented programming systems languages and applications
Interprocedural query extraction for transparent persistence
Proceedings of the 23rd ACM SIGPLAN conference on Object-oriented programming systems languages and applications
Design Concepts in Programming Languages
Design Concepts in Programming Languages
Towards Declarative Queries on Adaptive Data Structures
ICDE '08 Proceedings of the 2008 IEEE 24th International Conference on Data Engineering
Formalizing the well-formedness rules of EJB3QL in UML + OCL
MoDELS'06 Proceedings of the 2006 international conference on Models in software engineering
Links: web programming without tiers
FMCO'06 Proceedings of the 5th international conference on Formal methods for components and objects
Attribute grammar-based language extensions for java
ECOOP'07 Proceedings of the 21st European conference on Object-Oriented Programming
Hi-index | 0.00 |
The integration of database and programming languages is made difficult by the different data models and type systems prevalent in each field. Functional-object query languages contribute to bridge this gap by letting software developers write declarative queries without imposing any specific execution strategy. Although some query optimizers support this paradigm, Java provides no means to embed queries in a seamless and typesafe manner. Interestingly, the benefits of such grammar extension (compile-time type inference and checking, user-friendly syntax) can alternatively be achieved with a compiler plugin as discussed in this paper for the LINQ query language and two Java compilers (from Sun and Eclipse). A prototype confirms the benefits of the approach by automating at compile-time (a) the parsing of LINQ queries nested in Java, (b) their analysis for well-formedness, and (c) their rewriting into statements to build Abstract Syntax Trees (ASTs). The technique is also applicable to other languages (JPQL, XQuery) which are handled nowadays by a Java compiler as uninterpreted strings, being thus prone to runtime exceptions due to breaches of static semantics.