Package com.philip.journal.home.dao

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


        targetBranch.setParent(parent);
        final Branch storedBranch = branchDao.readByName(targetBranch.getName(), parentId);
        if (storedBranch == null) {
            targetBranch.setBranchId(0);
            branchDao.save(targetBranch);
        } else {
            targetBranch = storedBranch;
        }
        return targetBranch;
    }
View Full Code Here


        if (parentIdx > -1 && newIdx > parentIdx) {
            throw new JournalException(Messages.Error.JE_INV_BRANCHID);
        }

        branch.setParent(parent);
        branchDao.save(branch);
    }

    @Override
    public Map<String, Object> getNodeProperties(final Map<String, Object> session, final long nodeId,
            final boolean isEntry)
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.