Interface JoinSpec

All Known Implementing Classes:
org.litebridge.orm.api.select.impl.AbstractJoinSpec, DtoJoinSpec, SqlJoinSpec

public interface JoinSpec
Specification for a database "JOIN" clause.
  • Method Details

    • table

      Table table()
      Returns the table to join.
      Returns:
      the table to join.
    • using

      ConditionSpec using(String column)
      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

      ConditionGroupSpec pushConditionGroupSpec(LogicOperator logicOperator)
      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 resolution
      bindValues - the list of bind values for the query
      tableMetaDataCache - the cache for table metadata
      typeConverter - the type converter to use
      Returns:
      the SPI join object.