public class TicketRepository extends org.ektorp.support.CouchDbRepositorySupport<TicketDocument>
TicketDocument. Typed interface to CouchDB.| Constructor and Description |
|---|
TicketRepository(org.ektorp.CouchDbConnector db) |
TicketRepository(org.ektorp.CouchDbConnector db,
boolean createIfNotExists) |
| Modifier and Type | Method and Description |
|---|---|
long |
delete(java.util.List<TicketDocument> ticketDocuments)
Delete tickets.
|
java.lang.String |
getCurrentRevision(java.lang.String id)
Gets current document revision.
|
public TicketRepository(org.ektorp.CouchDbConnector db)
public TicketRepository(org.ektorp.CouchDbConnector db,
boolean createIfNotExists)
public long delete(java.util.List<TicketDocument> ticketDocuments)
ticketDocuments - tickets to be deleted.public java.lang.String getCurrentRevision(java.lang.String id)
id - Document id to get revision.