public List < CDCQueryResult > executeCDCQuery ( List < ? extends IEntity > entities , String changedSince ) throws FMSException { if ( entities == null || entities . isEmpty ( ) ) { throw new FMSException ( "Entities is required." ) ; } if ( ! StringUtils . hasText ( changedSince ) ) { throw new FMSException ( "changedSince is required." ) ; } IntuitMessage intuitMessage = prepareCDCQuery ( entities , changedSince ) ; // execute interceptors executeInterceptors ( intuitMessage ) ; List < CDCQueryResult > cdcQueryResults = null ; // Iterate the IntuitObjects list in QueryResponse and convert to <T> entity IntuitResponse intuitResponse = ( IntuitResponse ) intuitMessage . getResponseElements ( ) . getResponse ( ) ; if ( intuitResponse != null ) { List < CDCResponse > cdcResponses = intuitResponse . getCDCResponse ( ) ; if ( cdcResponses != null ) { cdcQueryResults = getCDCQueryResult ( cdcResponses ) ; } } return cdcQueryResults ; }
Method to retrieve the list of records for the given entities whose last modified date is greater than the given changedSince date