sPFFramework/src/main/java/it/polimi/spf/framework/security/PersonPermissionTable.java
public int entryExistsFor(String userUID) {
		String selection = RelationshipEntry.COLUMN_USER_UUID + " = ?";
		String[] selectionArgs = { userUID };
		String[] columns = { RelationshipEntry.COLUMN_REQUEST_STATUS };
		SQLiteDatabase db = getReadableDatabase();
		Cursor cursor = db.query(RelationshipEntry.TABLE_PERSON_AUTH, columns, selection, selectionArgs, /* groupBy */null, /* having */null, /* orderBy */
				null);
		if (cursor.moveToNext()) {
			return cursor.getInt(cursor.getColumnIndex(RelationshipEntry.COLUMN_REQUEST_STATUS));
		}
		cursor.close();
		return REQUEST_NOT_EXIST;
	}
public int entryExistsFor(String userUID) {
		String selection = RelationshipEntry.COLUMN_USER_UUID + " = ?";
		String[] selectionArgs = { userUID };
		String[] columns = { RelationshipEntry.COLUMN_REQUEST_STATUS };
		SQLiteDatabase db = getReadableDatabase();
		Cursor cursor = db.query(RelationshipEntry.TABLE_PERSON_AUTH, columns, selection, selectionArgs, /* groupBy */null, /* having */null, /* orderBy */
				null);
		if (cursor.moveToNext()) {
			return cursor.getInt(cursor.getColumnIndex(RelationshipEntry.COLUMN_REQUEST_STATUS));
		}
		cursor.close();
		return REQUEST_NOT_EXIST;
	}
public int entryExistsFor ( String userUID ) { String selection = RelationshipEntry . COLUMN_USER_UUID + " = ?" ; String [ ] selectionArgs = { userUID } ; String [ ] columns = { RelationshipEntry . COLUMN_REQUEST_STATUS } ; SQLiteDatabase db = getReadableDatabase ( ) ; Cursor cursor = db . query ( RelationshipEntry . TABLE_PERSON_AUTH , columns , selection , selectionArgs , /* groupBy */ null , /* having */ null , /* orderBy */ null ) ; if ( cursor . moveToNext ( ) ) { return cursor . getInt ( cursor . getColumnIndex ( RelationshipEntry . COLUMN_REQUEST_STATUS ) ) ; } cursor . close ( ) ; return REQUEST_NOT_EXIST ; }
check if an entry for the specified user id exists. Returns the entry
state.

@param userUID
@return
check if an entry for the specified user id exists . Returns the entry state .