1 /* 2 * Copyright (C) 2017 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package androidx.room; 18 19 import java.lang.annotation.ElementType; 20 import java.lang.annotation.Retention; 21 import java.lang.annotation.RetentionPolicy; 22 import java.lang.annotation.Target; 23 24 /** 25 * Skips database verification for the annotated element. 26 * <p> 27 * If it is a class annotated with {@link Database}, none of the queries for the database will 28 * be verified at compile time. 29 * <p> 30 * If it is a class annotated with {@link Dao}, none of the queries in the Dao class will 31 * be verified at compile time. 32 * <p> 33 * If it is a method in a Dao class, just the method's sql verification will be skipped. 34 * <p> 35 * You should use this as the last resort if Room cannot properly understand your query and you are 36 * 100% sure it works. Removing validation may limit the functionality of Room since it won't be 37 * able to understand the query response. 38 */ 39 @Target({ElementType.METHOD, ElementType.TYPE}) 40 @Retention(RetentionPolicy.CLASS) 41 public @interface SkipQueryVerification { 42 } 43