com.speedment.runtime.join.builder.JoinBuilder8 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of runtime-deploy Show documentation
Show all versions of runtime-deploy Show documentation
A Speedment bundle that shades all dependencies into one jar. This is
useful when deploying an application on a server.
/**
*
* Copyright (c) 2006-2019, Speedment, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); You may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.speedment.runtime.join.builder;
import com.speedment.common.function.Function8;
import com.speedment.common.tuple.Tuple;
import com.speedment.common.tuple.TuplesOfNullables;
import com.speedment.common.tuple.nullable.Tuple8OfNullables;
import com.speedment.runtime.config.identifier.TableIdentifier;
import com.speedment.runtime.field.trait.HasComparableOperators;
import com.speedment.runtime.join.Join;
import com.speedment.runtime.join.trait.HasDefaultBuild;
import com.speedment.runtime.join.trait.HasJoins;
import com.speedment.runtime.join.trait.HasOnPredicates;
import com.speedment.runtime.join.trait.HasWhere;
/**
* Join Builder stage used when only 8 tables has been specified so far.
*
* @param the first entity type
* @param the second entity type
* @param the third entity type
* @param the fourth entity type
* @param the fifth entity type
* @param the sixth entity type
* @param the seventh entity type
* @param the eight entity type
*
* @author Per Minborg
* @author Emil Forslund
* @since 3.1.1
*/
public interface JoinBuilder8
extends HasJoins, JoinBuilder9>,
HasWhere>,
HasDefaultBuild> {
@Override
AfterJoin innerJoinOn(HasComparableOperators joinedField);
@Override
AfterJoin leftJoinOn(HasComparableOperators joinedField);
@Override
AfterJoin rightJoinOn(HasComparableOperators joinedField);
@Override
JoinBuilder9 crossJoin(TableIdentifier joinedTable);
@Override
default Join> build() {
return build(TuplesOfNullables::ofNullables);
}
/**
* Creates and returns a new Join object where elements in the Join
* object's stream method is created using the provided {@code
* constructor}.
*
* @param the type of element in the Join object's stream
* method.
* @param constructor to use to create stream elements.
* @return a new Join object where elements in the Join object's stream
* method is of a default {@link Tuple} type
*
* @throws NullPointerException if the provided {@code constructor } is
* {@code null}
* @throws IllegalStateException if fields that are added via the {@code
* on() } method refers to tables that are
* not a part of the join.
*/
Join build(Function8 constructor);
interface AfterJoin
extends HasOnPredicates> {}
}