List < SPFTrigger > getAllTriggers ( String appIdentifier ) { String where = Contract . COLUMN_APP_IDENTIFIER + " = ?" ; String [ ] whereArgs = { appIdentifier } ; Cursor c = getReadableDatabase ( ) . query ( Contract . TABLE_NAME , null , where , whereArgs , null , null , null ) ; List < SPFTrigger > triggers = new ArrayList < SPFTrigger > ( ) ; while ( c . moveToNext ( ) ) { triggers . add ( triggerFromCursor ( c ) ) ; } c . close ( ) ; return triggers ; }
Return all the triggers of the specified application