I need some help to resolve the following error
error: There is a problem with the query: The prepared statement has been finalized List getall();
error: Not sure how to convert a Cursor to this method's return type (java.util.List<com.hashmac.store.dao.CartOffline>). List getall();
error: Must have exactly 1 query in the value of @Query or @DatabaseView List getCartProduct(String priceUnitId);
My Code is:
package com.hashmac.store.dao;
import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;
import java.util.List;
@Dao
public interface CartDao {
@Insert
void insertNew(CartOffline cartOffline);
@Query("")
List<CartOffline> getall();
@Query("")
List<CartOffline> getCartProduct(String priceUnitId);
@Query("")
void updateObj(long quantity, String priceunitid);
@Query("")
void deleteObjbyPid(String priceunitid);
@Delete
void deleteObj(CartOffline cartOffline);
@Query("")
int getProductCount(String pId);
@Query("")
void deleteAll();
/*@Query("UPDATE CartOffline SET quantity = :quantity")
void updetCart()*/
}