コード例 #1
0
 def findByUser(email):
     rows = PurchasedItemIDTDG.findByUser(email)
     result = list()
     for row in rows:
         itemSpec = ItemSpecMapper.find(row['modelNum'], row['type'])
         result.append(PurchasedItemID(row['serialNum'], itemSpec, email, row['type'], row['timeStamp']))
     return result
コード例 #2
0
    def find(serialNumber):

        result = PurchasedItemIDTDG.findByPurchaseId(serialNumber)
        itemSpec = ItemSpecMapper.find(result['modelNum'], result['type'])
        result = PurchasedItemID(result['serialNum'], itemSpec, result['userID'], result['type'], result['timeStamp'])
        return result
コード例 #3
0
    def unlock(lockOwner):

        result = PurchasedItemIDTDG.unlock(lockOwner)
        return result
コード例 #4
0
    def update(purchaseItemID):

        PurchasedItemIDTDG.update(purchaseItemID)
コード例 #5
0
    def delete(serialNumber):

        PurchasedItemIDTDG.delete(serialNumber)
        return
コード例 #6
0
    def insert(newPurchaseItem):

        PurchasedItemIDTDG.insert(newPurchaseItem.serialNumber, newPurchaseItem.spec.modelNumber, newPurchaseItem.email, newPurchaseItem.spec.type, newPurchaseItem.timeStamp)
        return