org.eclipse.birt.data.engine.api.querydefn
Class JointDataSetDesign

java.lang.Object
  extended by org.eclipse.birt.data.engine.api.querydefn.BaseDataSetDesign
      extended by org.eclipse.birt.data.engine.api.querydefn.JointDataSetDesign
All Implemented Interfaces:
IBaseDataSetDesign, IJointDataSetDesign

public class JointDataSetDesign
extends BaseDataSetDesign
implements IJointDataSetDesign

This is an implementation of IJointDataSetDesign


Field Summary
 
Fields inherited from interface org.eclipse.birt.data.engine.api.IJointDataSetDesign
FULL_OUTER_JOIN, INNER_JOIN, LEFT_OUTER_JOIN, RIGHT_OUTER_JOIN
 
Fields inherited from interface org.eclipse.birt.data.engine.api.IBaseDataSetDesign
NULLS_ORDERING_EXCLUDE_NULLS, NULLS_ORDERING_NULLS_HIGHEST, NULLS_ORDERING_NULLS_LOWEST
 
Constructor Summary
JointDataSetDesign(java.lang.String dataSetName)
          Constructor
JointDataSetDesign(java.lang.String name, java.lang.String left, java.lang.String right, int joinType, java.util.List joinConditions)
          Constructor.
 
Method Summary
 void addJoinCondition(JoinCondition jc)
          add Join Condition
 java.util.List getJoinConditions()
          This method returns the Joint conditions.
 int getJoinType()
          This method returns the Joint Type.
 java.lang.String getLeftDataSetDesignName()
          This method returns the name of data set which servers as left operand of a joint.
 java.lang.String getLeftDataSetDesignQulifiedName()
          This method returns the name of data set which servers as left operand of a joint.
 java.lang.String getRightDataSetDesignName()
          This method returns the name of data set which servers as right operand of a joint.
 java.lang.String getRightDataSetDesignQulifiedName()
          This method returns the name of data set which servers as right operand of a joint.
 void setJoinType(int joinType)
           
 void setLeftDataSetDesignName(java.lang.String dataSetName)
           
 void setLeftDataSetDesignQulifiedName(java.lang.String leftDataSetQualifiedName)
           
 void setRightDataSetDesignName(java.lang.String dataSetName)
           
 void setRightDataSetDesignQulifiedName(java.lang.String rightDataSetQualifiedName)
           
 
Methods inherited from class org.eclipse.birt.data.engine.api.querydefn.BaseDataSetDesign
addComputedColumn, addFilter, addInputParamBinding, addParameter, addResultSetHint, addSortHint, getAfterCloseScript, getAfterOpenScript, getBeforeCloseScript, getBeforeOpenScript, getCacheRowCount, getCompareLocale, getComputedColumns, getDataSetACL, getDataSetColumnACL, getDataSourceName, getEventHandler, getFilters, getInputParamBindings, getName, getNullsOrdering, getOnFetchScript, getParameters, getResultSetHints, getRowACL, getRowFetchLimit, getSortHints, needCache, needDistinctValue, setAfterCloseScript, setAfterOpenScript, setBeforeCloseScript, setBeforeOpenScript, setCacheRowCount, setCompareLocale, setDataSetACL, setDataSetColumnACL, setDataSource, setDistinctValue, setEventHandler, setNeedCache, setNullsOrdering, setOnFetchScript, setRowACL, setRowFetchLimit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.birt.data.engine.api.IBaseDataSetDesign
getAfterCloseScript, getAfterOpenScript, getBeforeCloseScript, getBeforeOpenScript, getCacheRowCount, getCompareLocale, getComputedColumns, getDataSourceName, getEventHandler, getFilters, getInputParamBindings, getName, getNullsOrdering, getOnFetchScript, getParameters, getResultSetHints, getRowFetchLimit, getSortHints, needDistinctValue, setRowFetchLimit
 

Constructor Detail

JointDataSetDesign

public JointDataSetDesign(java.lang.String dataSetName)
Constructor


JointDataSetDesign

public JointDataSetDesign(java.lang.String name,
                          java.lang.String left,
                          java.lang.String right,
                          int joinType,
                          java.util.List joinConditions)
                   throws org.eclipse.birt.data.engine.core.DataException
Constructor.

Throws:
org.eclipse.birt.data.engine.core.DataException
Method Detail

getLeftDataSetDesignName

public java.lang.String getLeftDataSetDesignName()
Description copied from interface: IJointDataSetDesign
This method returns the name of data set which servers as left operand of a joint.

Specified by:
getLeftDataSetDesignName in interface IJointDataSetDesign
Returns:
name of data set that servers as first oprand

setLeftDataSetDesignName

public void setLeftDataSetDesignName(java.lang.String dataSetName)

getRightDataSetDesignName

public java.lang.String getRightDataSetDesignName()
Description copied from interface: IJointDataSetDesign
This method returns the name of data set which servers as right operand of a joint.

Specified by:
getRightDataSetDesignName in interface IJointDataSetDesign
Returns:
name of data set that servers as second oprand

setRightDataSetDesignName

public void setRightDataSetDesignName(java.lang.String dataSetName)

getJoinType

public int getJoinType()
Description copied from interface: IJointDataSetDesign
This method returns the Joint Type.

Specified by:
getJoinType in interface IJointDataSetDesign
Returns:
the integer stands for a joint type.

setJoinType

public void setJoinType(int joinType)
Parameters:
joinType -

getJoinConditions

public java.util.List getJoinConditions()
Description copied from interface: IJointDataSetDesign
This method returns the Joint conditions. Only rows which can make these IJointConditionalExpression instance evaluate to true will be jointed.

Specified by:
getJoinConditions in interface IJointDataSetDesign
Returns:
the list contains joint conditions. All the elements in the list is IJointConditionalExpression.

addJoinCondition

public void addJoinCondition(JoinCondition jc)
add Join Condition

Parameters:
jc -

getLeftDataSetDesignQulifiedName

public java.lang.String getLeftDataSetDesignQulifiedName()
Description copied from interface: IJointDataSetDesign
This method returns the name of data set which servers as left operand of a joint.

Specified by:
getLeftDataSetDesignQulifiedName in interface IJointDataSetDesign
Returns:
name of data set that servers as first oprand

setLeftDataSetDesignQulifiedName

public void setLeftDataSetDesignQulifiedName(java.lang.String leftDataSetQualifiedName)

getRightDataSetDesignQulifiedName

public java.lang.String getRightDataSetDesignQulifiedName()
Description copied from interface: IJointDataSetDesign
This method returns the name of data set which servers as right operand of a joint.

Specified by:
getRightDataSetDesignQulifiedName in interface IJointDataSetDesign
Returns:
name of data set that servers as second oprand

setRightDataSetDesignQulifiedName

public void setRightDataSetDesignQulifiedName(java.lang.String rightDataSetQualifiedName)


Copyright © 2008 Actuate Corp. All rights reserved.