示例#1
0
 /**
  * To-many relationship, resolved on first access (and after reset). Changes to to-many relations
  * are not persisted, make changes to the target entity.
  */
 public List<StokeData> getStockDatas() {
   if (stockDatas == null) {
     if (daoSession == null) {
       throw new DaoException("Entity is detached from DAO context");
     }
     StokeDataDao targetDao = daoSession.getStokeDataDao();
     List<StokeData> stockDatasNew = targetDao._queryProduct_StockDatas(uuid);
     synchronized (this) {
       if (stockDatas == null) {
         stockDatas = stockDatasNew;
       }
     }
   }
   return stockDatas;
 }
示例#2
0
 /**
  * To-many relationship, resolved on first access (and after reset). Changes to to-many relations
  * are not persisted, make changes to the target entity.
  */
 public List<OrderData> getOrderDatas() {
   if (orderDatas == null) {
     if (daoSession == null) {
       throw new DaoException("Entity is detached from DAO context");
     }
     OrderDataDao targetDao = daoSession.getOrderDataDao();
     List<OrderData> orderDatasNew = targetDao._queryProduct_OrderDatas(uuid);
     synchronized (this) {
       if (orderDatas == null) {
         orderDatas = orderDatasNew;
       }
     }
   }
   return orderDatas;
 }
示例#3
0
 /**
  * To-many relationship, resolved on first access (and after reset). Changes to to-many relations
  * are not persisted, make changes to the target entity.
  */
 public List<Promotion> getPromotions() {
   if (promotions == null) {
     if (daoSession == null) {
       throw new DaoException("Entity is detached from DAO context");
     }
     PromotionDao targetDao = daoSession.getPromotionDao();
     List<Promotion> promotionsNew = targetDao._queryProduct_Promotions(uuid);
     synchronized (this) {
       if (promotions == null) {
         promotions = promotionsNew;
       }
     }
   }
   return promotions;
 }
示例#4
0
 /**
  * To-many relationship, resolved on first access (and after reset). Changes to to-many relations
  * are not persisted, make changes to the target entity.
  */
 public List<TaskOrder> getTaskOrderproducts() {
   if (taskOrderproducts == null) {
     if (daoSession == null) {
       throw new DaoException("Entity is detached from DAO context");
     }
     TaskOrderDao targetDao = daoSession.getTaskOrderDao();
     List<TaskOrder> taskOrderproductsNew = targetDao._queryProduct_TaskOrderproducts(uuid);
     synchronized (this) {
       if (taskOrderproducts == null) {
         taskOrderproducts = taskOrderproductsNew;
       }
     }
   }
   return taskOrderproducts;
 }
示例#5
0
 /** To-one relationship, resolved on first access. */
 public ProductGroup getProductGroup() {
   String __key = this.groupId;
   if (productGroup__resolvedKey == null || productGroup__resolvedKey != __key) {
     if (daoSession == null) {
       throw new DaoException("Entity is detached from DAO context");
     }
     ProductGroupDao targetDao = daoSession.getProductGroupDao();
     ProductGroup productGroupNew = targetDao.load(__key);
     synchronized (this) {
       productGroup = productGroupNew;
       productGroup__resolvedKey = __key;
     }
   }
   return productGroup;
 }
示例#6
0
 /** called by internal mechanisms, do not call yourself. */
 public void __setDaoSession(DaoSession daoSession) {
   this.daoSession = daoSession;
   myDao = daoSession != null ? daoSession.getProductDao() : null;
 }