|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ddlutils.model.Reference
public class Reference
Represents a reference between a column in the local table and a column in another table.
Constructor Summary | |
---|---|
Reference()
Creates a new, empty reference. |
|
Reference(Column localColumn,
Column foreignColumn)
Creates a new reference between the two given columns. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object obj)
|
boolean |
equalsIgnoreCase(Reference otherRef)
Compares this reference to the given one while ignoring the case of identifiers. |
Column |
getForeignColumn()
Returns the foreign column. |
java.lang.String |
getForeignColumnName()
Returns the name of the foreign column. |
Column |
getLocalColumn()
Returns the local column. |
java.lang.String |
getLocalColumnName()
Returns the name of the local column. |
int |
getSequenceValue()
Returns the sequence value within the owning key. |
int |
hashCode()
|
void |
setForeignColumn(Column foreignColumn)
Sets the foreign column. |
void |
setForeignColumnName(java.lang.String foreignColumnName)
Sets the name of the remote column. |
void |
setLocalColumn(Column localColumn)
Sets the local column. |
void |
setLocalColumnName(java.lang.String localColumnName)
Sets the name of the local column. |
void |
setSequenceValue(int sequenceValue)
Sets the sequence value within the owning key. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Reference()
public Reference(Column localColumn, Column foreignColumn)
localColumn
- The local columnforeignColumn
- The remote columnMethod Detail |
---|
public int getSequenceValue()
public void setSequenceValue(int sequenceValue)
sequenceValue
- The sequence valuepublic Column getLocalColumn()
public void setLocalColumn(Column localColumn)
localColumn
- The local columnpublic Column getForeignColumn()
public void setForeignColumn(Column foreignColumn)
foreignColumn
- The foreign columnpublic java.lang.String getLocalColumnName()
public void setLocalColumnName(java.lang.String localColumnName)
setLocalColumn(Column)
method.
localColumnName
- The column namepublic java.lang.String getForeignColumnName()
public void setForeignColumnName(java.lang.String foreignColumnName)
setForeignColumn(Column)
method.
foreignColumnName
- The column namepublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean equalsIgnoreCase(Reference otherRef)
otherRef
- The other reference
true
if this reference is equal (ignoring case) to the given onepublic int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |