|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.harvard.cfa.vo.tapclient.vosi.ForeignKey
public class ForeignKey
A description of a foreign keys, one or more columns from the current table that can be used to join with another table.
Table
,
ForeignKey
Field Summary | |
---|---|
protected java.util.Map<java.lang.String,java.lang.String> |
fkColumns
|
Constructor Summary | |
---|---|
protected |
ForeignKey()
Constructs a ForeignKey object. |
protected |
ForeignKey(java.lang.String targetTable,
java.util.Map<java.lang.String,java.lang.String> fkColumns,
java.lang.String description,
java.lang.String utype)
Constructs a ForeignKey object. |
Method Summary | |
---|---|
protected void |
add(java.lang.String fromColumn,
java.lang.String targetColumn)
|
java.lang.String |
getDescription()
Returns a description of the foreign key. |
java.util.Map<java.lang.String,java.lang.String> |
getFKColumns()
Returns a Map of column pairs where the key is the from column in the table containing this foreign key and the value is the column in the target table. |
java.lang.String |
getTargetTable()
Returns the name of the table which can be joined with the table containing this ForeignKey object. |
java.lang.String |
getUtype()
Returns the utype, usage-specific or unique type, provided for the key. |
void |
list(java.io.PrintStream output)
|
void |
list(java.io.PrintStream output,
java.lang.String indent)
|
java.lang.String |
toString()
Returns a String representation of the this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.Map<java.lang.String,java.lang.String> fkColumns
Constructor Detail |
---|
protected ForeignKey()
protected ForeignKey(java.lang.String targetTable, java.util.Map<java.lang.String,java.lang.String> fkColumns, java.lang.String description, java.lang.String utype)
Method Detail |
---|
public java.lang.String getTargetTable()
public java.util.Map<java.lang.String,java.lang.String> getFKColumns()
MapfkColumnMap = fkColumnPari: getFKColumns(); Iteartor > iterator = fkColumnMap.entrySet().iterator(); while (iteartor.hasNext()) { Map.Entry fkColumnPair = iterator.next(); System.out.println(table.getName()+"."+fkColumnPair.getKey()+ " = "+ foreignKey.getTargetTable()+"."+fkColumnPair.getValue(); }
protected void add(java.lang.String fromColumn, java.lang.String targetColumn)
public java.lang.String getDescription()
public java.lang.String getUtype()
public java.lang.String toString()
toString
in class java.lang.Object
public void list(java.io.PrintStream output)
public void list(java.io.PrintStream output, java.lang.String indent)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |