站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 server API Documentation 英文版文档

RelationData (JBoss Server API) - JBoss 4.0.1 sp1 server API Documentation 英文版文档


org.jboss.ejb.plugins.cmp.jdbc
Class RelationData

java.lang.Object
  extended byorg.jboss.ejb.plugins.cmp.jdbc.RelationData

public final class RelationData
extends Object

This class holds data about one relationship. It maintains a lists of which relations have been added and removed. When the transaction is committed these list are retrieved and used to update the relation table.

Version:
$Revision: 1.8 $
Author:
Dain Sundstrom

Field Summary
 Set addedRelations
           
 Set notRelatedPairs
           
 Set removedRelations
           
 
Constructor Summary
RelationData(JDBCCMRFieldBridge leftCMRField, JDBCCMRFieldBridge rightCMRField)
           
 
Method Summary
 void addRelation(JDBCCMRFieldBridge leftCMRField, Object leftId, JDBCCMRFieldBridge rightCMRField, Object rightId)
           
 JDBCCMRFieldBridge getLeftCMRField()
           
 JDBCCMRFieldBridge getRightCMRField()
           
 boolean isDirty()
           
 void removeRelation(JDBCCMRFieldBridge leftCMRField, Object leftId, JDBCCMRFieldBridge rightCMRField, Object rightId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

addedRelations

public final Set addedRelations

removedRelations

public final Set removedRelations

notRelatedPairs

public final Set notRelatedPairs
Constructor Detail

RelationData

public RelationData(JDBCCMRFieldBridge leftCMRField,
                    JDBCCMRFieldBridge rightCMRField)
Method Detail

getLeftCMRField

public JDBCCMRFieldBridge getLeftCMRField()

getRightCMRField

public JDBCCMRFieldBridge getRightCMRField()

addRelation

public void addRelation(JDBCCMRFieldBridge leftCMRField,
                        Object leftId,
                        JDBCCMRFieldBridge rightCMRField,
                        Object rightId)

removeRelation

public void removeRelation(JDBCCMRFieldBridge leftCMRField,
                           Object leftId,
                           JDBCCMRFieldBridge rightCMRField,
                           Object rightId)

isDirty

public boolean isDirty()


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.