Code example for AtomicLong

Methods: set

0
	 * This shouldn't be called onOpen() or onCreate() because it will cause 
	 * a recursive database get. 
	 */ 
	private void ensureCount() { 
		if (!initialCount) {
			count.set(countRows());
			initialCount = true;
		} 
	} 
	 
	@Override 
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		// do nothing here for now 
	} 
 
	/** 
	 * Adds a payload to the database 
	 * @param payload  
	 */ 
	public boolean addPayload(BasePayload payload) {