Exemplo n.º 1
0
 @Override
 public void persist() throws SystemException {
   if (this.isNew()) {
     EmpNotifyEmailLocalServiceUtil.addEmpNotifyEmail(this);
   } else {
     EmpNotifyEmailLocalServiceUtil.updateEmpNotifyEmail(this);
   }
 }
  public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments)
      throws Throwable {
    if (_methodName0.equals(name) && Arrays.deepEquals(_methodParameterTypes0, parameterTypes)) {
      return EmpNotifyEmailLocalServiceUtil.addEmpNotifyEmail(
          (vn.com.ecopharma.emp.model.EmpNotifyEmail) arguments[0]);
    }

    if (_methodName1.equals(name) && Arrays.deepEquals(_methodParameterTypes1, parameterTypes)) {
      return EmpNotifyEmailLocalServiceUtil.createEmpNotifyEmail(((Long) arguments[0]).longValue());
    }

    if (_methodName2.equals(name) && Arrays.deepEquals(_methodParameterTypes2, parameterTypes)) {
      return EmpNotifyEmailLocalServiceUtil.deleteEmpNotifyEmail(((Long) arguments[0]).longValue());
    }

    if (_methodName3.equals(name) && Arrays.deepEquals(_methodParameterTypes3, parameterTypes)) {
      return EmpNotifyEmailLocalServiceUtil.deleteEmpNotifyEmail(
          (vn.com.ecopharma.emp.model.EmpNotifyEmail) arguments[0]);
    }

    if (_methodName4.equals(name) && Arrays.deepEquals(_methodParameterTypes4, parameterTypes)) {
      return EmpNotifyEmailLocalServiceUtil.dynamicQuery();
    }

    if (_methodName5.equals(name) && Arrays.deepEquals(_methodParameterTypes5, parameterTypes)) {
      return EmpNotifyEmailLocalServiceUtil.dynamicQuery(
          (com.liferay.portal.kernel.dao.orm.DynamicQuery) arguments[0]);
    }

    if (_methodName6.equals(name) && Arrays.deepEquals(_methodParameterTypes6, parameterTypes)) {
      return EmpNotifyEmailLocalServiceUtil.dynamicQuery(
          (com.liferay.portal.kernel.dao.orm.DynamicQuery) arguments[0],
          ((Integer) arguments[1]).intValue(),
          ((Integer) arguments[2]).intValue());
    }

    if (_methodName7.equals(name) && Arrays.deepEquals(_methodParameterTypes7, parameterTypes)) {
      return EmpNotifyEmailLocalServiceUtil.dynamicQuery(
          (com.liferay.portal.kernel.dao.orm.DynamicQuery) arguments[0],
          ((Integer) arguments[1]).intValue(),
          ((Integer) arguments[2]).intValue(),
          (com.liferay.portal.kernel.util.OrderByComparator) arguments[3]);
    }

    if (_methodName8.equals(name) && Arrays.deepEquals(_methodParameterTypes8, parameterTypes)) {
      return EmpNotifyEmailLocalServiceUtil.dynamicQueryCount(
          (com.liferay.portal.kernel.dao.orm.DynamicQuery) arguments[0]);
    }

    if (_methodName9.equals(name) && Arrays.deepEquals(_methodParameterTypes9, parameterTypes)) {
      return EmpNotifyEmailLocalServiceUtil.dynamicQueryCount(
          (com.liferay.portal.kernel.dao.orm.DynamicQuery) arguments[0],
          (com.liferay.portal.kernel.dao.orm.Projection) arguments[1]);
    }

    if (_methodName10.equals(name) && Arrays.deepEquals(_methodParameterTypes10, parameterTypes)) {
      return EmpNotifyEmailLocalServiceUtil.fetchEmpNotifyEmail(((Long) arguments[0]).longValue());
    }

    if (_methodName11.equals(name) && Arrays.deepEquals(_methodParameterTypes11, parameterTypes)) {
      return EmpNotifyEmailLocalServiceUtil.getEmpNotifyEmail(((Long) arguments[0]).longValue());
    }

    if (_methodName12.equals(name) && Arrays.deepEquals(_methodParameterTypes12, parameterTypes)) {
      return EmpNotifyEmailLocalServiceUtil.getPersistedModel((java.io.Serializable) arguments[0]);
    }

    if (_methodName13.equals(name) && Arrays.deepEquals(_methodParameterTypes13, parameterTypes)) {
      return EmpNotifyEmailLocalServiceUtil.getEmpNotifyEmails(
          ((Integer) arguments[0]).intValue(), ((Integer) arguments[1]).intValue());
    }

    if (_methodName14.equals(name) && Arrays.deepEquals(_methodParameterTypes14, parameterTypes)) {
      return EmpNotifyEmailLocalServiceUtil.getEmpNotifyEmailsCount();
    }

    if (_methodName15.equals(name) && Arrays.deepEquals(_methodParameterTypes15, parameterTypes)) {
      return EmpNotifyEmailLocalServiceUtil.updateEmpNotifyEmail(
          (vn.com.ecopharma.emp.model.EmpNotifyEmail) arguments[0]);
    }

    if (_methodName198.equals(name)
        && Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) {
      return EmpNotifyEmailLocalServiceUtil.getBeanIdentifier();
    }

    if (_methodName199.equals(name)
        && Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) {
      EmpNotifyEmailLocalServiceUtil.setBeanIdentifier((java.lang.String) arguments[0]);

      return null;
    }

    if (_methodName204.equals(name)
        && Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) {
      return EmpNotifyEmailLocalServiceUtil.findAll();
    }

    if (_methodName205.equals(name)
        && Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) {
      return EmpNotifyEmailLocalServiceUtil.findAll(
          ((Integer) arguments[0]).intValue(), ((Integer) arguments[1]).intValue());
    }

    if (_methodName206.equals(name)
        && Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) {
      return EmpNotifyEmailLocalServiceUtil.findAll(
          ((Integer) arguments[0]).intValue(),
          ((Integer) arguments[1]).intValue(),
          (com.liferay.portal.kernel.util.OrderByComparator) arguments[2]);
    }

    if (_methodName207.equals(name)
        && Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) {
      return EmpNotifyEmailLocalServiceUtil.findByStatus((java.lang.String) arguments[0]);
    }

    if (_methodName208.equals(name)
        && Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) {
      return EmpNotifyEmailLocalServiceUtil.createPreperistedEntity();
    }

    if (_methodName209.equals(name)
        && Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) {
      return EmpNotifyEmailLocalServiceUtil.createEmpNotifyEmail(
          ((Long) arguments[0]).longValue(),
          (java.lang.String) arguments[1],
          (java.lang.String) arguments[2]);
    }

    if (_methodName210.equals(name)
        && Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) {
      return EmpNotifyEmailLocalServiceUtil.updateEmpNotifyEmail(
          (vn.com.ecopharma.emp.model.EmpNotifyEmail) arguments[0],
          (java.lang.String) arguments[1]);
    }

    if (_methodName211.equals(name)
        && Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) {
      return EmpNotifyEmailLocalServiceUtil.updateEmpNotifyEmail(
          ((Long) arguments[0]).longValue(), (java.lang.String) arguments[1]);
    }

    if (_methodName212.equals(name)
        && Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) {
      return EmpNotifyEmailLocalServiceUtil.updateSentMailNotify(((Long) arguments[0]).longValue());
    }

    if (_methodName213.equals(name)
        && Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) {
      return EmpNotifyEmailLocalServiceUtil.updateSentMailNotify(
          (vn.com.ecopharma.emp.model.EmpNotifyEmail) arguments[0]);
    }

    if (_methodName214.equals(name)
        && Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) {
      EmpNotifyEmailLocalServiceUtil.updateSentMailNotifications(
          (java.util.List<vn.com.ecopharma.emp.model.EmpNotifyEmail>) arguments[0]);

      return null;
    }

    if (_methodName215.equals(name)
        && Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) {
      return EmpNotifyEmailLocalServiceUtil.removeEmpNotifyEmail(((Long) arguments[0]).longValue());
    }

    throw new UnsupportedOperationException();
  }