Package br.gov.frameworkdemoiselle

Examples of br.gov.frameworkdemoiselle.DemoiselleException


        if (field.isAnnotationPresent(ManagedProperty.class)) {
          // Obtém os métodos GET e SET para esta propriedade
          Method getterMethod = getGetterMethod(field);
          Method setterMethod = getSetterMethod(field);
          if (getterMethod == null && setterMethod == null) {
            throw new DemoiselleException(bundle.getString("management-invalid-property-no-getter-setter",
                type.getSimpleName(), field.getName()));
          } else if ((getterMethod != null && getterMethod.isAnnotationPresent(ManagedOperation.class))
              || (setterMethod != null && setterMethod.isAnnotationPresent(ManagedOperation.class))) {
            throw new DemoiselleException(bundle.getString("management-invalid-property-as-operation",
                type.getSimpleName()));
          }

          String propertyDescription = field.getAnnotation(ManagedProperty.class).description();
View Full Code Here


        tempConversationContext.deactivate();
      }
    }

    if (failure != null) {
      throw new DemoiselleException(failure);
    }
  }
View Full Code Here

  }

  @Override
  @Deprecated
  public List<Message> getMessages() {
    throw new DemoiselleException(
        "Este método não é mais suportado desde a versão 2.4.0 do Demoiselle Framework. Considere atualizar a sua aplicação ou o componente com uma nova versão que faça uso do "
            + MessageAppender.class.getCanonicalName() + ".");
  }
View Full Code Here

  }

  @Override
  @Deprecated
  public void clear() {
    throw new DemoiselleException(
        "Este método não é mais suportado desde a versão 2.4.0 do Demoiselle Framework. Considere atualizar a sua aplicação ou o componente com uma nova versão que faça uso do "
            + MessageAppender.class.getCanonicalName() + ".");
  }
View Full Code Here

  public void commit() {
    try {
      getDelegate().commit();

    } catch (Exception cause) {
      throw new DemoiselleException(cause);
    }
  }
View Full Code Here

  public void rollback() {
    try {
      getDelegate().rollback();

    } catch (SystemException cause) {
      throw new DemoiselleException(cause);
    }
  }
View Full Code Here

  public void setRollbackOnly() {
    try {
      getDelegate().setRollbackOnly();

    } catch (SystemException cause) {
      throw new DemoiselleException(cause);
    }
  }
View Full Code Here

  public boolean isActive() {
    try {
      return getDelegate().getStatus() != STATUS_NO_TRANSACTION;

    } catch (SystemException cause) {
      throw new DemoiselleException(cause);
    }
  }
View Full Code Here

    try {
      return getDelegate().getStatus() == STATUS_MARKED_ROLLBACK
          || getDelegate().getStatus() == STATUS_ROLLEDBACK;

    } catch (SystemException cause) {
      throw new DemoiselleException(cause);
    }
  }
View Full Code Here

  public void begin() {
    try {
      getDelegate().begin();

    } catch (Exception cause) {
      throw new DemoiselleException(cause);
    }
  }
View Full Code Here

TOP

Related Classes of br.gov.frameworkdemoiselle.DemoiselleException

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.