Class DynamicJoin

java.lang.Object
net.sf.basedb.core.DynamicJoin
All Implemented Interfaces:
Join, QueryElement

class DynamicJoin
extends Object
implements Join
Represents a join between two virtual tables in a dynamic query: leftTable JOIN rightTable ON columns.

This class is used by, for example, DynamicSpotQuery.joinReporters(JoinType) to create the Join query element that is needed.

Version:
2.0
Author:
Nicklas
Last modified
$Date: 2012-09-14 09:28:35 +0200 (fr, 14 sep 2012) $
  • Field Details

  • Constructor Details

    • DynamicJoin

      DynamicJoin​(VirtualDb vdb, JoinType joinType, VirtualTable right, VirtualColumn... columns)
      Create a new join using the root entity table as the left table. SELECT ... FROM rootTable JOIN right ON columns.
      Parameters:
      vdb - The virtual database where the joined table is located
      joinType - The type of join
      right - The table to join to
      columns - The columns to join on, all columns must exists in the root table and the joined table
    • DynamicJoin

      DynamicJoin​(VirtualDb vdb, JoinType joinType, VirtualTable left, VirtualTable right, VirtualColumn... columns)
      Create a new join between two tables. The left table must already have been joined to the root table or to another joined table. SELECT ... FROM rootTable ... JOIN left ... JOIN right ON columns
      Parameters:
      vdb - The virtual database where the joined table is located
      joinType - The type of join
      left - The table to join from
      right - The table to join to
      columns - The columns to join on, all columns must exists in the left table and the right table
    • DynamicJoin

      DynamicJoin​(VirtualDb vdb, JoinType joinType, VirtualTable left, VirtualColumn[] leftColumns, VirtualTable right, VirtualColumn[] rightColumns)
      Create a new join between two tables with possible different colum names in the left and right tables.
      Parameters:
      vdb - The virtual database where the joined table is located
      joinType - The type of join
      left - The table to join from (or null to join from the root table)
      leftColumns - The columns in the left table to use in the join
      right - The table to join to
      rightColumns - The columns in the right table (must be of same length as leftColumns)
      Since:
      3.1
  • Method Details