Package com.philip.journal.home.dao

Examples of com.philip.journal.home.dao.EntryDAO.save()


                    }
                }
                if (null == entryDao.readByTitle(entry.getTitle(), subListParent.getBranchId())) {
                    entry.setBranch(subListParent);
                    entry.setNodeId(0);
                    entryDao.save(entry);
                }
            }
        }

    }
View Full Code Here


        final Branch parent = branchDao.read(newParentId);
        if (entry == null || parent == null) {
            throw new IllegalArgumentException(Error.IAE_GENERIC);
        } else {
            entry.setBranch(parent);
            entryDao.save(entry);
        }
    }

    @Override
    public void renameEntry(final Map<String, Object> session, final long entryId, final String newTitle)
View Full Code Here

            final Entry entry = entryDao.read(entryId);
            if (entry == null) {
                throw new IllegalArgumentException("Entry ID: " + entryId + " was not found.");
            } else {
                entry.setTitle(newTitle);
                entryDao.save(entry);
            }
        }
    }

    @Override
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.