Class Reference
java.lang.Object
edu.internet2.middleware.grouper.ext.org.apache.ddlutils.model.Reference
- All Implemented Interfaces:
Serializable
,Cloneable
Represents a reference between a column in the local table and a column in another table.
- Version:
- $Revision: 463305 $
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
boolean
equalsIgnoreCase
(Reference otherRef) Compares this reference to the given one while ignoring the case of identifiers.Returns the foreign column.Returns the name of the foreign column.Returns the local column.Returns the name of the local column.int
Returns the sequence value within the owning key.int
hashCode()
void
setForeignColumn
(Column foreignColumn) Sets the foreign column.void
setForeignColumnName
(String foreignColumnName) Sets the name of the remote column.void
setLocalColumn
(Column localColumn) Sets the local column.void
setLocalColumnName
(String localColumnName) Sets the name of the local column.void
setSequenceValue
(int sequenceValue) Sets the sequence value within the owning key.toString()
-
Constructor Details
-
Reference
public Reference()Creates a new, empty reference. -
Reference
Creates a new reference between the two given columns.- Parameters:
localColumn
- The local columnforeignColumn
- The remote column
-
-
Method Details
-
getSequenceValue
public int getSequenceValue()Returns the sequence value within the owning key.- Returns:
- The sequence value
-
setSequenceValue
public void setSequenceValue(int sequenceValue) Sets the sequence value within the owning key. Please note that you should not change the value once the reference has been added to a key.- Parameters:
sequenceValue
- The sequence value
-
getLocalColumn
Returns the local column.- Returns:
- The local column
-
setLocalColumn
Sets the local column.- Parameters:
localColumn
- The local column
-
getForeignColumn
Returns the foreign column.- Returns:
- The foreign column
-
setForeignColumn
Sets the foreign column.- Parameters:
foreignColumn
- The foreign column
-
getLocalColumnName
Returns the name of the local column.- Returns:
- The column name
-
setLocalColumnName
Sets the name of the local column. Note that you should not use this method when manipulating the model manually. Rather use thesetLocalColumn(Column)
method.- Parameters:
localColumnName
- The column name
-
getForeignColumnName
Returns the name of the foreign column.- Returns:
- The column name
-
setForeignColumnName
Sets the name of the remote column. Note that you should not use this method when manipulating the model manually. Rather use thesetForeignColumn(Column)
method.- Parameters:
foreignColumnName
- The column name
-
clone
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
equals
-
equalsIgnoreCase
Compares this reference to the given one while ignoring the case of identifiers.- Parameters:
otherRef
- The other reference- Returns:
true
if this reference is equal (ignoring case) to the given one
-
hashCode
public int hashCode() -
toString
-