Interface RecordFactory


  • public interface RecordFactory
    This interface is used to implement any data provider record
    • Method Detail

      • getRecord

        DCRecord getRecord​(String id)
                    throws Exception
        return a dublin core record
        Parameters:
        id - the record id
        Returns:
        the DC record
        Throws:
        Exception
      • getRecords

        Vector getRecords​(String from,
                          String until,
                          String set,
                          int startno,
                          int size)
                   throws Exception
        Parameters:
        from - from parameter in OAI -- accession date
        until - until parameter in OAI -- accession date
        set - set parameter
        startno - start cursor in result set
        size - expected returned size startno and size are used to support resumptionToken, if no resumption is required, simply assign 0 to size
        Throws:
        Exception
      • getSets

        Vector getSets​(int startno,
                       int endno)
                throws Exception
        Parameters:
        startno - start cursor in result set
        endno - end cursor in result set
        Throws:
        Exception