public class SchemaForeignKey
extends java.lang.Object
Constructor and Description |
---|
SchemaForeignKey(java.lang.String keyName,
java.lang.String parentSchemaName,
java.util.Map<java.lang.String,java.lang.String> keyMap)
Construct a new Foreign key
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.util.Map<java.lang.String,java.lang.String> |
getKeyMap()
retrieve the column mapping
|
java.lang.String |
getParentSchemaName()
Returns the name of the parent table in the key
|
int |
hashCode() |
java.lang.String |
toString() |
public SchemaForeignKey(java.lang.String keyName, java.lang.String parentSchemaName, @Nullable java.util.Map<java.lang.String,java.lang.String> keyMap)
keyName
- name of keyparentSchemaName
- parent schema namekeyMap
- mapping of child column -> parent column names@NotNull public java.util.Map<java.lang.String,java.lang.String> getKeyMap()
public java.lang.String getParentSchemaName()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
@NotNull public java.lang.String toString()
toString
in class java.lang.Object