org.riverock.dbrevision.annotation.schema.db
Class DbForeignKey

java.lang.Object
  extended by org.riverock.dbrevision.annotation.schema.db.DbForeignKey

public class DbForeignKey
extends Object

Java class for DbForeignKey complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="DbForeignKey">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="Column" type="{http://dbrevision.sourceforge.net/xsd/dbrevision-structure.xsd}DbForeignKeyColumn" maxOccurs="unbounded"/>
         <element name="UpdateRule" type="{http://dbrevision.sourceforge.net/xsd/dbrevision-structure.xsd}DbKeyActionRule" minOccurs="0"/>
         <element name="DeleteRule" type="{http://dbrevision.sourceforge.net/xsd/dbrevision-structure.xsd}DbKeyActionRule" minOccurs="0"/>
         <element name="Deferrability" type="{http://dbrevision.sourceforge.net/xsd/dbrevision-structure.xsd}DbKeyActionRule" minOccurs="0"/>
       </sequence>
       <attribute name="fkName" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="fkSchemaName" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="fkTableName" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="pkName" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="pkSchemaName" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="pkTableName" type="{http://www.w3.org/2001/XMLSchema}string" />
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  List<DbForeignKeyColumn> columns
           
protected  DbKeyActionRule deferrability
           
protected  DbKeyActionRule deleteRule
           
protected  String fkName
           
protected  String fkSchemaName
           
protected  String fkTableName
           
protected  String pkName
           
protected  String pkSchemaName
           
protected  String pkTableName
           
protected  DbKeyActionRule updateRule
           
 
Constructor Summary
DbForeignKey()
           
 
Method Summary
 List<DbForeignKeyColumn> getColumns()
          Gets the value of the columns property.
 DbKeyActionRule getDeferrability()
          Gets the value of the deferrability property.
 DbKeyActionRule getDeleteRule()
          Gets the value of the deleteRule property.
 String getFkName()
          Gets the value of the fkName property.
 String getFkSchemaName()
          Gets the value of the fkSchemaName property.
 String getFkTableName()
          Gets the value of the fkTableName property.
 String getPkName()
          Gets the value of the pkName property.
 String getPkSchemaName()
          Gets the value of the pkSchemaName property.
 String getPkTableName()
          Gets the value of the pkTableName property.
 DbKeyActionRule getUpdateRule()
          Gets the value of the updateRule property.
 void setDeferrability(DbKeyActionRule value)
          Sets the value of the deferrability property.
 void setDeleteRule(DbKeyActionRule value)
          Sets the value of the deleteRule property.
 void setFkName(String value)
          Sets the value of the fkName property.
 void setFkSchemaName(String value)
          Sets the value of the fkSchemaName property.
 void setFkTableName(String value)
          Sets the value of the fkTableName property.
 void setPkName(String value)
          Sets the value of the pkName property.
 void setPkSchemaName(String value)
          Sets the value of the pkSchemaName property.
 void setPkTableName(String value)
          Sets the value of the pkTableName property.
 void setUpdateRule(DbKeyActionRule value)
          Sets the value of the updateRule property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

columns

protected List<DbForeignKeyColumn> columns

updateRule

protected DbKeyActionRule updateRule

deleteRule

protected DbKeyActionRule deleteRule

deferrability

protected DbKeyActionRule deferrability

fkName

protected String fkName

fkSchemaName

protected String fkSchemaName

fkTableName

protected String fkTableName

pkName

protected String pkName

pkSchemaName

protected String pkSchemaName

pkTableName

protected String pkTableName
Constructor Detail

DbForeignKey

public DbForeignKey()
Method Detail

getColumns

public List<DbForeignKeyColumn> getColumns()
Gets the value of the columns property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the columns property.

For example, to add a new item, do as follows:

    getColumns().add(newItem);
 

Objects of the following type(s) are allowed in the list DbForeignKeyColumn


getUpdateRule

public DbKeyActionRule getUpdateRule()
Gets the value of the updateRule property.

Returns:
possible object is DbKeyActionRule

setUpdateRule

public void setUpdateRule(DbKeyActionRule value)
Sets the value of the updateRule property.

Parameters:
value - allowed object is DbKeyActionRule

getDeleteRule

public DbKeyActionRule getDeleteRule()
Gets the value of the deleteRule property.

Returns:
possible object is DbKeyActionRule

setDeleteRule

public void setDeleteRule(DbKeyActionRule value)
Sets the value of the deleteRule property.

Parameters:
value - allowed object is DbKeyActionRule

getDeferrability

public DbKeyActionRule getDeferrability()
Gets the value of the deferrability property.

Returns:
possible object is DbKeyActionRule

setDeferrability

public void setDeferrability(DbKeyActionRule value)
Sets the value of the deferrability property.

Parameters:
value - allowed object is DbKeyActionRule

getFkName

public String getFkName()
Gets the value of the fkName property.

Returns:
possible object is String

setFkName

public void setFkName(String value)
Sets the value of the fkName property.

Parameters:
value - allowed object is String

getFkSchemaName

public String getFkSchemaName()
Gets the value of the fkSchemaName property.

Returns:
possible object is String

setFkSchemaName

public void setFkSchemaName(String value)
Sets the value of the fkSchemaName property.

Parameters:
value - allowed object is String

getFkTableName

public String getFkTableName()
Gets the value of the fkTableName property.

Returns:
possible object is String

setFkTableName

public void setFkTableName(String value)
Sets the value of the fkTableName property.

Parameters:
value - allowed object is String

getPkName

public String getPkName()
Gets the value of the pkName property.

Returns:
possible object is String

setPkName

public void setPkName(String value)
Sets the value of the pkName property.

Parameters:
value - allowed object is String

getPkSchemaName

public String getPkSchemaName()
Gets the value of the pkSchemaName property.

Returns:
possible object is String

setPkSchemaName

public void setPkSchemaName(String value)
Sets the value of the pkSchemaName property.

Parameters:
value - allowed object is String

getPkTableName

public String getPkTableName()
Gets the value of the pkTableName property.

Returns:
possible object is String

setPkTableName

public void setPkTableName(String value)
Sets the value of the pkTableName property.

Parameters:
value - allowed object is String


Copyright © 2008 Riverock community. All Rights Reserved.