Skip to content

Features

xcesco edited this page Jan 18, 2017 · 30 revisions

Obviously Kripton library has different features and many limitations. In next releases, i will try to reduce limits, but some of them will be never removed.

##Features## Kritpon is composed by two runtime-libraries and a java annotation processor. Annotation processor generates code which is based on runtime libraries: kripton-android-library and kripton-library.

Supported field types

  • All primitive types (bool, int, long, float, etc..)
  • All simple types (Boolean, String, Byte, Float, Integer, etc..)
  • List collections: if you use List interface, an ArrayList will be used.
  • Set collections: if you use Set inteface, an HashSet will be used.
  • Map collections: if you use Map interface, an HashLinkedMap will be used.
  • Array collections
  • POJO bean type.
  • Virtually every kind of other type thanks to type adapter you can define and use.

Supported persistence methods

Supported persistence methods are:

  • xml (since 1.0.0)
  • json (since 1.0.0)
  • yaml (since 1.5.0)
  • cbor (since 1.5.0)
  • (java) properties (since 1.5.0)
  • SQLite (since 1.2.0). Implemented with annotation processor in the compile time
  • Shared preferences (since 1.2.0). Implemented with annotation processor in the compile time.

Platforms

Supported platforms:

  • Android 4.x (since 1.0.0)
  • Generic java platform (since 1.0.0)

###Limits### Kripton is a small and simple library. Some its limitations:

  • No cyclic support: it's not possible bind object with cyclic references.
  • No complex generic type was tested: for simple and quite complex generic type there should be no problems.

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