/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.sampleservicebuilder.service;
import aQute.bnd.annotation.ProviderType;
import com.liferay.portal.kernel.service.InvokableLocalService;
/**
* @author Brian Wing Shun Chan
* @generated
*/
@ProviderType
public class FooLocalServiceClp implements FooLocalService {
public FooLocalServiceClp(InvokableLocalService invokableLocalService) {
_invokableLocalService = invokableLocalService;
_methodName0 = "getActionableDynamicQuery";
_methodParameterTypes0 = new String[] { };
_methodName1 = "dynamicQuery";
_methodParameterTypes1 = new String[] { };
_methodName2 = "getExportActionableDynamicQuery";
_methodParameterTypes2 = new String[] {
"com.liferay.exportimport.kernel.lar.PortletDataContext"
};
_methodName3 = "getIndexableActionableDynamicQuery";
_methodParameterTypes3 = new String[] { };
_methodName4 = "deletePersistedModel";
_methodParameterTypes4 = new String[] {
"com.liferay.portal.kernel.model.PersistedModel"
};
_methodName5 = "getPersistedModel";
_methodParameterTypes5 = new String[] { "java.io.Serializable" };
_methodName6 = "addFoo";
_methodParameterTypes6 = new String[] {
"com.liferay.sampleservicebuilder.model.Foo"
};
_methodName7 = "createFoo";
_methodParameterTypes7 = new String[] { "long" };
_methodName8 = "deleteFoo";
_methodParameterTypes8 = new String[] {
"com.liferay.sampleservicebuilder.model.Foo"
};
_methodName9 = "deleteFoo";
_methodParameterTypes9 = new String[] { "long" };
_methodName10 = "fetchFoo";
_methodParameterTypes10 = new String[] { "long" };
_methodName11 = "fetchFooByUuidAndGroupId";
_methodParameterTypes11 = new String[] { "java.lang.String", "long" };
_methodName12 = "getFoo";
_methodParameterTypes12 = new String[] { "long" };
_methodName13 = "getFooByUuidAndGroupId";
_methodParameterTypes13 = new String[] { "java.lang.String", "long" };
_methodName14 = "updateFoo";
_methodParameterTypes14 = new String[] {
"com.liferay.sampleservicebuilder.model.Foo"
};
_methodName15 = "getField1FoosCount";
_methodParameterTypes15 = new String[] { "java.lang.String[][]" };
_methodName16 = "getFoosCount";
_methodParameterTypes16 = new String[] { };
_methodName17 = "getLocalObject";
_methodParameterTypes17 = new String[] { };
_methodName19 = "getOSGiServiceIdentifier";
_methodParameterTypes19 = new String[] { };
_methodName20 = "dynamicQuery";
_methodParameterTypes20 = new String[] {
"com.liferay.portal.kernel.dao.orm.DynamicQuery"
};
_methodName21 = "dynamicQuery";
_methodParameterTypes21 = new String[] {
"com.liferay.portal.kernel.dao.orm.DynamicQuery", "int", "int"
};
_methodName22 = "dynamicQuery";
_methodParameterTypes22 = new String[] {
"com.liferay.portal.kernel.dao.orm.DynamicQuery", "int", "int",
"com.liferay.portal.kernel.util.OrderByComparator"
};
_methodName23 = "getField1Foos";
_methodParameterTypes23 = new String[] {
"java.lang.String[][]", "int", "int",
"com.liferay.portal.kernel.util.OrderByComparator"
};
_methodName24 = "getFoos";
_methodParameterTypes24 = new String[] { };
_methodName25 = "getFoos";
_methodParameterTypes25 = new String[] {
"com.liferay.portal.kernel.util.OrderByComparator"
};
_methodName26 = "getFoos";
_methodParameterTypes26 = new String[] { "int", "int" };
_methodName27 = "getFoos";
_methodParameterTypes27 = new String[] {
"int", "int", "com.liferay.portal.kernel.util.OrderByComparator"
};
_methodName28 = "getFoosByUuidAndCompanyId";
_methodParameterTypes28 = new String[] { "java.lang.String", "long" };
_methodName29 = "getFoosByUuidAndCompanyId";
_methodParameterTypes29 = new String[] {
"java.lang.String", "long", "int", "int",
"com.liferay.portal.kernel.util.OrderByComparator"
};
_methodName30 = "dynamicQueryCount";
_methodParameterTypes30 = new String[] {
"com.liferay.portal.kernel.dao.orm.DynamicQuery"
};
_methodName31 = "dynamicQueryCount";
_methodParameterTypes31 = new String[] {
"com.liferay.portal.kernel.dao.orm.DynamicQuery",
"com.liferay.portal.kernel.dao.orm.Projection"
};
_methodName32 = "addFoo";
_methodParameterTypes32 = new String[] {
"java.lang.String", "boolean", "int", "java.util.Date",
"java.lang.String",
"com.liferay.portal.kernel.service.ServiceContext"
};
_methodName33 = "deleteFoos";
_methodParameterTypes33 = new String[] { };
_methodName34 = "updateAsset";
_methodParameterTypes34 = new String[] {
"long", "com.liferay.sampleservicebuilder.model.Foo", "long[][]",
"java.lang.String[][]"
};
_methodName35 = "updateFoo";
_methodParameterTypes35 = new String[] {
"long", "java.lang.String", "boolean", "int", "java.util.Date",
"java.lang.String",
"com.liferay.portal.kernel.service.ServiceContext"
};
}
@Override
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
Object returnObj = null;
try {
returnObj = _invokableLocalService.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 (com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery)ClpSerializer.translateOutput(returnObj);
}
@Override
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName1,
_methodParameterTypes1, 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 (com.liferay.portal.kernel.dao.orm.DynamicQuery)ClpSerializer.translateOutput(returnObj);
}
@Override
public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName2,
_methodParameterTypes2,
new Object[] {
ClpSerializer.translateInput(portletDataContext)
});
}
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 (com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery)ClpSerializer.translateOutput(returnObj);
}
@Override
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName3,
_methodParameterTypes3, 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 (com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery)ClpSerializer.translateOutput(returnObj);
}
@Override
public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
com.liferay.portal.kernel.model.PersistedModel persistedModel)
throws com.liferay.portal.kernel.exception.PortalException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName4,
_methodParameterTypes4,
new Object[] { ClpSerializer.translateInput(persistedModel) });
}
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 RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (com.liferay.portal.kernel.model.PersistedModel)ClpSerializer.translateOutput(returnObj);
}
@Override
public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName5,
_methodParameterTypes5,
new Object[] { ClpSerializer.translateInput(primaryKeyObj) });
}
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 RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (com.liferay.portal.kernel.model.PersistedModel)ClpSerializer.translateOutput(returnObj);
}
@Override
public com.liferay.sampleservicebuilder.model.Foo addFoo(
com.liferay.sampleservicebuilder.model.Foo foo) {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName6,
_methodParameterTypes6,
new Object[] { ClpSerializer.translateInput(foo) });
}
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 (com.liferay.sampleservicebuilder.model.Foo)ClpSerializer.translateOutput(returnObj);
}
@Override
public com.liferay.sampleservicebuilder.model.Foo createFoo(long fooId) {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName7,
_methodParameterTypes7, new Object[] { fooId });
}
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 (com.liferay.sampleservicebuilder.model.Foo)ClpSerializer.translateOutput(returnObj);
}
@Override
public com.liferay.sampleservicebuilder.model.Foo deleteFoo(
com.liferay.sampleservicebuilder.model.Foo foo) {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName8,
_methodParameterTypes8,
new Object[] { ClpSerializer.translateInput(foo) });
}
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 (com.liferay.sampleservicebuilder.model.Foo)ClpSerializer.translateOutput(returnObj);
}
@Override
public com.liferay.sampleservicebuilder.model.Foo deleteFoo(long fooId)
throws com.liferay.portal.kernel.exception.PortalException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName9,
_methodParameterTypes9, new Object[] { fooId });
}
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 RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (com.liferay.sampleservicebuilder.model.Foo)ClpSerializer.translateOutput(returnObj);
}
@Override
public com.liferay.sampleservicebuilder.model.Foo fetchFoo(long fooId) {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName10,
_methodParameterTypes10, new Object[] { fooId });
}
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 (com.liferay.sampleservicebuilder.model.Foo)ClpSerializer.translateOutput(returnObj);
}
@Override
public com.liferay.sampleservicebuilder.model.Foo fetchFooByUuidAndGroupId(
java.lang.String uuid, long groupId) {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName11,
_methodParameterTypes11,
new Object[] { ClpSerializer.translateInput(uuid), groupId });
}
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 (com.liferay.sampleservicebuilder.model.Foo)ClpSerializer.translateOutput(returnObj);
}
@Override
public com.liferay.sampleservicebuilder.model.Foo getFoo(long fooId)
throws com.liferay.portal.kernel.exception.PortalException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName12,
_methodParameterTypes12, new Object[] { fooId });
}
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 RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (com.liferay.sampleservicebuilder.model.Foo)ClpSerializer.translateOutput(returnObj);
}
@Override
public com.liferay.sampleservicebuilder.model.Foo getFooByUuidAndGroupId(
java.lang.String uuid, long groupId)
throws com.liferay.portal.kernel.exception.PortalException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName13,
_methodParameterTypes13,
new Object[] { ClpSerializer.translateInput(uuid), groupId });
}
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 RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (com.liferay.sampleservicebuilder.model.Foo)ClpSerializer.translateOutput(returnObj);
}
@Override
public com.liferay.sampleservicebuilder.model.Foo updateFoo(
com.liferay.sampleservicebuilder.model.Foo foo) {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName14,
_methodParameterTypes14,
new Object[] { ClpSerializer.translateInput(foo) });
}
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 (com.liferay.sampleservicebuilder.model.Foo)ClpSerializer.translateOutput(returnObj);
}
@Override
public int getField1FoosCount(java.lang.String[] field1s) {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName15,
_methodParameterTypes15,
new Object[] { ClpSerializer.translateInput(field1s) });
}
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 ((Integer)returnObj).intValue();
}
@Override
public int getFoosCount() {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName16,
_methodParameterTypes16, 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 ((Integer)returnObj).intValue();
}
@Override
public java.lang.Object getLocalObject() throws java.lang.Exception {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName17,
_methodParameterTypes17, new Object[] { });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof java.lang.Exception) {
throw (java.lang.Exception)t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (java.lang.Object)ClpSerializer.translateOutput(returnObj);
}
@Override
public java.lang.Object invokeMethod(java.lang.String name,
java.lang.String[] parameterTypes, java.lang.Object[] arguments)
throws java.lang.Throwable {
throw new UnsupportedOperationException();
}
@Override
public java.lang.String getOSGiServiceIdentifier() {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName19,
_methodParameterTypes19, 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);
}
@Override
public <T> java.util.List<T> dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName20,
_methodParameterTypes20,
new Object[] { ClpSerializer.translateInput(dynamicQuery) });
}
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.util.List<T>)ClpSerializer.translateOutput(returnObj);
}
@Override
public <T> java.util.List<T> dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
int end) {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName21,
_methodParameterTypes21,
new Object[] {
ClpSerializer.translateInput(dynamicQuery),
start,
end
});
}
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.util.List<T>)ClpSerializer.translateOutput(returnObj);
}
@Override
public <T> java.util.List<T> dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName22,
_methodParameterTypes22,
new Object[] {
ClpSerializer.translateInput(dynamicQuery),
start,
end,
ClpSerializer.translateInput(orderByComparator)
});
}
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.util.List<T>)ClpSerializer.translateOutput(returnObj);
}
@Override
public java.util.List<com.liferay.sampleservicebuilder.model.Foo> getField1Foos(
java.lang.String[] field1s, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.sampleservicebuilder.model.Foo> obc) {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName23,
_methodParameterTypes23,
new Object[] {
ClpSerializer.translateInput(field1s),
start,
end,
ClpSerializer.translateInput(obc)
});
}
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.util.List<com.liferay.sampleservicebuilder.model.Foo>)ClpSerializer.translateOutput(returnObj);
}
@Override
public java.util.List<com.liferay.sampleservicebuilder.model.Foo> getFoos() {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName24,
_methodParameterTypes24, 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.util.List<com.liferay.sampleservicebuilder.model.Foo>)ClpSerializer.translateOutput(returnObj);
}
@Override
public java.util.List<com.liferay.sampleservicebuilder.model.Foo> getFoos(
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.sampleservicebuilder.model.Foo> obc) {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName25,
_methodParameterTypes25,
new Object[] { ClpSerializer.translateInput(obc) });
}
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.util.List<com.liferay.sampleservicebuilder.model.Foo>)ClpSerializer.translateOutput(returnObj);
}
@Override
public java.util.List<com.liferay.sampleservicebuilder.model.Foo> getFoos(
int start, int end) {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName26,
_methodParameterTypes26, new Object[] { start, end });
}
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.util.List<com.liferay.sampleservicebuilder.model.Foo>)ClpSerializer.translateOutput(returnObj);
}
@Override
public java.util.List<com.liferay.sampleservicebuilder.model.Foo> getFoos(
int start, int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.sampleservicebuilder.model.Foo> obc) {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName27,
_methodParameterTypes27,
new Object[] { start, end, ClpSerializer.translateInput(obc) });
}
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.util.List<com.liferay.sampleservicebuilder.model.Foo>)ClpSerializer.translateOutput(returnObj);
}
@Override
public java.util.List<com.liferay.sampleservicebuilder.model.Foo> getFoosByUuidAndCompanyId(
java.lang.String uuid, long companyId) {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName28,
_methodParameterTypes28,
new Object[] { ClpSerializer.translateInput(uuid), companyId });
}
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.util.List<com.liferay.sampleservicebuilder.model.Foo>)ClpSerializer.translateOutput(returnObj);
}
@Override
public java.util.List<com.liferay.sampleservicebuilder.model.Foo> getFoosByUuidAndCompanyId(
java.lang.String uuid, long companyId, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.sampleservicebuilder.model.Foo> orderByComparator) {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName29,
_methodParameterTypes29,
new Object[] {
ClpSerializer.translateInput(uuid),
companyId,
start,
end,
ClpSerializer.translateInput(orderByComparator)
});
}
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.util.List<com.liferay.sampleservicebuilder.model.Foo>)ClpSerializer.translateOutput(returnObj);
}
@Override
public long dynamicQueryCount(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName30,
_methodParameterTypes30,
new Object[] { ClpSerializer.translateInput(dynamicQuery) });
}
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 ((Long)returnObj).longValue();
}
@Override
public long dynamicQueryCount(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection) {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName31,
_methodParameterTypes31,
new Object[] {
ClpSerializer.translateInput(dynamicQuery),
ClpSerializer.translateInput(projection)
});
}
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 ((Long)returnObj).longValue();
}
@Override
public void addFoo(java.lang.String field1, boolean field2, int field3,
java.util.Date field4, java.lang.String field5,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException {
try {
_invokableLocalService.invokeMethod(_methodName32,
_methodParameterTypes32,
new Object[] {
ClpSerializer.translateInput(field1),
field2,
field3,
ClpSerializer.translateInput(field4),
ClpSerializer.translateInput(field5),
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 RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
}
@Override
public void deleteFoos() {
try {
_invokableLocalService.invokeMethod(_methodName33,
_methodParameterTypes33, 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");
}
}
}
@Override
public void updateAsset(long userId,
com.liferay.sampleservicebuilder.model.Foo foo,
long[] assetCategoryIds, java.lang.String[] assetTagNames)
throws com.liferay.portal.kernel.exception.PortalException {
try {
_invokableLocalService.invokeMethod(_methodName34,
_methodParameterTypes34,
new Object[] {
userId,
ClpSerializer.translateInput(foo),
ClpSerializer.translateInput(assetCategoryIds),
ClpSerializer.translateInput(assetTagNames)
});
}
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 RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
}
@Override
public void updateFoo(long fooId, java.lang.String field1, boolean field2,
int field3, java.util.Date field4, java.lang.String field5,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException {
try {
_invokableLocalService.invokeMethod(_methodName35,
_methodParameterTypes35,
new Object[] {
fooId,
ClpSerializer.translateInput(field1),
field2,
field3,
ClpSerializer.translateInput(field4),
ClpSerializer.translateInput(field5),
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 RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
}
private InvokableLocalService _invokableLocalService;
private String _methodName0;
private String[] _methodParameterTypes0;
private String _methodName1;
private String[] _methodParameterTypes1;
private String _methodName2;
private String[] _methodParameterTypes2;
private String _methodName3;
private String[] _methodParameterTypes3;
private String _methodName4;
private String[] _methodParameterTypes4;
private String _methodName5;
private String[] _methodParameterTypes5;
private String _methodName6;
private String[] _methodParameterTypes6;
private String _methodName7;
private String[] _methodParameterTypes7;
private String _methodName8;
private String[] _methodParameterTypes8;
private String _methodName9;
private String[] _methodParameterTypes9;
private String _methodName10;
private String[] _methodParameterTypes10;
private String _methodName11;
private String[] _methodParameterTypes11;
private String _methodName12;
private String[] _methodParameterTypes12;
private String _methodName13;
private String[] _methodParameterTypes13;
private String _methodName14;
private String[] _methodParameterTypes14;
private String _methodName15;
private String[] _methodParameterTypes15;
private String _methodName16;
private String[] _methodParameterTypes16;
private String _methodName17;
private String[] _methodParameterTypes17;
private String _methodName19;
private String[] _methodParameterTypes19;
private String _methodName20;
private String[] _methodParameterTypes20;
private String _methodName21;
private String[] _methodParameterTypes21;
private String _methodName22;
private String[] _methodParameterTypes22;
private String _methodName23;
private String[] _methodParameterTypes23;
private String _methodName24;
private String[] _methodParameterTypes24;
private String _methodName25;
private String[] _methodParameterTypes25;
private String _methodName26;
private String[] _methodParameterTypes26;
private String _methodName27;
private String[] _methodParameterTypes27;
private String _methodName28;
private String[] _methodParameterTypes28;
private String _methodName29;
private String[] _methodParameterTypes29;
private String _methodName30;
private String[] _methodParameterTypes30;
private String _methodName31;
private String[] _methodParameterTypes31;
private String _methodName32;
private String[] _methodParameterTypes32;
private String _methodName33;
private String[] _methodParameterTypes33;
private String _methodName34;
private String[] _methodParameterTypes34;
private String _methodName35;
private String[] _methodParameterTypes35;
}