The paper DynamicSchema: A Lightweight Persistency Framework for Context-Oriented Data Management has been accepted at the 4th COP workshop, co-located with ECOOP'12.
While context-oriented programming technology so far has focused mostly on behavioral adaptation, context-oriented data management has received much less attention. The paper makes a case for the problem of context-oriented data management, using a concrete example of a mobile application. It illustrates some of the issues involved and proposes a lightweight persistency framework, called DynamicSchema, that resolves some of these issues. The solution consists in a flexible reification of the database schema, as a convenient dynamic data structure that can be adapted at execution time, according to sensed context changes. Implementing our mobile application using this framework enabled us to reduce the complexity of the domain modeling layer, to facilitate the production of code with low memory footprint, and to simplify the implementation of certain scenarios related to context-dependent security concerns.