org.objectweb.jorm.mapper.rdb.metainfo
Class RdbJoin
java.lang.Object
org.objectweb.jorm.metainfo.lib.BasicMetaObject
org.objectweb.jorm.mapper.rdb.metainfo.RdbJoin
- All Implemented Interfaces:
- java.lang.Comparable, Loggable, MetaObject, java.io.Serializable
- public class RdbJoin
- extends BasicMetaObject
- implements java.lang.Comparable
Implementation of the RdbJoin interface. The join relationship requires two
columns represented by primaryTableColumnName and externalTableColumnName.
- See Also:
RdbClassMultiMapping
,
Serialized Form
Constructor Summary |
RdbJoin(MetaObject parent,
java.lang.String name)
Builds a new BasicRdbJoin object. |
Method Summary |
void |
addJoinColumnNames(java.lang.String ptJoinColumnName,
java.lang.String etJoinColumnName)
Adds two join column names. |
int |
compareTo(java.lang.Object o)
|
java.util.List |
getETJoinColumnNames()
Returns a collection of column names involved in the join. |
java.lang.String |
getName()
|
java.util.List |
getPTJoinColumnNames()
Returns a collection of column names involved in the join. |
void |
setName(java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RdbJoin
public RdbJoin(MetaObject parent,
java.lang.String name)
- Builds a new BasicRdbJoin object.
The parent object is a RdbClassMultiMapping object. The name of the two
tables involved in the join relationship is accessible from the parent
object.
- Parameters:
parent
- the parent of the current object.
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo
in interface java.lang.Comparable
getPTJoinColumnNames
public java.util.List getPTJoinColumnNames()
- Returns a collection of column names involved in the join.
- Returns:
- a collection of column names involved in the join.
getETJoinColumnNames
public java.util.List getETJoinColumnNames()
- Returns a collection of column names involved in the join.
- Returns:
- a collection of column names involved in the join.
addJoinColumnNames
public void addJoinColumnNames(java.lang.String ptJoinColumnName,
java.lang.String etJoinColumnName)
- Adds two join column names.
getName
public java.lang.String getName()
setName
public void setName(java.lang.String name)