Package ch.semafor.gendas.model

Examples of ch.semafor.gendas.model.Element


  @Transactional(readOnly = true)
  public Long getLastRevision(final Long id) { // NOPMD by wildi on 9/21/10
                          // 6:35 AM
    try {
      final Element e = elementDao.get(id); // NOPMD by wildi on 9/21/10
                          // 6:35 AM
      final Modification h = e.getLastModification(); // NOPMD by wildi on
                            // 9/21/10 6:37 AM
      return h.getRevision(); // NOPMD by wildi on 9/21/10 6:27 AM
    } catch (CoreException e) {
      // ToDO, PMD:AvoidPrintStackTrace
      e.printStackTrace();
    }
    return null;
  }
View Full Code Here


    try {
      logger.debug("searching elements {} with ",
          beanClass.getCanonicalName());
      final ElementCreator creator = new ElementCreator(elementTypeDao,
          elementDao, propertyTypeDao, null);
      final Element eref = creator.create(ref, null);
      for (Element e : elementDao.findByTypeAndReference(
          beanClass.getCanonicalName(), eref)) {
        // only elements of beanClass:
        objectsList.add(load(e.getId()));
      }
View Full Code Here

    return elementTypeDao.getAll();
  }

  @Transactional
  public void delete(final Long id) throws CoreException {
        Element e = elementDao.get(id);
        if( e!=null ){
            e.setStateDeleted();
            elementDao.save(e);
        }
  }
View Full Code Here

TOP

Related Classes of ch.semafor.gendas.model.Element

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.