com.ibm.websphere.sdo.mediator.jdbc.metadata

Interface Relationship


  1. public interface Relationship
Defines a Relationship between two database tables.

Method Summary

Modifier and Type Method and Description
  1. Key
getChildKey()
Get the Key from the child side of the Relationship
  1. java.lang.String
getName()
Get the name of the Relationship
  1. java.lang.String
getOppositeName()
Get the name of the Relationship from the child side
  1. Key
getParentKey()
Get the Key from the parent side of the Relationship
  1. boolean
isExclusive()
Returns the value of the Is Exclusive attribute
  1. void
setChildKey(Key value)
Sets the value of the ' Child Key' reference
  1. void
setExclusive(boolean value)
Sets the value of the ' Exclusive' attribute
  1. void
setName(java.lang.String value)
Sets the value of the ' Name' attribute
  1. void
setOppositeName(java.lang.String value)
Sets the value of the ' Opposite Name' attribute
  1. void
setParentKey(Key value)
Sets the value of the ' Parent Key' reference

Method Detail

getChildKey

  1. Key getChildKey()
Get the Key from the child side of the Relationship
Returns:
the key

setChildKey

  1. void setChildKey(Key value)
Sets the value of the ' Child Key' reference.
Parameters:
value - the new value of the 'Child Key' reference.
See Also:

getParentKey

  1. Key getParentKey()
Get the Key from the parent side of the Relationship
Returns:
the key

setParentKey

  1. void setParentKey(Key value)
Sets the value of the ' Parent Key' reference.
Parameters:
value - the new value of the 'Parent Key' reference.
See Also:

getName

  1. java.lang.String getName()
Get the name of the Relationship. If the value of the Name attribute is not specified, the name defaults to the parent table name and child name seperated by "_". For example, "CUSTOMERS_ORDERS".
Returns:
the name

setName

  1. void setName(java.lang.String value)
Sets the value of the ' Name' attribute.
Parameters:
value - the new value of the 'Name' attribute.
See Also:

getOppositeName

  1. java.lang.String getOppositeName( )
Get the name of the Relationship from the child side. If the value of the Opposite Name attribute is not specified, it defaults to the child table name and parent table name seperated by "_". For example, "ORDERS_CUSTOMERS".
Returns:
the name

setOppositeName

  1. void setOppositeName(java.lang.String value)
Sets the value of the ' Opposite Name' attribute.
Parameters:
value - the new value of the 'Opposite Name' attribute.
See Also:

isExclusive

  1. boolean isExclusive()
Returns the value of the Is Exclusive attribute. If the value is true, queries generated from this Relationship will use an inner join. If the value is false, a left outer join will be used. The default value is true.
Returns:
the value of the Is Exclusive attribute

setExclusive

  1. void setExclusive(boolean value)
Sets the value of the ' Exclusive' attribute.
Parameters:
value - the new value of the 'Exclusive' attribute.
See Also: