public static boolean parseUpdateKeyword(final char[] query, int offset) {
    if (query.length < (offset + 6)) {
      return false;
    }

    return (query[offset] | 32) == 'u'
        && (query[offset + 1] | 32) == 'p'
        && (query[offset + 2] | 32) == 'd'
        && (query[offset + 3] | 32) == 'a'
        && (query[offset + 4] | 32) == 't'
        && (query[offset + 5] | 32) == 'e';
  }
public static boolean parseUpdateKeyword ( final char [ ] query , int offset ) { if ( query . length < ( offset + 6 ) ) { return false ; } return ( query [ offset ] | 32 ) == 'u' && ( query [ offset + 1 ] | 32 ) == 'p' && ( query [ offset + 2 ] | 32 ) == 'd' && ( query [ offset + 3 ] | 32 ) == 'a' && ( query [ offset + 4 ] | 32 ) == 't' && ( query [ offset + 5 ] | 32 ) == 'e' ; }
Parse string to check presence of UPDATE keyword regardless of case.

@param query char[] of the query statement
@param offset position of query to start checking
@return boolean indicates presence of word