question: private void loadOrgAccessUser ( ArrayList < OrgAccess > list ) { PreparedStatement pstmt = null ; ResultSet rs = null ; String sql = "SELECT * FROM AD_User_OrgAccess " + "WHERE AD_User_ID=? AND IsActive='Y'" ; try { pstmt = DB . prepareStatement ( sql , get_TrxName ( ) ) ; pstmt . setInt ( 1 , getAD_User_ID ( ) ) ; rs = pstmt . executeQuery ( ) ; while ( rs . next ( ) ) { MUserOrgAccess oa = new MUserOrgAccess ( getCtx ( ) , rs , get_TrxName ( ) ) ; loadOrgAccessAdd ( list , new OrgAccess ( oa . getAD_Client_ID ( ) , oa . getAD_Org_ID ( ) , oa . isReadOnly ( ) ) ) ; } } catch ( Exception e ) { log . log ( Level . SEVERE , sql , e ) ; } finally { DB . close ( rs , pstmt ) ; } }
target:  Load Org Access User