Skip to content

AndroidStudio plugin for generating Android parcelable and ContentProvider DB model.

License

Notifications You must be signed in to change notification settings

ph4r05/AndroidStudioDbModelGenerator

Repository files navigation

AndroidStudioDbModelGenerator

Plugin for IntelliJ IDEA to generate Android compatible database model from class with fields. Plugin is compatible with AndroidStudio.

It Generates:

  • Android Parcelable implementation - based on https://github.com/mcharmas/android-parcelable-intellij-plugin
  • Database field name constants for SQL table. New fields are added in-order with previously added fields. Thus if field is already added and is defined in a same way, it is skipped.
  • CreateTable field with SQL create table statement.
  • Full projection field - all fields in DB model, for ContentProvider queries.
  • CreateFromCursor implementation. Initializes DB model object with Android Cursor.
  • GetContentValues implementation - returns ContentValues object initialized with current object data, used for insert/update requests.

About

AndroidStudio plugin for generating Android parcelable and ContentProvider DB model.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages