Package de.mhus.lib.cao

Examples of de.mhus.lib.cao.CaoException


  @Override
  public String getId() throws CaoException {
    try {
      return file.getCanonicalPath();
    } catch (IOException e) {
      throw new CaoException(file.getAbsolutePath(),e);
    }
  }
View Full Code Here


        ele.setChildren(new LinkedCaoList(ele, list));
       
        return  ele;
      }
    } catch (Exception e) {
      throw new CaoException(e);
    }
    return super.queryElement(name, access, attributes);
  }
View Full Code Here

        ele.setChildren(new LinkedCaoList(ele, list));
       
        return  ele;
      }
    } catch (Exception e) {
      throw new CaoException(e);
    }
    return super.queryElement(name, access, attributes);
  }
View Full Code Here

  protected void save() throws CaoException {
    if (parentObject != null) {
      try {
        ((AdbApplication)getApplication()).getManager().saveObject(parentObject);
      } catch (MException e) {
        throw new CaoException(e);
      }
    }
  }
View Full Code Here

    super(app);
    this.attributes = attributes;
    try {
      this.node = row.getNode();
    } catch (RepositoryException e) {
      throw new CaoException(e);
    }
    meta = new JackMeta(getConnection().getDriver(), node);
  }
View Full Code Here

    public void reset() throws CaoException {
      LinkedList<CaoElement> list = new LinkedList<CaoElement>();
      try {
        join(config,list);
      } catch (Exception e) {
        throw new CaoException(e);
      }
      listIter = list.iterator();
    }
View Full Code Here

  @Override
  public String getId() throws CaoException {
    try {
      return node.getIdentifier();
    } catch (RepositoryException e) {
      throw new CaoException(e);
    }
  }
View Full Code Here

  @Override
  public String getName() throws CaoException {
    try {
      return node.getName();
    } catch (RepositoryException e) {
      throw new CaoException(getId(),e);
    }
  }
View Full Code Here

  @Override
  public String getString(String name) throws CaoException {
    try {
      return node.getProperty(name).getString();
    } catch (RepositoryException e) {
      throw new CaoException(getId(),e);
    }
  }
View Full Code Here

  public CaoList getList(String name, CaoAccess access, String... attributes)
      throws CaoException {
    try {
      return new ValueList(this, name, node.getProperty(name).getValues() );
    } catch (Exception e) {
      throw new CaoException(name,e);
    }
  }
View Full Code Here

TOP

Related Classes of de.mhus.lib.cao.CaoException

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.