Examples of DaoTaskException


Examples of org.vosao.dao.DaoTaskException

    if (isSkip()) {
      if (entity.getId() == null) {
        LanguageEntity found = getDao().getLanguageDao().getByCode(
            entity.getCode());
        if (found == null) {
          throw new DaoTaskException("Language not found while "
            + "skipping save operation. code=" + entity.getCode());
        }
        entity.setId(found.getId());
      }
    }
View Full Code Here

Examples of org.vosao.dao.DaoTaskException

    if (isSkip()) {
      if (entity.getId() == null) {
        FolderEntity found = getDao().getFolderDao().getByParentName(
            entity.getParent(), entity.getName());
        if (found == null) {
          throw new DaoTaskException("Folder not found while "
            + "skipping save operation. " + entity.getName());
        }
        entity.setId(found.getId());
      }
    }
View Full Code Here

Examples of org.vosao.dao.DaoTaskException

    if (isSkip()) {
      if (entity.getId() == null) {
        FormEntity found = getDao().getFormDao().getByName(
            entity.getName());
        if (found == null) {
          throw new DaoTaskException("Form not found while "
            + "skipping save operation. " + entity.getName());
        }
        entity.setKey(found.getKey());
      }
    }
View Full Code Here

Examples of org.vosao.dao.DaoTaskException

        FormEntity form = getDao().getFormDao().getById(
            entity.getFormId());
        FieldEntity found = getDao().getFieldDao().getByName(form,
            entity.getName());
        if (found == null) {
          throw new DaoTaskException("Field not found while "
            + "skipping save operation. " + entity.getName());
        }
        entity.setKey(found.getKey());
      }
    }
View Full Code Here

Examples of org.vosao.dao.DaoTaskException

  public void formConfigSave(FormConfigEntity entity) throws DaoTaskException {
    if (isSkip()) {
      if (entity.getId() == null) {
        FormConfigEntity found = getDao().getFormConfigDao().getConfig();
        if (found == null) {
          throw new DaoTaskException("Form config not found while "
            + "skipping save operation. ");
        }
        entity.setKey(found.getKey());
      }
    }
View Full Code Here

Examples of org.vosao.dao.DaoTaskException

    if (isSkip()) {
      if (entity.getId() == null) {
        GroupEntity found = getDao().getGroupDao().getByName(
            entity.getName());
        if (found == null) {
          throw new DaoTaskException("Group not found while "
            + "skipping save operation. " + entity.getName());
        }
        entity.setKey(found.getKey());
      }
    }
View Full Code Here

Examples of org.vosao.dao.DaoTaskException

    if (isSkip()) {
      if (entity.getId() == null) {
        UserGroupEntity found = getDao().getUserGroupDao()
          .getByUserGroup(entity.getGroupId(), entity.getUserId());
        if (found == null) {
          throw new DaoTaskException("UserGroup not found while "
            + "skipping save operation. group=" + entity.getGroupId()
            + " user=" + entity.getUserId());
        }
        entity.setKey(found.getKey());
      }
View Full Code Here

Examples of org.vosao.dao.DaoTaskException

    if (isSkip()) {
      if (entity.getId() == null) {
        MessageEntity found = getDao().getMessageDao().getByCode(
            entity.getCode(), entity.getLanguageCode());
        if (found == null) {
          throw new DaoTaskException("Message not found while "
            + "skipping save operation. code=" + entity.getCode()
            + " language=" + entity.getLanguageCode());
        }
        entity.setId(found.getId());
      }
View Full Code Here

Examples of org.vosao.dao.DaoTaskException

      //    + entity.getVersion() + " current " + current);
      if (entity.getId() == null) {
        PageEntity found = getDao().getPageDao().getByUrlVersion(
            entity.getFriendlyURL(), entity.getVersion());
        if (found == null) {
          throw new DaoTaskException("Page not found while "
            + "skipping save operation. " + entity.getFriendlyURL()
            + " version=" + entity.getVersion());
        }
        entity.setId(found.getId());
      }
View Full Code Here

Examples of org.vosao.dao.DaoTaskException

    if (isSkip()) {
      if (entity.getId() == null) {
        StructureEntity found = getDao().getStructureDao().getByTitle(
            entity.getTitle());
        if (found == null) {
          throw new DaoTaskException("Structure not found while "
            + "skipping save operation. " + entity.getTitle());
        }
        entity.setId(found.getId());
      }
    }
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.