Examples of MeetupsEntryClp


Examples of com.liferay.socialnetworking.model.MeetupsEntryClp

    Class<?> oldModelClass = oldModel.getClass();

    String oldModelClassName = oldModelClass.getName();

    if (oldModelClassName.equals(MeetupsEntryClp.class.getName())) {
      MeetupsEntryClp oldCplModel = (MeetupsEntryClp)oldModel;

      ClassLoader contextClassLoader = Thread.currentThread()
                           .getContextClassLoader();

      try {
        Thread.currentThread().setContextClassLoader(_classLoader);

        try {
          Class<?> newModelClass = Class.forName("com.liferay.socialnetworking.model.impl.MeetupsEntryImpl",
              true, _classLoader);

          Object newModel = newModelClass.newInstance();

          Method method0 = newModelClass.getMethod("setMeetupsEntryId",
              new Class[] { Long.TYPE });

          Long value0 = new Long(oldCplModel.getMeetupsEntryId());

          method0.invoke(newModel, value0);

          Method method1 = newModelClass.getMethod("setCompanyId",
              new Class[] { Long.TYPE });

          Long value1 = new Long(oldCplModel.getCompanyId());

          method1.invoke(newModel, value1);

          Method method2 = newModelClass.getMethod("setUserId",
              new Class[] { Long.TYPE });

          Long value2 = new Long(oldCplModel.getUserId());

          method2.invoke(newModel, value2);

          Method method3 = newModelClass.getMethod("setUserName",
              new Class[] { String.class });

          String value3 = oldCplModel.getUserName();

          method3.invoke(newModel, value3);

          Method method4 = newModelClass.getMethod("setCreateDate",
              new Class[] { Date.class });

          Date value4 = oldCplModel.getCreateDate();

          method4.invoke(newModel, value4);

          Method method5 = newModelClass.getMethod("setModifiedDate",
              new Class[] { Date.class });

          Date value5 = oldCplModel.getModifiedDate();

          method5.invoke(newModel, value5);

          Method method6 = newModelClass.getMethod("setTitle",
              new Class[] { String.class });

          String value6 = oldCplModel.getTitle();

          method6.invoke(newModel, value6);

          Method method7 = newModelClass.getMethod("setDescription",
              new Class[] { String.class });

          String value7 = oldCplModel.getDescription();

          method7.invoke(newModel, value7);

          Method method8 = newModelClass.getMethod("setStartDate",
              new Class[] { Date.class });

          Date value8 = oldCplModel.getStartDate();

          method8.invoke(newModel, value8);

          Method method9 = newModelClass.getMethod("setEndDate",
              new Class[] { Date.class });

          Date value9 = oldCplModel.getEndDate();

          method9.invoke(newModel, value9);

          Method method10 = newModelClass.getMethod("setTotalAttendees",
              new Class[] { Integer.TYPE });

          Integer value10 = new Integer(oldCplModel.getTotalAttendees());

          method10.invoke(newModel, value10);

          Method method11 = newModelClass.getMethod("setMaxAttendees",
              new Class[] { Integer.TYPE });

          Integer value11 = new Integer(oldCplModel.getMaxAttendees());

          method11.invoke(newModel, value11);

          Method method12 = newModelClass.getMethod("setPrice",
              new Class[] { Double.TYPE });

          Double value12 = new Double(oldCplModel.getPrice());

          method12.invoke(newModel, value12);

          Method method13 = newModelClass.getMethod("setThumbnailId",
              new Class[] { Long.TYPE });

          Long value13 = new Long(oldCplModel.getThumbnailId());

          method13.invoke(newModel, value13);

          return newModel;
        }
        catch (Exception e) {
          _log.error(e, e);
        }
      }
      finally {
        Thread.currentThread().setContextClassLoader(contextClassLoader);
      }
    }

    if (oldModelClassName.equals(MeetupsRegistrationClp.class.getName())) {
      MeetupsRegistrationClp oldCplModel = (MeetupsRegistrationClp)oldModel;

      ClassLoader contextClassLoader = Thread.currentThread()
                           .getContextClassLoader();

      try {
        Thread.currentThread().setContextClassLoader(_classLoader);

        try {
          Class<?> newModelClass = Class.forName("com.liferay.socialnetworking.model.impl.MeetupsRegistrationImpl",
              true, _classLoader);

          Object newModel = newModelClass.newInstance();

          Method method0 = newModelClass.getMethod("setMeetupsRegistrationId",
              new Class[] { Long.TYPE });

          Long value0 = new Long(oldCplModel.getMeetupsRegistrationId());

          method0.invoke(newModel, value0);

          Method method1 = newModelClass.getMethod("setCompanyId",
              new Class[] { Long.TYPE });

          Long value1 = new Long(oldCplModel.getCompanyId());

          method1.invoke(newModel, value1);

          Method method2 = newModelClass.getMethod("setUserId",
              new Class[] { Long.TYPE });

          Long value2 = new Long(oldCplModel.getUserId());

          method2.invoke(newModel, value2);

          Method method3 = newModelClass.getMethod("setUserName",
              new Class[] { String.class });

          String value3 = oldCplModel.getUserName();

          method3.invoke(newModel, value3);

          Method method4 = newModelClass.getMethod("setCreateDate",
              new Class[] { Date.class });

          Date value4 = oldCplModel.getCreateDate();

          method4.invoke(newModel, value4);

          Method method5 = newModelClass.getMethod("setModifiedDate",
              new Class[] { Date.class });

          Date value5 = oldCplModel.getModifiedDate();

          method5.invoke(newModel, value5);

          Method method6 = newModelClass.getMethod("setMeetupsEntryId",
              new Class[] { Long.TYPE });

          Long value6 = new Long(oldCplModel.getMeetupsEntryId());

          method6.invoke(newModel, value6);

          Method method7 = newModelClass.getMethod("setStatus",
              new Class[] { Integer.TYPE });

          Integer value7 = new Integer(oldCplModel.getStatus());

          method7.invoke(newModel, value7);

          Method method8 = newModelClass.getMethod("setComments",
              new Class[] { String.class });

          String value8 = oldCplModel.getComments();

          method8.invoke(newModel, value8);

          return newModel;
        }
        catch (Exception e) {
          _log.error(e, e);
        }
      }
      finally {
        Thread.currentThread().setContextClassLoader(contextClassLoader);
      }
    }

    if (oldModelClassName.equals(WallEntryClp.class.getName())) {
      WallEntryClp oldCplModel = (WallEntryClp)oldModel;

      ClassLoader contextClassLoader = Thread.currentThread()
                           .getContextClassLoader();

      try {
        Thread.currentThread().setContextClassLoader(_classLoader);

        try {
          Class<?> newModelClass = Class.forName("com.liferay.socialnetworking.model.impl.WallEntryImpl",
              true, _classLoader);

          Object newModel = newModelClass.newInstance();

          Method method0 = newModelClass.getMethod("setWallEntryId",
              new Class[] { Long.TYPE });

          Long value0 = new Long(oldCplModel.getWallEntryId());

          method0.invoke(newModel, value0);

          Method method1 = newModelClass.getMethod("setGroupId",
              new Class[] { Long.TYPE });

          Long value1 = new Long(oldCplModel.getGroupId());

          method1.invoke(newModel, value1);

          Method method2 = newModelClass.getMethod("setCompanyId",
              new Class[] { Long.TYPE });

          Long value2 = new Long(oldCplModel.getCompanyId());

          method2.invoke(newModel, value2);

          Method method3 = newModelClass.getMethod("setUserId",
              new Class[] { Long.TYPE });

          Long value3 = new Long(oldCplModel.getUserId());

          method3.invoke(newModel, value3);

          Method method4 = newModelClass.getMethod("setUserName",
              new Class[] { String.class });

          String value4 = oldCplModel.getUserName();

          method4.invoke(newModel, value4);

          Method method5 = newModelClass.getMethod("setCreateDate",
              new Class[] { Date.class });

          Date value5 = oldCplModel.getCreateDate();

          method5.invoke(newModel, value5);

          Method method6 = newModelClass.getMethod("setModifiedDate",
              new Class[] { Date.class });

          Date value6 = oldCplModel.getModifiedDate();

          method6.invoke(newModel, value6);

          Method method7 = newModelClass.getMethod("setComments",
              new Class[] { String.class });

          String value7 = oldCplModel.getComments();

          method7.invoke(newModel, value7);

          Method method8 = newModelClass.getMethod("setPostFromIpAddress",
              new Class[] { String.class });

          String value8 = oldCplModel.getPostFromIpAddress();

          method8.invoke(newModel, value8);

          return newModel;
        }
View Full Code Here

Examples of com.liferay.socialnetworking.model.MeetupsEntryClp

      try {
        Thread.currentThread().setContextClassLoader(_classLoader);

        try {
          MeetupsEntryClp newModel = new MeetupsEntryClp();

          Method method0 = oldModelClass.getMethod(
              "getMeetupsEntryId");

          Long value0 = (Long)method0.invoke(oldModel, (Object[])null);

          newModel.setMeetupsEntryId(value0);

          Method method1 = oldModelClass.getMethod("getCompanyId");

          Long value1 = (Long)method1.invoke(oldModel, (Object[])null);

          newModel.setCompanyId(value1);

          Method method2 = oldModelClass.getMethod("getUserId");

          Long value2 = (Long)method2.invoke(oldModel, (Object[])null);

          newModel.setUserId(value2);

          Method method3 = oldModelClass.getMethod("getUserName");

          String value3 = (String)method3.invoke(oldModel,
              (Object[])null);

          newModel.setUserName(value3);

          Method method4 = oldModelClass.getMethod("getCreateDate");

          Date value4 = (Date)method4.invoke(oldModel, (Object[])null);

          newModel.setCreateDate(value4);

          Method method5 = oldModelClass.getMethod("getModifiedDate");

          Date value5 = (Date)method5.invoke(oldModel, (Object[])null);

          newModel.setModifiedDate(value5);

          Method method6 = oldModelClass.getMethod("getTitle");

          String value6 = (String)method6.invoke(oldModel,
              (Object[])null);

          newModel.setTitle(value6);

          Method method7 = oldModelClass.getMethod("getDescription");

          String value7 = (String)method7.invoke(oldModel,
              (Object[])null);

          newModel.setDescription(value7);

          Method method8 = oldModelClass.getMethod("getStartDate");

          Date value8 = (Date)method8.invoke(oldModel, (Object[])null);

          newModel.setStartDate(value8);

          Method method9 = oldModelClass.getMethod("getEndDate");

          Date value9 = (Date)method9.invoke(oldModel, (Object[])null);

          newModel.setEndDate(value9);

          Method method10 = oldModelClass.getMethod(
              "getTotalAttendees");

          Integer value10 = (Integer)method10.invoke(oldModel,
              (Object[])null);

          newModel.setTotalAttendees(value10);

          Method method11 = oldModelClass.getMethod("getMaxAttendees");

          Integer value11 = (Integer)method11.invoke(oldModel,
              (Object[])null);

          newModel.setMaxAttendees(value11);

          Method method12 = oldModelClass.getMethod("getPrice");

          Double value12 = (Double)method12.invoke(oldModel,
              (Object[])null);

          newModel.setPrice(value12);

          Method method13 = oldModelClass.getMethod("getThumbnailId");

          Long value13 = (Long)method13.invoke(oldModel,
              (Object[])null);

          newModel.setThumbnailId(value13);

          return newModel;
        }
        catch (Exception e) {
          _log.error(e, e);
        }
      }
      finally {
        Thread.currentThread().setContextClassLoader(contextClassLoader);
      }
    }

    if (oldModelClassName.equals(
          "com.liferay.socialnetworking.model.impl.MeetupsRegistrationImpl")) {
      ClassLoader contextClassLoader = Thread.currentThread()
                           .getContextClassLoader();

      try {
        Thread.currentThread().setContextClassLoader(_classLoader);

        try {
          MeetupsRegistrationClp newModel = new MeetupsRegistrationClp();

          Method method0 = oldModelClass.getMethod(
              "getMeetupsRegistrationId");

          Long value0 = (Long)method0.invoke(oldModel, (Object[])null);

          newModel.setMeetupsRegistrationId(value0);

          Method method1 = oldModelClass.getMethod("getCompanyId");

          Long value1 = (Long)method1.invoke(oldModel, (Object[])null);

          newModel.setCompanyId(value1);

          Method method2 = oldModelClass.getMethod("getUserId");

          Long value2 = (Long)method2.invoke(oldModel, (Object[])null);

          newModel.setUserId(value2);

          Method method3 = oldModelClass.getMethod("getUserName");

          String value3 = (String)method3.invoke(oldModel,
              (Object[])null);

          newModel.setUserName(value3);

          Method method4 = oldModelClass.getMethod("getCreateDate");

          Date value4 = (Date)method4.invoke(oldModel, (Object[])null);

          newModel.setCreateDate(value4);

          Method method5 = oldModelClass.getMethod("getModifiedDate");

          Date value5 = (Date)method5.invoke(oldModel, (Object[])null);

          newModel.setModifiedDate(value5);

          Method method6 = oldModelClass.getMethod(
              "getMeetupsEntryId");

          Long value6 = (Long)method6.invoke(oldModel, (Object[])null);

          newModel.setMeetupsEntryId(value6);

          Method method7 = oldModelClass.getMethod("getStatus");

          Integer value7 = (Integer)method7.invoke(oldModel,
              (Object[])null);

          newModel.setStatus(value7);

          Method method8 = oldModelClass.getMethod("getComments");

          String value8 = (String)method8.invoke(oldModel,
              (Object[])null);

          newModel.setComments(value8);

          return newModel;
        }
        catch (Exception e) {
          _log.error(e, e);
        }
      }
      finally {
        Thread.currentThread().setContextClassLoader(contextClassLoader);
      }
    }

    if (oldModelClassName.equals(
          "com.liferay.socialnetworking.model.impl.WallEntryImpl")) {
      ClassLoader contextClassLoader = Thread.currentThread()
                           .getContextClassLoader();

      try {
        Thread.currentThread().setContextClassLoader(_classLoader);

        try {
          WallEntryClp newModel = new WallEntryClp();

          Method method0 = oldModelClass.getMethod("getWallEntryId");

          Long value0 = (Long)method0.invoke(oldModel, (Object[])null);

          newModel.setWallEntryId(value0);

          Method method1 = oldModelClass.getMethod("getGroupId");

          Long value1 = (Long)method1.invoke(oldModel, (Object[])null);

          newModel.setGroupId(value1);

          Method method2 = oldModelClass.getMethod("getCompanyId");

          Long value2 = (Long)method2.invoke(oldModel, (Object[])null);

          newModel.setCompanyId(value2);

          Method method3 = oldModelClass.getMethod("getUserId");

          Long value3 = (Long)method3.invoke(oldModel, (Object[])null);

          newModel.setUserId(value3);

          Method method4 = oldModelClass.getMethod("getUserName");

          String value4 = (String)method4.invoke(oldModel,
              (Object[])null);

          newModel.setUserName(value4);

          Method method5 = oldModelClass.getMethod("getCreateDate");

          Date value5 = (Date)method5.invoke(oldModel, (Object[])null);

          newModel.setCreateDate(value5);

          Method method6 = oldModelClass.getMethod("getModifiedDate");

          Date value6 = (Date)method6.invoke(oldModel, (Object[])null);

          newModel.setModifiedDate(value6);

          Method method7 = oldModelClass.getMethod("getComments");

          String value7 = (String)method7.invoke(oldModel,
              (Object[])null);

          newModel.setComments(value7);

          Method method8 = oldModelClass.getMethod(
              "getPostFromIpAddress");

          String value8 = (String)method8.invoke(oldModel,
              (Object[])null);

          newModel.setPostFromIpAddress(value8);

          return newModel;
        }
        catch (Exception e) {
          _log.error(e, e);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.