|
|||||||||
| 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 | |
|---|---|
Object |
clone()
|
boolean |
equals(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. |
String |
getForeignColumnName()
Returns the name of the foreign column. |
Column |
getLocalColumn()
Returns the local column. |
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(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. |
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 column| Method 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 String getLocalColumnName()
public void setLocalColumnName(String localColumnName)
setLocalColumn(Column) method.
localColumnName - The column namepublic String getForeignColumnName()
public void setForeignColumnName(String foreignColumnName)
setForeignColumn(Column) method.
foreignColumnName - The column name
public Object clone()
throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic boolean equals(Object obj)
equals in class Objectpublic 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 Objectpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||