@@ -0,0 +1,1831 @@
+/*%0A * Copyright (c) 2015 FUJI Goro (gfx).%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage com.github.gfx.android.orma;%0A%0Aimport com.github.gfx.android.orma.internal.OrmaConditionBase;%0A%0Aimport android.support.annotation.NonNull;%0A%0Apublic abstract class AssociationCondition%3CModel, A extends AssociationCondition%3CModel, ?%3E%3E%0A        extends OrmaConditionBase%3CModel, A%3E implements Cloneable %7B%0A%0A    public AssociationCondition(@NonNull OrmaConnection connection) %7B%0A        super(connection);%0A    %7D%0A%0A    public AssociationCondition(@NonNull Relation%3CModel, ?%3E relation) %7B%0A        super(relation);%0A    %7D%0A%0A    public AssociationCondition(@NonNull AssociationCondition%3CModel, A%3E condition) %7B%0A        super(condition);%0A    %7D%0A%0A    public abstract AssociationCondition%3CModel, A%3E clone();%0A%0A    @NonNull%0A    @Override%0A    protected String buildColumnName(@NonNull ColumnDef%3CModel, ?%3E column) %7B%0A        return column.getQualifiedName();%0A    %7D%0A%0A    public %3CC extends OrmaConditionBase%3C?, ?%3E%3E C appendTo(C other) %7B%0A        String whereClause = getWhereClause();%0A        Object%5B%5D bindArgs = getBindArgs();%0A%0A        if (whereClause != null && bindArgs != null) %7B%0A            other.where(whereClause, bindArgs);%0A        %7D else if (whereClause != null) %7B%0A            other.where(whereClause);%0A        %7D%0A%0A        return other;%0A    %7D%0A%0A%7D%0A

add AssociationCondition class to represent a query condition of associated models