154155156157158159160
SQLMapHolder.sqlMap.insert("insertItem", dbObject); } @Override protected void doNew() throws Exception { dbObject = new Item(); }
141516171819202122232425262728293031323334353637
super(columns); } @Override public Object getValueAt(int row, int col) { Item item = (Item) dbObjects.get(row); switch (col) { case 0: return item.getId(); case 1: return item.getCode(); case 2: return item.getName(); case 3: return item.getType(); case 4: return item.isActive(); case 5: return item.getPrice(); default: return null; } }