org.omg.cwm.resource.relational
Interface ForeignKey

All Superinterfaces:
Element, org.omg.cwm.foundation.keysindexes.KeyRelationship, ModelElement, javax.jmi.reflect.RefBaseObject, javax.jmi.reflect.RefFeatured, javax.jmi.reflect.RefObject

public interface ForeignKey
extends org.omg.cwm.foundation.keysindexes.KeyRelationship

A Foreign Key associates columns from one table with columns of another table.


Method Summary
 org.omg.cwm.resource.relational.enumerations.DeferrabilityType getDeferrability()
          Indicates if the validity of the ForeignKey is to be tested at each statement or at the end of a transaction.
 org.omg.cwm.resource.relational.enumerations.ReferentialRuleType getDeleteRule()
          An enumerated type.
 org.omg.cwm.resource.relational.enumerations.ReferentialRuleType getUpdateRule()
          Same as deleteRule for updates of the primary key data record
 void setDeferrability(org.omg.cwm.resource.relational.enumerations.DeferrabilityType newValue)
          Indicates if the validity of the ForeignKey is to be tested at each statement or at the end of a transaction.
 void setDeleteRule(org.omg.cwm.resource.relational.enumerations.ReferentialRuleType newValue)
          An enumerated type.
 void setUpdateRule(org.omg.cwm.resource.relational.enumerations.ReferentialRuleType newValue)
          Same as deleteRule for updates of the primary key data record
 
Methods inherited from interface org.omg.cwm.foundation.keysindexes.KeyRelationship
getFeature, getUniqueKey, setUniqueKey
 
Methods inherited from interface org.omg.cwm.objectmodel.core.ModelElement
getClientDependency, getConstraint, getImporter, getName, getNamespace, getVisibility, setName, setNamespace, setVisibility
 
Methods inherited from interface javax.jmi.reflect.RefObject
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite
 
Methods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refGetValue, refInvokeOperation, refInvokeOperation, refSetValue, refSetValue
 
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
 

Method Detail

getDeleteRule

public org.omg.cwm.resource.relational.enumerations.ReferentialRuleType getDeleteRule()
                                                                               throws javax.jmi.reflect.JmiException
An enumerated type. Indicates the disposition of the data records containing the foreign key value when the record of the matching primary key is deleted.

setDeleteRule

public void setDeleteRule(org.omg.cwm.resource.relational.enumerations.ReferentialRuleType newValue)
                   throws javax.jmi.reflect.JmiException
An enumerated type. Indicates the disposition of the data records containing the foreign key value when the record of the matching primary key is deleted.

getUpdateRule

public org.omg.cwm.resource.relational.enumerations.ReferentialRuleType getUpdateRule()
                                                                               throws javax.jmi.reflect.JmiException
Same as deleteRule for updates of the primary key data record

setUpdateRule

public void setUpdateRule(org.omg.cwm.resource.relational.enumerations.ReferentialRuleType newValue)
                   throws javax.jmi.reflect.JmiException
Same as deleteRule for updates of the primary key data record

getDeferrability

public org.omg.cwm.resource.relational.enumerations.DeferrabilityType getDeferrability()
                                                                                throws javax.jmi.reflect.JmiException
Indicates if the validity of the ForeignKey is to be tested at each statement or at the end of a transaction.

setDeferrability

public void setDeferrability(org.omg.cwm.resource.relational.enumerations.DeferrabilityType newValue)
                      throws javax.jmi.reflect.JmiException
Indicates if the validity of the ForeignKey is to be tested at each statement or at the end of a transaction.


Copyright 1997-2005 by Object Management Group, Inc. (http://www.omg.org/), 250 First Ave. Needham, MA 02494 U.S.A. All rights reserved. Unless otherwise indicated, users may make a single copy of the contents, in whole or in part, of this web site strictly for personal, non-commercial use. In the event that all or part of this site is downloaded for personal use, users shall maintain all proprietary notices including copyright notices that appear on or in connection with that content. Other than creating a single copy of contents for personal use as described herein, users may not copy, reproduce, distribute, republish, download, display, post or transmit in any form or by any means, including but not limited to electronic, mechanical, photocopying, recording, or other means, any content found or linked to the OMG web site without the prior express written permission of OMG. Any unauthorized use of any content contained on the OMG web site may violate the copyright laws, trademark laws, laws relating to publicity and privacy, and other regulations and statutes in the U.S. and other countries.