protected List < Attribute > getAttributes1 ( String ownerType , Long ownerId ) throws SQLException { List < Attribute > attrs = getAttributes0 ( ownerType , ownerId ) ; if ( attrs == null ) return null ; ResultSet rs ; String query = "select RULE_SET_DETAILS from RULE_SET where RULE_SET_ID=?" ; for ( Attribute attr : attrs ) { String v = attr . getAttributeValue ( ) ; if ( v != null && v . startsWith ( Asset . ATTRIBUTE_OVERFLOW ) ) { Long assetId = new Long ( v . substring ( Asset . ATTRIBUTE_OVERFLOW . length ( ) + 1 ) ) ; rs = db . runSelect ( query , assetId ) ; if ( rs . next ( ) ) { attr . setAttributeValue ( rs . getString ( 1 ) ) ; } } } return attrs ; }
Same as getAttribute1 but handles overflow values