Class TicketRepository

  • All Implemented Interfaces:
    org.ektorp.support.GenericRepository<TicketDocument>

    public class TicketRepository
    extends org.ektorp.support.CouchDbRepositorySupport<TicketDocument>
    This is TicketDocument. Typed interface to CouchDB.
    Since:
    5.3.0
    • Field Summary

      • Fields inherited from class org.ektorp.support.CouchDbRepositorySupport

        AUTO_UPDATE_VIEW_ON_CHANGE, db, log, stdDesignDocumentId, type
    • Constructor Summary

      Constructors 
      Constructor Description
      TicketRepository​(org.ektorp.CouchDbConnector db)  
      TicketRepository​(org.ektorp.CouchDbConnector db, boolean createIfNotExists)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long delete​(java.util.List<TicketDocument> ticketDocuments)
      Delete tickets.
      java.lang.String getCurrentRevision​(java.lang.String id)
      Gets current document revision.
      • Methods inherited from class org.ektorp.support.CouchDbRepositorySupport

        add, contains, createQuery, debugDesignDoc, get, get, get, getAll, getDesignDocumentFactory, initStandardDesignDocument, queryView, queryView, queryView, queryView, remove, setDesignDocumentFactory, update
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TicketRepository

        public TicketRepository​(org.ektorp.CouchDbConnector db)
      • TicketRepository

        public TicketRepository​(org.ektorp.CouchDbConnector db,
                                boolean createIfNotExists)
    • Method Detail

      • delete

        public long delete​(java.util.List<TicketDocument> ticketDocuments)
        Delete tickets.
        Parameters:
        ticketDocuments - tickets to be deleted.
        Returns:
        number of tickets deleted
      • getCurrentRevision

        public java.lang.String getCurrentRevision​(java.lang.String id)
        Gets current document revision.
        Parameters:
        id - Document id to get revision.
        Returns:
        current document revision.