Skip to content
xcesco edited this page Oct 14, 2016 · 59 revisions

During development of an Android App, the developer has to persist some java class in different ways.

Kripton is a java library that was build with the aim to provide a simple and uniform way to manage persistence of Java classes in different flavours.

Supported persistence format are:

  • xml format (no annotation processor suppport for now)
  • json format (no annotation processor suppport for now)

Moreover, there are other persistence mechanism supported:

  • Shared preference (requires kripton annotation processor)
  • SQLite database (requires kripton annotation processor)
  • REST service, throws Retrofit library integration (no annotation processor support for now)

To avoid boilerplate-code, Kripton use the power of annotation processor. With this power, is possible create code to persist a java class, simply with an annotation. There are many other libraries that do this, but Kripton allows to persists java object in different ways with an unique set of annotation and mechanism.

Supported platforms

There are two platform: the android environment and generic Java environment. For each platform there is a version of library. Android platform already include a json library and xml parser library. Java JDK does not include a json library and have different xml parser libraries.

Table of Contents

Query definition

Features

Relations

Multithread supports

Modularization

Annotations for data convertion

Annotations for SQLite ORM

Annotations for shared preferences

Clone this wiki locally