Methods Summary |
---|
private void | advance()
myCurrent = null;
if( hasPrimaryKey() ){
myPrimaryKeyPassed = true;
Enumeration primaryKeyFields = getPrimaryKeyFields();
if( primaryKeyFields.hasMoreElements() ){
myCurrent = new PrimaryKeyImpl(myTable,primaryKeyFields);
}
}
while(myCurrent == null && getForeignKeys().hasMoreElements() ){
ForeignKeyImpl tmp = (ForeignKeyImpl)getForeignKeys().nextElement();
if(tmp.getColumns().hasMoreElements()){
myCurrent = tmp;
}
}
|
private java.util.Enumeration | getForeignKeys()
if(myForeignKeys == null){
myForeignKeys = new ForeignKeyEnumeration(myTable,(SQLModelImpl)myTable.getModel());
}
return myForeignKeys;
|
private java.util.Enumeration | getPrimaryKeyFields()
if(myPrimaryKeyFields == null){
myPrimaryKeyFields = myTable.getPrimaryKeyColumns();
}
return myPrimaryKeyFields;
|
public boolean | hasMoreElements()
return myCurrent != null;
|
private boolean | hasPrimaryKey()
return !myPrimaryKeyPassed && getPrimaryKeyFields().hasMoreElements();
|
public java.lang.Object | nextElement()
Object result = myCurrent;
advance();
return result;
|