public static ArrayList < Serializable > getDefaultSourceValues ( Connection con , QueryParameter qp ) throws Exception { ArrayList < Serializable > result = new ArrayList < Serializable > ( ) ; List < IdName > list = getSelectValues ( con , qp . getDefaultSource ( ) , false , QueryParameter . NO_ORDER ) ; if ( QueryParameter . SINGLE_SELECTION . equals ( qp . getSelection ( ) ) ) { for ( IdName in : list ) { result . add ( in . getId ( ) ) ; } } else { for ( IdName in : list ) { result . add ( in ) ; } } return result ; }
Get values for a default source