public void addObject ( final Object [ ] _row ) throws SQLException { // store the ids also this . idList . add ( ( Long ) _row [ 0 ] ) ; if ( getFromSelect ( ) != null ) { final int column = "id" . equals ( this . valueSelect . getValueType ( ) ) ? this . valueSelect . getColIndexs ( ) . get ( 0 ) : 2 ; this . relIdList . add ( ( Long ) _row [ column - 1 ] ) ; // this means that it is a chained LinkFromSelect, but exclude // AttributeSets if ( ! getSelectParts ( ) . isEmpty ( ) && getSelectParts ( ) . get ( 0 ) instanceof LinkFromSelect . LinkFromSelectPart && ! ( ( ( LinkFromSelect . LinkFromSelectPart ) getSelectParts ( ) . get ( 0 ) ) . getType ( ) instanceof AttributeSet ) ) { this . idList . set ( this . idList . size ( ) - 1 , ( Long ) _row [ 1 ] ) ; } } Object object = null ; final AbstractValueSelect tmpValueSelect ; if ( this . valueSelect == null ) { tmpValueSelect = this . fromSelect . getMainOneSelect ( ) . getValueSelect ( ) ; } else { tmpValueSelect = this . valueSelect ; } if ( tmpValueSelect . getParentSelectPart ( ) != null ) { tmpValueSelect . getParentSelectPart ( ) . addObject ( _row ) ; } if ( tmpValueSelect . getColIndexs ( ) . size ( ) > 1 ) { final Object [ ] objArray = new Object [ tmpValueSelect . getColIndexs ( ) . size ( ) ] ; int i = 0 ; for ( final Integer colIndex : tmpValueSelect . getColIndexs ( ) ) { objArray [ i ] = _row [ colIndex - 1 ] ; i ++ ; } object = objArray ; } else if ( tmpValueSelect . getColIndexs ( ) . size ( ) > 0 ) { object = _row [ tmpValueSelect . getColIndexs ( ) . get ( 0 ) - 1 ] ; } this . objectList . add ( object ) ; }
Add an Object for this OneSelect .