Tag Archives: pattern

J2ME Pattern: ActiveRecord

Though J2ME forces you to be close with adding classes, type-safe & convenient persistence might be something you don’t want to miss. And as RecordStores are the primary application persistence stores, there’s some boilerplate code you can refactor out into one single common base class. Also – especially from a pattern standpoint – it’s a […]

J2ME Pattern: RMS Migrations

Inspired by RoR Migrations I’ll summarize how to gain similar benefits in the J2ME world with respect to it’s special needs: attach a version marker to each RecordStore name, as there’s no callback at install time and at launch time things must be quick as possible, use a fall-back mechanism on opening RecordStores, therefore use […]