@Test public void testCreate() throws Exception { IDataSet db = database( support.loadFlatXmlDataStream(getClass(), "user.xml"), support.loadFlatXmlDataStream(getClass(), "wf_job.xml") ); support.cleanInsert(support.getConnection(tx), db); tx.commit(); Task task = dao.create(); task.addCreated(dbTimestamp).addJobId(BigDecimal.ONE).addNote("note") .addOwnerId(BigDecimal.ONE).addPriority(1).addTypeRef("profileName") .setState(State.READY) .addTimestamp(dbTimestamp); dao.update(task); tx.commit(); assertNotNull(task.getId()); Task result = dao.find(task.getId()); assertNotNull(result); assertEquals(result.getCreated(), task.getCreated()); assertEquals(result.getId(), task.getId()); assertEquals(result.getJobId(), task.getJobId()); assertEquals(result.getNote(), task.getNote()); assertEquals(result.getOwnerId(), task.getOwnerId()); assertEquals(result.getPriority(), task.getPriority()); assertEquals(result.getState(), task.getState()); assertEquals(result.getTimestamp(), task.getTimestamp()); assertEquals(result.getTypeRef(), task.getTypeRef()); }
@Override public Task create() { return new Task(); }
EmpireWorkflowTaskDao extends EmpireDao implements WorkflowTaskDao { @Override public Task create() { return new Task(); } }
EmpireWorkflowTaskDao extends EmpireDao implements WorkflowTaskDao { @Override public Task create() { return new Task(); } EmpireWorkflowTaskDao(ProarcDatabase db); }
EmpireWorkflowTaskDao extends EmpireDao implements WorkflowTaskDao { @Override public Task create() { return new Task(); } EmpireWorkflowTaskDao(ProarcDatabase db); @Override Task create(); @Override void update(Task task); @Override Task find(BigDecimal id); @Override List<TaskView> view(TaskFilter filter); }
EmpireWorkflowTaskDao extends EmpireDao implements WorkflowTaskDao { @Override public Task create() { return new Task(); } EmpireWorkflowTaskDao(ProarcDatabase db); @Override Task create(); @Override void update(Task task); @Override Task find(BigDecimal id); @Override List<TaskView> view(TaskFilter filter);  }