--- /dev/null
+/**
+ * Copyright (c) 2000-2012 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.pentila.entSavoie.amis.service.base;
+
+import com.pentila.entSavoie.amis.service.RelationshipLocalServiceUtil;
+
+import java.util.Arrays;
+
+/**
+ * @author Brian Wing Shun Chan
+ */
+public class RelationshipLocalServiceClpInvoker {
+ public RelationshipLocalServiceClpInvoker() {
+ _methodName0 = "addRelationship";
+
+ _methodParameterTypes0 = new String[] {
+ "com.pentila.entSavoie.amis.model.Relationship"
+ };
+
+ _methodName1 = "createRelationship";
+
+ _methodParameterTypes1 = new String[] { "long" };
+
+ _methodName2 = "deleteRelationship";
+
+ _methodParameterTypes2 = new String[] { "long" };
+
+ _methodName3 = "deleteRelationship";
+
+ _methodParameterTypes3 = new String[] {
+ "com.pentila.entSavoie.amis.model.Relationship"
+ };
+
+ _methodName4 = "dynamicQuery";
+
+ _methodParameterTypes4 = new String[] { };
+
+ _methodName5 = "dynamicQuery";
+
+ _methodParameterTypes5 = new String[] {
+ "com.liferay.portal.kernel.dao.orm.DynamicQuery"
+ };
+
+ _methodName6 = "dynamicQuery";
+
+ _methodParameterTypes6 = new String[] {
+ "com.liferay.portal.kernel.dao.orm.DynamicQuery", "int", "int"
+ };
+
+ _methodName7 = "dynamicQuery";
+
+ _methodParameterTypes7 = new String[] {
+ "com.liferay.portal.kernel.dao.orm.DynamicQuery", "int", "int",
+ "com.liferay.portal.kernel.util.OrderByComparator"
+ };
+
+ _methodName8 = "dynamicQueryCount";
+
+ _methodParameterTypes8 = new String[] {
+ "com.liferay.portal.kernel.dao.orm.DynamicQuery"
+ };
+
+ _methodName9 = "fetchRelationship";
+
+ _methodParameterTypes9 = new String[] { "long" };
+
+ _methodName10 = "getRelationship";
+
+ _methodParameterTypes10 = new String[] { "long" };
+
+ _methodName11 = "getPersistedModel";
+
+ _methodParameterTypes11 = new String[] { "java.io.Serializable" };
+
+ _methodName12 = "getRelationships";
+
+ _methodParameterTypes12 = new String[] { "int", "int" };
+
+ _methodName13 = "getRelationshipsCount";
+
+ _methodParameterTypes13 = new String[] { };
+
+ _methodName14 = "updateRelationship";
+
+ _methodParameterTypes14 = new String[] {
+ "com.pentila.entSavoie.amis.model.Relationship"
+ };
+
+ _methodName15 = "updateRelationship";
+
+ _methodParameterTypes15 = new String[] {
+ "com.pentila.entSavoie.amis.model.Relationship", "boolean"
+ };
+
+ _methodName40 = "getBeanIdentifier";
+
+ _methodParameterTypes40 = new String[] { };
+
+ _methodName41 = "setBeanIdentifier";
+
+ _methodParameterTypes41 = new String[] { "java.lang.String" };
+
+ _methodName46 = "getRelationshipByUserIdFriendIdStateId";
+
+ _methodParameterTypes46 = new String[] { "long", "long", "int" };
+
+ _methodName47 = "getRelationshipByUserIdStateId";
+
+ _methodParameterTypes47 = new String[] { "long", "int", "int", "int" };
+
+ _methodName48 = "getRelationshipByUserIdFriendFolderIdStateId";
+
+ _methodParameterTypes48 = new String[] {
+ "long", "long", "int", "int", "int"
+ };
+
+ _methodName49 = "getRelationshipByUserId";
+
+ _methodParameterTypes49 = new String[] { "long", "int", "int" };
+
+ _methodName50 = "addRelationship";
+
+ _methodParameterTypes50 = new String[] { };
+
+ _methodName51 = "createRelationship";
+
+ _methodParameterTypes51 = new String[] {
+ "long", "long", "java.lang.String", "boolean", "boolean"
+ };
+
+ _methodName52 = "createRelationship";
+
+ _methodParameterTypes52 = new String[] {
+ "long", "long", "java.lang.String", "boolean", "boolean", "long"
+ };
+
+ _methodName54 = "acceptRelationship";
+
+ _methodParameterTypes54 = new String[] { "long" };
+
+ _methodName55 = "deleteByUserIdFriendIdStateId";
+
+ _methodParameterTypes55 = new String[] { "long", "long", "int" };
+
+ _methodName56 = "deleteByUserId";
+
+ _methodParameterTypes56 = new String[] { "long" };
+
+ _methodName57 = "delete";
+
+ _methodParameterTypes57 = new String[] {
+ "com.pentila.entSavoie.amis.model.Relationship"
+ };
+
+ _methodName58 = "countCommonRelationShip";
+
+ _methodParameterTypes58 = new String[] { "long", "long" };
+ }
+
+ public Object invokeMethod(String name, String[] parameterTypes,
+ Object[] arguments) throws Throwable {
+ if (_methodName0.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes0, parameterTypes)) {
+ return RelationshipLocalServiceUtil.addRelationship((com.pentila.entSavoie.amis.model.Relationship)arguments[0]);
+ }
+
+ if (_methodName1.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes1, parameterTypes)) {
+ return RelationshipLocalServiceUtil.createRelationship(((Long)arguments[0]).longValue());
+ }
+
+ if (_methodName2.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes2, parameterTypes)) {
+ return RelationshipLocalServiceUtil.deleteRelationship(((Long)arguments[0]).longValue());
+ }
+
+ if (_methodName3.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes3, parameterTypes)) {
+ return RelationshipLocalServiceUtil.deleteRelationship((com.pentila.entSavoie.amis.model.Relationship)arguments[0]);
+ }
+
+ if (_methodName4.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes4, parameterTypes)) {
+ return RelationshipLocalServiceUtil.dynamicQuery();
+ }
+
+ if (_methodName5.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes5, parameterTypes)) {
+ return RelationshipLocalServiceUtil.dynamicQuery((com.liferay.portal.kernel.dao.orm.DynamicQuery)arguments[0]);
+ }
+
+ if (_methodName6.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes6, parameterTypes)) {
+ return RelationshipLocalServiceUtil.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 RelationshipLocalServiceUtil.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 RelationshipLocalServiceUtil.dynamicQueryCount((com.liferay.portal.kernel.dao.orm.DynamicQuery)arguments[0]);
+ }
+
+ if (_methodName9.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes9, parameterTypes)) {
+ return RelationshipLocalServiceUtil.fetchRelationship(((Long)arguments[0]).longValue());
+ }
+
+ if (_methodName10.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes10, parameterTypes)) {
+ return RelationshipLocalServiceUtil.getRelationship(((Long)arguments[0]).longValue());
+ }
+
+ if (_methodName11.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes11, parameterTypes)) {
+ return RelationshipLocalServiceUtil.getPersistedModel((java.io.Serializable)arguments[0]);
+ }
+
+ if (_methodName12.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes12, parameterTypes)) {
+ return RelationshipLocalServiceUtil.getRelationships(((Integer)arguments[0]).intValue(),
+ ((Integer)arguments[1]).intValue());
+ }
+
+ if (_methodName13.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes13, parameterTypes)) {
+ return RelationshipLocalServiceUtil.getRelationshipsCount();
+ }
+
+ if (_methodName14.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes14, parameterTypes)) {
+ return RelationshipLocalServiceUtil.updateRelationship((com.pentila.entSavoie.amis.model.Relationship)arguments[0]);
+ }
+
+ if (_methodName15.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes15, parameterTypes)) {
+ return RelationshipLocalServiceUtil.updateRelationship((com.pentila.entSavoie.amis.model.Relationship)arguments[0],
+ ((Boolean)arguments[1]).booleanValue());
+ }
+
+ if (_methodName40.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes40, parameterTypes)) {
+ return RelationshipLocalServiceUtil.getBeanIdentifier();
+ }
+
+ if (_methodName41.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes41, parameterTypes)) {
+ RelationshipLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]);
+ }
+
+ if (_methodName46.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes46, parameterTypes)) {
+ return RelationshipLocalServiceUtil.getRelationshipByUserIdFriendIdStateId(((Long)arguments[0]).longValue(),
+ ((Long)arguments[1]).longValue(),
+ ((Integer)arguments[2]).intValue());
+ }
+
+ if (_methodName47.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes47, parameterTypes)) {
+ return RelationshipLocalServiceUtil.getRelationshipByUserIdStateId(((Long)arguments[0]).longValue(),
+ ((Integer)arguments[1]).intValue(),
+ ((Integer)arguments[2]).intValue(),
+ ((Integer)arguments[3]).intValue());
+ }
+
+ if (_methodName48.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes48, parameterTypes)) {
+ return RelationshipLocalServiceUtil.getRelationshipByUserIdFriendFolderIdStateId(((Long)arguments[0]).longValue(),
+ ((Long)arguments[1]).longValue(),
+ ((Integer)arguments[2]).intValue(),
+ ((Integer)arguments[3]).intValue(),
+ ((Integer)arguments[4]).intValue());
+ }
+
+ if (_methodName49.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes49, parameterTypes)) {
+ return RelationshipLocalServiceUtil.getRelationshipByUserId(((Long)arguments[0]).longValue(),
+ ((Integer)arguments[1]).intValue(),
+ ((Integer)arguments[2]).intValue());
+ }
+
+ if (_methodName50.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes50, parameterTypes)) {
+ return RelationshipLocalServiceUtil.addRelationship();
+ }
+
+ if (_methodName51.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes51, parameterTypes)) {
+ return RelationshipLocalServiceUtil.createRelationship(((Long)arguments[0]).longValue(),
+ ((Long)arguments[1]).longValue(),
+ (java.lang.String)arguments[2],
+ ((Boolean)arguments[3]).booleanValue(),
+ ((Boolean)arguments[4]).booleanValue());
+ }
+
+ if (_methodName52.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes52, parameterTypes)) {
+ return RelationshipLocalServiceUtil.createRelationship(((Long)arguments[0]).longValue(),
+ ((Long)arguments[1]).longValue(),
+ (java.lang.String)arguments[2],
+ ((Boolean)arguments[3]).booleanValue(),
+ ((Boolean)arguments[4]).booleanValue(),
+ ((Long)arguments[5]).longValue());
+ }
+
+ if (_methodName54.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes54, parameterTypes)) {
+ RelationshipLocalServiceUtil.acceptRelationship(((Long)arguments[0]).longValue());
+ }
+
+ if (_methodName55.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes55, parameterTypes)) {
+ RelationshipLocalServiceUtil.deleteByUserIdFriendIdStateId(((Long)arguments[0]).longValue(),
+ ((Long)arguments[1]).longValue(),
+ ((Integer)arguments[2]).intValue());
+ }
+
+ if (_methodName56.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes56, parameterTypes)) {
+ RelationshipLocalServiceUtil.deleteByUserId(((Long)arguments[0]).longValue());
+ }
+
+ if (_methodName57.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes57, parameterTypes)) {
+ RelationshipLocalServiceUtil.delete((com.pentila.entSavoie.amis.model.Relationship)arguments[0]);
+ }
+
+ if (_methodName58.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes58, parameterTypes)) {
+ return RelationshipLocalServiceUtil.countCommonRelationShip(((Long)arguments[0]).longValue(),
+ ((Long)arguments[1]).longValue());
+ }
+
+ throw new UnsupportedOperationException();
+ }
+
+ 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 _methodName40;
+ private String[] _methodParameterTypes40;
+ private String _methodName41;
+ private String[] _methodParameterTypes41;
+ private String _methodName46;
+ private String[] _methodParameterTypes46;
+ private String _methodName47;
+ private String[] _methodParameterTypes47;
+ private String _methodName48;
+ private String[] _methodParameterTypes48;
+ private String _methodName49;
+ private String[] _methodParameterTypes49;
+ private String _methodName50;
+ private String[] _methodParameterTypes50;
+ private String _methodName51;
+ private String[] _methodParameterTypes51;
+ private String _methodName52;
+ private String[] _methodParameterTypes52;
+ private String _methodName54;
+ private String[] _methodParameterTypes54;
+ private String _methodName55;
+ private String[] _methodParameterTypes55;
+ private String _methodName56;
+ private String[] _methodParameterTypes56;
+ private String _methodName57;
+ private String[] _methodParameterTypes57;
+ private String _methodName58;
+ private String[] _methodParameterTypes58;
+}
\ No newline at end of file