public class TAPForeignKey
extends java.lang.Object
implements java.lang.Iterable<java.util.Map.Entry<java.lang.String,java.lang.String>>
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.String> |
columnsAssoc |
protected java.lang.Object |
otherData |
Constructor and Description |
---|
TAPForeignKey(java.lang.String keyId,
TAPTable fromTable,
TAPTable targetTable,
java.util.Map<java.lang.String,java.lang.String> columns) |
TAPForeignKey(java.lang.String keyId,
TAPTable fromTable,
TAPTable targetTable,
java.util.Map<java.lang.String,java.lang.String> columns,
java.lang.String description,
java.lang.String utype) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDescription() |
TAPTable |
getFromTable() |
java.lang.String |
getKeyId() |
int |
getNbRelations() |
java.lang.Object |
getOtherData() |
int |
getRelationType(java.lang.String columnName) |
java.lang.String |
getSource(java.lang.String targetColumnName) |
java.lang.String |
getTarget(java.lang.String fromColumnName) |
TAPTable |
getTargetTable() |
java.lang.String |
getUtype() |
boolean |
isEmpty() |
boolean |
isSource(java.lang.String fromColumnName) |
boolean |
isTarget(java.lang.String targetColumnName) |
java.util.Iterator<java.util.Map.Entry<java.lang.String,java.lang.String>> |
iterator() |
void |
setDescription(java.lang.String description) |
void |
setOtherData(java.lang.Object data) |
void |
setUtype(java.lang.String utype) |
java.lang.String |
toString() |
protected final java.util.Map<java.lang.String,java.lang.String> columnsAssoc
protected java.lang.Object otherData
public TAPForeignKey(java.lang.String keyId, TAPTable fromTable, TAPTable targetTable, java.util.Map<java.lang.String,java.lang.String> columns)
public final java.lang.String getKeyId()
public final java.lang.String getDescription()
public final void setDescription(java.lang.String description)
description
- The description to set.public final java.lang.String getUtype()
public final void setUtype(java.lang.String utype)
utype
- The utype to set.public java.lang.Object getOtherData()
public void setOtherData(java.lang.Object data)
public final TAPTable getFromTable()
public final TAPTable getTargetTable()
public final boolean isSource(java.lang.String fromColumnName)
public final java.lang.String getTarget(java.lang.String fromColumnName)
public final boolean isTarget(java.lang.String targetColumnName)
public final java.lang.String getSource(java.lang.String targetColumnName)
public final int getRelationType(java.lang.String columnName)
public final boolean isEmpty()
public final int getNbRelations()
public java.util.Iterator<java.util.Map.Entry<java.lang.String,java.lang.String>> iterator()
iterator
in interface java.lang.Iterable<java.util.Map.Entry<java.lang.String,java.lang.String>>
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object