protected String parseLock ( ) throws OCommandSQLParsingException { final String lockStrategy = parserNextWord ( true ) ; if ( ! lockStrategy . equalsIgnoreCase ( "DEFAULT" ) && ! lockStrategy . equalsIgnoreCase ( "NONE" ) && ! lockStrategy . equalsIgnoreCase ( "RECORD" ) ) throwParsingException ( "Invalid " + KEYWORD_LOCK + " value set to '" + lockStrategy + "' but it should be NONE (default) or RECORD. Example: " + KEYWORD_LOCK + " RECORD" ) ; return lockStrategy ; }
Parses the lock keyword if found .