@ Override public void update ( Object entity ) { if ( entity == null ) { throw new IllegalArgumentException ( "'entity' must not be [" + entity + "]" ) ; } if ( operation != Log . Operation . GET ) { throw new IllegalStateException ( "Log [" + operation + "] -> [" + Log . Operation . UPDATE + "] is not allowed: previous operation must be [" + Log . Operation . GET + "]" ) ; } operation = Log . Operation . UPDATE ; }
Applies the specified entity s update to the Google App Engine Datastore .