private void initialize() throws IOException {
  if (_secondaryJoiners != null) {
    return;
  }
  _primaryJoinersChkUp=new ArrayList<Joiner>(1);
  _primaryJoinersChkDel=new ArrayList<Joiner>(1);
  _primaryJoinersDoUp=new ArrayList<Joiner>(1);
  _primaryJoinersDoDel=new ArrayList<Joiner>(1);
  _primaryJoinersDoNull=new ArrayList<Joiner>(1);
  _secondaryJoiners=new ArrayList<Joiner>(1);
  for (  IndexImpl idx : _table.getIndexes()) {
    IndexImpl.ForeignKeyReference ref=idx.getReference();
    if (ref != null) {
      Joiner joiner=Joiner.create(idx);
      if (ref.isPrimaryTable()) {
        if (ref.isCascadeUpdates()) {
          _primaryJoinersDoUp.add(joiner);
        }
 else {
          _primaryJoinersChkUp.add(joiner);
        }
        if (ref.isCascadeDeletes()) {
          _primaryJoinersDoDel.add(joiner);
        }
 else         if (ref.isCascadeNullOnDelete()) {
          _primaryJoinersDoNull.add(joiner);
        }
 else {
          _primaryJoinersChkDel.add(joiner);
        }
      }
 else {
        _secondaryJoiners.add(joiner);
      }
    }
  }
}

private void initialize ( ) throws IOException { if ( _secondaryJoiners != null ) { return ; } _primaryJoinersChkUp = new ArrayList < Joiner > ( 1 ) ; _primaryJoinersChkDel = new ArrayList < Joiner > ( 1 ) ; _primaryJoinersDoUp = new ArrayList < Joiner > ( 1 ) ; _primaryJoinersDoDel = new ArrayList < Joiner > ( 1 ) ; _primaryJoinersDoNull = new ArrayList < Joiner > ( 1 ) ; _secondaryJoiners = new ArrayList < Joiner > ( 1 ) ; for ( IndexImpl idx : _table . getIndexes ( ) ) { IndexImpl . ForeignKeyReference ref = idx . getReference ( ) ; if ( ref != null ) { Joiner joiner = Joiner . create ( idx ) ; if ( ref . isPrimaryTable ( ) ) { if ( ref . isCascadeUpdates ( ) ) { _primaryJoinersDoUp . add ( joiner ) ; } else { _primaryJoinersChkUp . add ( joiner ) ; } if ( ref . isCascadeDeletes ( ) ) { _primaryJoinersDoDel . add ( joiner ) ; } else if ( ref . isCascadeNullOnDelete ( ) ) { _primaryJoinersDoNull . add ( joiner ) ; } else { _primaryJoinersChkDel . add ( joiner ) ; } } else { _secondaryJoiners . add ( joiner ) ; } } } }
does secondary initialization , if necessary .
