public List < Column > getFindColumnList ( ) { List < Column > findColumnList = new ArrayList < Column > ( ) ; List < Column > tempColumnList = new ArrayList < Column > ( ) ; for ( int i = 1 ; i <= this . cardinality ; i ++ ) { if ( this . columns . get ( i ) . referenceTable != null ) { tempColumnList = this . columns . get ( i ) . referenceTable . getFindColumnList ( ) ; for ( int j = 0 ; j < tempColumnList . size ( ) ; j ++ ) { Column column = new Column ( ) ; column . name = columns . get ( i ) . name . replace ( "_ID" , "_" ) . replace ( "_id" , "_" ) + tempColumnList . get ( j ) . name ; column . dataType = tempColumnList . get ( j ) . dataType ; column . nullable = this . columns . get ( i ) . nullable ; findColumnList . add ( column ) ; } } else { Column column = new Column ( ) ; column . name = columns . get ( i ) . name ; column . dataType = columns . get ( i ) . dataType ; column . nullable = this . columns . get ( i ) . nullable ; findColumnList . add ( column ) ; } } return findColumnList ; }
get the list of arguments used in find stored procedure