Пример #1
0
 @Override
 public void fromRecord(Record r, Logo l) {
   // TODO remove it, get id from db
   Integer id = r.getValue(OFC_LOGO.POS);
   LogoPosition p = LogoDao.getPositionFromId(id);
   l.setId(id);
   l.setPosition(p);
   l.setImage(r.getValue(OFC_LOGO.IMAGE));
   // TODO set contentType
   // l.setContentType(contentType);
 }
Пример #2
0
 @Override
 protected void setId(Logo l, int id) {
   l.setPosition(id);
 }
Пример #3
0
 @Override
 public void fromRecord(Record r, Logo l) {
   l.setPosition(r.getValue(OFC_LOGO.POS));
   l.setImage(r.getValue(OFC_LOGO.IMAGE));
 }