Package org.vosao.dao

Examples of org.vosao.dao.DaoTaskException


    if (isSkip()) {
      if (entity.getId() == null) {
        TemplateEntity found = getDao().getTemplateDao().getByUrl(
            entity.getUrl());
        if (found == null) {
          throw new DaoTaskException("Template not found while "
            + "skipping save operation. " + entity.getTitle());
        }
        entity.setId(found.getId());
      }
    }
View Full Code Here


    if (isSkip()) {
      if (entity.getId() == null) {
        UserEntity found = getDao().getUserDao().getByEmail(
            entity.getEmail());
        if (found == null) {
          throw new DaoTaskException("User not found while "
            + "skipping save operation. " + entity.getEmail());
        }
        entity.setKey(found.getKey());
      }
    }
View Full Code Here

    if (isSkip()) {
      if (entity.getId() == null) {
        PluginEntity found = getDao().getPluginDao().getByName(
            entity.getName());
        if (found == null) {
          throw new DaoTaskException("Plugin not found while "
            + "skipping save operation. " + entity.getName());
        }
        entity.setId(found.getId());
      }
    }
View Full Code Here

    if (isSkip()) {
      if (entity.getId() == null) {
        SeoUrlEntity found = getDao().getSeoUrlDao().getByFrom(
            entity.getFromLink());
        if (found == null) {
          throw new DaoTaskException("SeoUrl not found while "
            + "skipping save operation. " + entity.getFromLink());
        }
        entity.setId(found.getId());
      }
    }
View Full Code Here

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

        PageDependencyEntity found = getDao().getPageDependencyDao()
          .getByPageAndDependency(entity.getPage(),
              entity.getDependency());
       
        if (found == null) {
          throw new DaoTaskException("PageDependency not found while "
            + "skipping save operation. " + entity.getPage());
        }
        entity.setId(found.getId());
      }
    }
View Full Code Here

    if (isSkip()) {
      if (entity.getId() == null) {
        PageTagEntity found = getDao().getPageTagDao().getByURL(
            entity.getPageURL());
        if (found == null) {
          throw new DaoTaskException("Page Tag not found while "
              + "skipping save operation. " + entity.getPageURL());
        }
        entity.setId(found.getId());
      }
    }
View Full Code Here

TOP

Related Classes of org.vosao.dao.DaoTaskException

Copyright © 2018 www.massapicom. 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.