コード例 #1
0
  @Override
  public java.util.List<com.diogo.peixoto.eventlisting.model.Beneficio> findByGroupId(
      long groupId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException {
    Object returnObj = null;

    try {
      returnObj =
          _invokableService.invokeMethod(
              _methodName10, _methodParameterTypes10, new Object[] {groupId, start, end});
    } catch (Throwable t) {
      t = ClpSerializer.translateThrowable(t);

      if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
        throw (com.liferay.portal.kernel.exception.SystemException) t;
      }

      if (t instanceof RuntimeException) {
        throw (RuntimeException) t;
      } else {
        throw new RuntimeException(t.getClass().getName() + " is not a valid exception");
      }
    }

    return (java.util.List<com.diogo.peixoto.eventlisting.model.Beneficio>)
        ClpSerializer.translateOutput(returnObj);
  }
コード例 #2
0
  @Override
  public com.diogo.peixoto.eventlisting.model.Beneficio fetchByPrimaryKey(long beneficioId)
      throws com.liferay.portal.kernel.exception.SystemException {
    Object returnObj = null;

    try {
      returnObj =
          _invokableService.invokeMethod(
              _methodName8, _methodParameterTypes8, new Object[] {beneficioId});
    } catch (Throwable t) {
      t = ClpSerializer.translateThrowable(t);

      if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
        throw (com.liferay.portal.kernel.exception.SystemException) t;
      }

      if (t instanceof RuntimeException) {
        throw (RuntimeException) t;
      } else {
        throw new RuntimeException(t.getClass().getName() + " is not a valid exception");
      }
    }

    return (com.diogo.peixoto.eventlisting.model.Beneficio)
        ClpSerializer.translateOutput(returnObj);
  }
コード例 #3
0
  @Override
  public int countByGroupId(long groupId)
      throws com.liferay.portal.kernel.exception.SystemException {
    Object returnObj = null;

    try {
      returnObj =
          _invokableService.invokeMethod(
              _methodName7, _methodParameterTypes7, new Object[] {groupId});
    } catch (Throwable t) {
      t = ClpSerializer.translateThrowable(t);

      if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
        throw (com.liferay.portal.kernel.exception.SystemException) t;
      }

      if (t instanceof RuntimeException) {
        throw (RuntimeException) t;
      } else {
        throw new RuntimeException(t.getClass().getName() + " is not a valid exception");
      }
    }

    return ((Integer) returnObj).intValue();
  }
コード例 #4
0
  @Override
  public void delete(long beneficioId)
      throws com.diogo.peixoto.eventlisting.NoSuchBeneficioException,
          com.liferay.portal.kernel.exception.SystemException {
    try {
      _invokableService.invokeMethod(
          _methodName5, _methodParameterTypes5, new Object[] {beneficioId});
    } catch (Throwable t) {
      t = ClpSerializer.translateThrowable(t);

      if (t instanceof com.diogo.peixoto.eventlisting.NoSuchBeneficioException) {
        throw (com.diogo.peixoto.eventlisting.NoSuchBeneficioException) t;
      }

      if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
        throw (com.liferay.portal.kernel.exception.SystemException) t;
      }

      if (t instanceof RuntimeException) {
        throw (RuntimeException) t;
      } else {
        throw new RuntimeException(t.getClass().getName() + " is not a valid exception");
      }
    }
  }
コード例 #5
0
  @Override
  public void setBeanIdentifier(java.lang.String beanIdentifier) {
    try {
      _invokableService.invokeMethod(
          _methodName1,
          _methodParameterTypes1,
          new Object[] {ClpSerializer.translateInput(beanIdentifier)});
    } catch (Throwable t) {
      t = ClpSerializer.translateThrowable(t);

      if (t instanceof RuntimeException) {
        throw (RuntimeException) t;
      } else {
        throw new RuntimeException(t.getClass().getName() + " is not a valid exception");
      }
    }
  }
コード例 #6
0
  @Override
  public java.lang.String getBeanIdentifier() {
    Object returnObj = null;

    try {
      returnObj =
          _invokableService.invokeMethod(_methodName0, _methodParameterTypes0, new Object[] {});
    } catch (Throwable t) {
      t = ClpSerializer.translateThrowable(t);

      if (t instanceof RuntimeException) {
        throw (RuntimeException) t;
      } else {
        throw new RuntimeException(t.getClass().getName() + " is not a valid exception");
      }
    }

    return (java.lang.String) ClpSerializer.translateOutput(returnObj);
  }
コード例 #7
0
  @Override
  public void delete(java.util.List<com.diogo.peixoto.eventlisting.model.Beneficio> beneficios)
      throws com.liferay.portal.kernel.exception.SystemException {
    try {
      _invokableService.invokeMethod(
          _methodName6,
          _methodParameterTypes6,
          new Object[] {ClpSerializer.translateInput(beneficios)});
    } catch (Throwable t) {
      t = ClpSerializer.translateThrowable(t);

      if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
        throw (com.liferay.portal.kernel.exception.SystemException) t;
      }

      if (t instanceof RuntimeException) {
        throw (RuntimeException) t;
      } else {
        throw new RuntimeException(t.getClass().getName() + " is not a valid exception");
      }
    }
  }
コード例 #8
0
  @Override
  public com.diogo.peixoto.eventlisting.model.Beneficio update(
      com.diogo.peixoto.eventlisting.model.Beneficio beneficio,
      com.liferay.portal.service.ServiceContext serviceContext)
      throws com.liferay.portal.kernel.exception.PortalException,
          com.liferay.portal.kernel.exception.SystemException {
    Object returnObj = null;

    try {
      returnObj =
          _invokableService.invokeMethod(
              _methodName3,
              _methodParameterTypes3,
              new Object[] {
                ClpSerializer.translateInput(beneficio),
                ClpSerializer.translateInput(serviceContext)
              });
    } catch (Throwable t) {
      t = ClpSerializer.translateThrowable(t);

      if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
        throw (com.liferay.portal.kernel.exception.PortalException) t;
      }

      if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
        throw (com.liferay.portal.kernel.exception.SystemException) t;
      }

      if (t instanceof RuntimeException) {
        throw (RuntimeException) t;
      } else {
        throw new RuntimeException(t.getClass().getName() + " is not a valid exception");
      }
    }

    return (com.diogo.peixoto.eventlisting.model.Beneficio)
        ClpSerializer.translateOutput(returnObj);
  }