Example #1
0
  protected MunkaKep loadCurrentDeep(Cursor cursor, boolean lock) {
    MunkaKep entity = loadCurrent(cursor, 0, lock);
    int offset = getAllColumns().length;

    Munka munka = loadCurrentOther(daoSession.getMunkaDao(), cursor, offset);
    entity.setMunka(munka);

    return entity;
  }
Example #2
0
 /** @inheritdoc */
 @Override
 public Long getKey(MunkaKep entity) {
   if (entity != null) {
     return entity.getMunkaKepID();
   } else {
     return null;
   }
 }
Example #3
0
  /** @inheritdoc */
  @Override
  protected void bindValues(SQLiteStatement stmt, MunkaKep entity) {
    stmt.clearBindings();

    Long munkaKepID = entity.getMunkaKepID();
    if (munkaKepID != null) {
      stmt.bindLong(1, munkaKepID);
    }

    String munkaKepPath = entity.getMunkaKepPath();
    if (munkaKepPath != null) {
      stmt.bindString(2, munkaKepPath);
    }

    String munkaKepDate = entity.getMunkaKepDate();
    if (munkaKepDate != null) {
      stmt.bindString(3, munkaKepDate);
    }

    Boolean munkaKepIsUploaded = entity.getMunkaKepIsUploaded();
    if (munkaKepIsUploaded != null) {
      stmt.bindLong(4, munkaKepIsUploaded ? 1l : 0l);
    }

    Boolean munkaKepIsActive = entity.getMunkaKepIsActive();
    if (munkaKepIsActive != null) {
      stmt.bindLong(5, munkaKepIsActive ? 1l : 0l);
    }

    Long munkaID = entity.getMunkaID();
    if (munkaID != null) {
      stmt.bindLong(6, munkaID);
    }
  }
Example #4
0
 /** @inheritdoc */
 @Override
 public void readEntity(Cursor cursor, MunkaKep entity, int offset) {
   entity.setMunkaKepID(cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0));
   entity.setMunkaKepPath(cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1));
   entity.setMunkaKepDate(cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2));
   entity.setMunkaKepIsUploaded(
       cursor.isNull(offset + 3) ? null : cursor.getShort(offset + 3) != 0);
   entity.setMunkaKepIsActive(cursor.isNull(offset + 4) ? null : cursor.getShort(offset + 4) != 0);
   entity.setMunkaID(cursor.isNull(offset + 5) ? null : cursor.getLong(offset + 5));
 }
Example #5
0
 /** @inheritdoc */
 @Override
 protected Long updateKeyAfterInsert(MunkaKep entity, long rowId) {
   entity.setMunkaKepID(rowId);
   return rowId;
 }
Example #6
0
 @Override
 protected void attachEntity(MunkaKep entity) {
   super.attachEntity(entity);
   entity.__setDaoSession(daoSession);
 }