Methods Summary |
---|
public java.util.Enumeration | getColumns()
boolean showForeign = !myTable.equals(getReferencedTable());
UnaryFunction filter
= new UnaryFunction(){
public Object execute(Object arg){
if( !(arg instanceof ColumnImpl) ){
return null;
}
else{
return myTable.getForeignKeyColumn((ColumnImpl)arg, myForcePrimaryKey);
}
}
};
Enumeration source = null;
if( getReferencedTable() instanceof TableImpl ){
source = ((TableImpl)getReferencedTable()).getPrimaryKeyColumns(showForeign);
}
else{
source = new EmptyEnumeration();
}
return new FilterEnumeration(source, filter);
|
public java.lang.String | getName()
return myTable.getForeignKeyName(this);
|
public java.util.Enumeration | getReferencedColumns()
return getReferencedTable().getPrimaryKeyColumns();
|
public oisoft.togetherx.scripts.SQL.SQLTable | getReferencedTable()
return myReferencedTable;
|
public oisoft.togetherx.scripts.SQL.SQLTable | getTable()
return myTable;
|