Examples of WallEntryClp


Examples of com.liferay.socialnetworking.model.WallEntryClp

        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.WallEntryClp

      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.