- All Known Implementing Classes:
org.litebridge.orm.api.select.impl.AbstractJoinSpec,DtoJoinSpec,SqlJoinSpec
public interface JoinSpec
Specification for a database "JOIN" clause.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the current condition group specification.voidPops the current condition group specification.pushConditionGroupSpec(LogicOperator logicOperator) Pushes a new condition group specification.table()Returns the table to join.toJoin(Collection<Table> availableTables, List<BindValue> bindValues, TableMetaDataCache tableMetaDataCache, TypeConverter typeConverter) Returns the SPI join object.Join using a specific column.
-
Method Details
-
table
Table table()Returns the table to join.- Returns:
- the table to join.
-
using
Join using a specific column.- Parameters:
column- the column name- Returns:
- the condition specification
-
currentConditionGroupSpec
ConditionGroupSpec currentConditionGroupSpec()Returns the current condition group specification.- Returns:
- the current condition group specification
-
pushConditionGroupSpec
Pushes a new condition group specification.- Parameters:
logicOperator- the logic operator for the group- Returns:
- the new condition group specification
-
popConditionGroupSpec
void popConditionGroupSpec()Pops the current condition group specification. -
toJoin
Join toJoin(Collection<Table> availableTables, List<BindValue> bindValues, TableMetaDataCache tableMetaDataCache, TypeConverter typeConverter) Returns the SPI join object.- Parameters:
availableTables- the collection of tables currently available in the query context for alias resolutionbindValues- the list of bind values for the querytableMetaDataCache- the cache for table metadatatypeConverter- the type converter to use- Returns:
- the SPI join object.
-