Package de.mhus.lib.cao

Examples of de.mhus.lib.cao.CaoException


      try {
        session.refresh(false);
      } catch (RepositoryException e1) {
        monitor.log().i(e);
      }
      throw new CaoException(e);
    }
   
  }
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

     
      form.setActivator(acti);
     
      return new DbCaoConnection(this,form);
    } catch (Exception e) {
      throw new CaoException(url,e);
    }
  }
View Full Code Here

  @Override
  public void setBoolean(String name, boolean value) throws CaoException {
    CaoMetaDefinition def = master.getMetadata().getDefinition(name);
    if (def==null||def.getType()!=TYPE.BOOLEAN)
      throw new CaoException("Unknown attribute: " + name);
    setString(name, String.valueOf(value));
  }
View Full Code Here

  @Override
  public void setCalendar(String name, Calendar value) throws CaoException {
    CaoMetaDefinition def = master.getMetadata().getDefinition(name);
    if (def==null||def.getType()!=TYPE.DATETIME)
      throw new CaoException("Unknown attribute: " + name);
    setString(name, MCast.toString(value));
  }
View Full Code Here

  @Override
  public void setDate(String name, MDate value) throws CaoException {
    CaoMetaDefinition def = master.getMetadata().getDefinition(name);
    if (def==null||def.getType()!=TYPE.DATETIME)
      throw new CaoException("Unknown attribute: " + name);
    setString(name, value.toString());
  }
View Full Code Here

 
  @Override
  public void setDouble(String name, double value) throws CaoException {
    CaoMetaDefinition def = master.getMetadata().getDefinition(name);
    if (def==null||def.getType()!=TYPE.DOUBLE)
      throw new CaoException("Unknown attribute: " + name);
    setString(name, MCast.toString(value));
  }
View Full Code Here

  @Override
  public void setList(String name, CaoList value) throws CaoException {
    CaoMetaDefinition def = master.getMetadata().getDefinition(name);
    if (def==null||def.getType()!=TYPE.LIST)
      throw new CaoException("Unknown attribute: " + name);
    data.put(name, value);
  }
View Full Code Here

  @Override
  public void setLong(String name, long value) throws CaoException {
    CaoMetaDefinition def = master.getMetadata().getDefinition(name);
    if (def==null||def.getType()!=TYPE.LONG)
      throw new CaoException("Unknown attribute: " + name);
    setString(name, String.valueOf(value));
  }
View Full Code Here

        dump(root,"", out);       
      }
      monitor.worked(1);
    } catch (Throwable e) {
      monitor.log().i(e);
      throw new CaoException(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.