blob: 4c25afabc132266f5a04e29637dc65c7767df9ea (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package xyz.driver.pdsuicommon.db.repositories
import xyz.driver.pdsuicommon.concurrent.BridgeUploadQueue
import xyz.driver.pdsuicommon.db.MysqlQueryBuilder
trait BridgeUploadQueueRepository extends Repository {
type EntityT = BridgeUploadQueue.Item
def add(draft: EntityT): EntityT
def getById(kind: String, tag: String): Option[EntityT]
def getOne(kind: String): Option[BridgeUploadQueue.Item]
def update(entity: EntityT): EntityT
def delete(kind: String, tag: String): Unit
def buildQuery: MysqlQueryBuilder[EntityT]
}
|