android.arch.persistence.room.TypeConverters Java Examples

The following examples show how to use android.arch.persistence.room.TypeConverters. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ProductDao.java    From mobikul-standalone-pos with MIT License 6 votes vote down vote up
@Query("UPDATE Product SET image = :imagePath, is_enabled = :isEnabled, product_name = :ProductName, sku = :sku, price = :price" +
        ", special_price = :specialPrice, is_taxable_goods_applied = :isTaxableGoodsApplied, track_inventory= :trackInventory" +
        ", quantity = :qty , stock_availability = :inStock, weight = :weight, productCategories = :productCategories" +
        ", options = :productOptions, product_tax = :productTax WHERE pId = :pId")

@TypeConverters(DataConverter.class)
void updateProduct(String imagePath
        , boolean isEnabled
        , String ProductName
        , String sku
        , String price
        , String specialPrice
        , boolean isTaxableGoodsApplied
        , boolean trackInventory
        , String qty
        , boolean inStock
        , String weight
        , String productCategories
        , String productOptions
        , String productTax
        , int pId);