Sample active record implementation.  Will likely use Active Android but this'll get the idea across.