コード例 #1
0
  public BarActionableDynamicQuery() {
    setBaseLocalService(BarLocalServiceUtil.getService());

    setClassLoader(com.liferay.testtransaction.service.ClpSerializer.class.getClassLoader());

    setModelClass(Bar.class);

    setPrimaryKeyPropertyName("barId");
  }
コード例 #2
0
  public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments)
      throws Throwable {
    if (_methodName0.equals(name) && Arrays.deepEquals(_methodParameterTypes0, parameterTypes)) {
      return BarLocalServiceUtil.addBar((com.liferay.testtransaction.model.Bar) arguments[0]);
    }

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

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

    if (_methodName3.equals(name) && Arrays.deepEquals(_methodParameterTypes3, parameterTypes)) {
      return BarLocalServiceUtil.deleteBar((com.liferay.testtransaction.model.Bar) arguments[0]);
    }

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

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

    if (_methodName6.equals(name) && Arrays.deepEquals(_methodParameterTypes6, parameterTypes)) {
      return BarLocalServiceUtil.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 BarLocalServiceUtil.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 BarLocalServiceUtil.dynamicQueryCount(
          (com.liferay.portal.kernel.dao.orm.DynamicQuery) arguments[0]);
    }

    if (_methodName9.equals(name) && Arrays.deepEquals(_methodParameterTypes9, parameterTypes)) {
      return BarLocalServiceUtil.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 BarLocalServiceUtil.fetchBar(((Long) arguments[0]).longValue());
    }

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

    if (_methodName12.equals(name) && Arrays.deepEquals(_methodParameterTypes12, parameterTypes)) {
      return BarLocalServiceUtil.getActionableDynamicQuery();
    }

    if (_methodName14.equals(name) && Arrays.deepEquals(_methodParameterTypes14, parameterTypes)) {
      return BarLocalServiceUtil.deletePersistedModel(
          (com.liferay.portal.model.PersistedModel) arguments[0]);
    }

    if (_methodName15.equals(name) && Arrays.deepEquals(_methodParameterTypes15, parameterTypes)) {
      return BarLocalServiceUtil.getPersistedModel((java.io.Serializable) arguments[0]);
    }

    if (_methodName16.equals(name) && Arrays.deepEquals(_methodParameterTypes16, parameterTypes)) {
      return BarLocalServiceUtil.getBars(
          ((Integer) arguments[0]).intValue(), ((Integer) arguments[1]).intValue());
    }

    if (_methodName17.equals(name) && Arrays.deepEquals(_methodParameterTypes17, parameterTypes)) {
      return BarLocalServiceUtil.getBarsCount();
    }

    if (_methodName18.equals(name) && Arrays.deepEquals(_methodParameterTypes18, parameterTypes)) {
      return BarLocalServiceUtil.updateBar((com.liferay.testtransaction.model.Bar) arguments[0]);
    }

    if (_methodName41.equals(name) && Arrays.deepEquals(_methodParameterTypes41, parameterTypes)) {
      return BarLocalServiceUtil.getBeanIdentifier();
    }

    if (_methodName42.equals(name) && Arrays.deepEquals(_methodParameterTypes42, parameterTypes)) {
      BarLocalServiceUtil.setBeanIdentifier((java.lang.String) arguments[0]);

      return null;
    }

    if (_methodName47.equals(name) && Arrays.deepEquals(_methodParameterTypes47, parameterTypes)) {
      BarLocalServiceUtil.addBar_Rollback((java.lang.String) arguments[0]);

      return null;
    }

    if (_methodName48.equals(name) && Arrays.deepEquals(_methodParameterTypes48, parameterTypes)) {
      return BarLocalServiceUtil.addBar_Success((java.lang.String) arguments[0]);
    }

    if (_methodName49.equals(name) && Arrays.deepEquals(_methodParameterTypes49, parameterTypes)) {
      BarLocalServiceUtil.addBarAndClassName_PortalRollback((java.lang.String) arguments[0]);

      return null;
    }

    if (_methodName50.equals(name) && Arrays.deepEquals(_methodParameterTypes50, parameterTypes)) {
      BarLocalServiceUtil.addBarAndClassName_PortletRollback((java.lang.String) arguments[0]);

      return null;
    }

    if (_methodName51.equals(name) && Arrays.deepEquals(_methodParameterTypes51, parameterTypes)) {
      return BarLocalServiceUtil.deleteBar((com.liferay.testtransaction.model.Bar) arguments[0]);
    }

    if (_methodName52.equals(name) && Arrays.deepEquals(_methodParameterTypes52, parameterTypes)) {
      BarLocalServiceUtil.deleteBarAndClassName(
          (com.liferay.testtransaction.model.Bar) arguments[0]);

      return null;
    }

    if (_methodName53.equals(name) && Arrays.deepEquals(_methodParameterTypes53, parameterTypes)) {
      return BarLocalServiceUtil.getBar((java.lang.String) arguments[0]);
    }

    if (_methodName54.equals(name) && Arrays.deepEquals(_methodParameterTypes54, parameterTypes)) {
      return BarLocalServiceUtil.hasBar((java.lang.String) arguments[0]);
    }

    if (_methodName55.equals(name) && Arrays.deepEquals(_methodParameterTypes55, parameterTypes)) {
      return BarLocalServiceUtil.hasClassName();
    }

    if (_methodName56.equals(name) && Arrays.deepEquals(_methodParameterTypes56, parameterTypes)) {
      BarLocalServiceUtil.testAddClassNameAndBar_Success((java.lang.String) arguments[0]);

      return null;
    }

    throw new UnsupportedOperationException();
  }