Managing tables and relations, Android SQLite using Storm

Posted Leave a commentPosted in Java, Storm

With Storm, tables can be mapped to entities with @Table annotation. It works similar to most of the ORM solutions with few exceptions. Example Mapping: @Table(name = “DEMO_ENTITY”, version = 2) class Entity { @PrimaryKey @Column(name=”ID”, type = FieldType.INTEGER) private int id; } Every table must have a @PrimaryKey annotation, or the meta data reading […]

Getting started with SQLite Android

Posted Leave a commentPosted in Java, Storm

Adding to Project To add storm to your Android project, please use below for Gradle in your project specific Gradle file. This would add Cubestack bitray Mave repository to your project maven { url “” } Once Maven repository is added, you may import Storm to your project with current version (1.0g) or any other […]

Understanding Byte Code in Java

Posted 1 CommentPosted in All, Java

[Q] So, what is Java Bytecode ? [A] Bytecode is the heart of Java portability. Each Java program you write is first converted to a .class file (bytecode), which is then interpreted by Java interpreter. Few days before I came to an interesting post, which provided a sample code in Java byte code format. Interestingly […]

Understanding Blocks in Java

Posted Leave a commentPosted in All, Java

Java provides several ways of instantiating objects / classes. One of the most interesting features being blocks. Java gives you an option to create two types of blocks – Initializer blocks Static blocks Initializer blocks popularly known as Instance initializers are used to do something when an Object is created. Simple program below demonstrates a […]