org.objectweb.speedo.metadata
Class SpeedoJoin

java.lang.Object
  extended by org.objectweb.speedo.metadata.SpeedoElement
      extended by org.objectweb.speedo.metadata.SpeedoJoin
All Implemented Interfaces:
java.io.Serializable

public class SpeedoJoin
extends SpeedoElement

Defines a join between a main table and an external table.

Author:
S.Chassande-Barrioz
See Also:
SpeedoTable, SpeedoColumn, Serialized Form

Field Summary
static byte ACTION_CASCADE
           
static byte ACTION_DEFAULT
           
static byte ACTION_NONE
           
static byte ACTION_NULL
           
static byte ACTION_RESTRICT
           
 java.util.List columns
          The list of SpeedoJoinColumn composing the join.
 byte deleteAction
          Defines the action to do on the external table when a delete action occurs in the main table.
 SpeedoTable extTable
          external table
 SpeedoTable mainTable
          main table
 
Fields inherited from class org.objectweb.speedo.metadata.SpeedoElement
jdoExtension, personality
 
Constructor Summary
SpeedoJoin()
           
 
Method Summary
 boolean getIndexed()
           
 boolean getOuter()
           
 boolean getUnique()
           
 void setIndexed(boolean v)
           
 void setOuter(boolean v)
           
 void setUnique(boolean v)
           
 java.lang.String toString()
           
 
Methods inherited from class org.objectweb.speedo.metadata.SpeedoElement
addExtension, addInArray, getExtension, getExtensionByKey, getExtensionValueByKey, indexOfInArray, removeInArray, setValueInArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mainTable

public SpeedoTable mainTable
main table


extTable

public SpeedoTable extTable
external table


columns

public java.util.List columns
The list of SpeedoJoinColumn composing the join. This columns are in the external table.


ACTION_NONE

public static final byte ACTION_NONE
See Also:
Constant Field Values

ACTION_NULL

public static final byte ACTION_NULL
See Also:
Constant Field Values

ACTION_CASCADE

public static final byte ACTION_CASCADE
See Also:
Constant Field Values

ACTION_RESTRICT

public static final byte ACTION_RESTRICT
See Also:
Constant Field Values

ACTION_DEFAULT

public static final byte ACTION_DEFAULT
See Also:
Constant Field Values

deleteAction

public byte deleteAction
Defines the action to do on the external table when a delete action occurs in the main table.

Constructor Detail

SpeedoJoin

public SpeedoJoin()
Method Detail

setOuter

public void setOuter(boolean v)

getOuter

public boolean getOuter()

setIndexed

public void setIndexed(boolean v)

getIndexed

public boolean getIndexed()
Returns:
boolean value indicating if the join column are unique.

setUnique

public void setUnique(boolean v)

getUnique

public boolean getUnique()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object