Package com.warrantchange.model

Examples of com.warrantchange.model.WarrantUserUniqueIdClp


    return oldModel;
  }

  public static Object translateInputWarrantUserUniqueId(
    BaseModel<?> oldModel) {
    WarrantUserUniqueIdClp oldCplModel = (WarrantUserUniqueIdClp)oldModel;

    Thread currentThread = Thread.currentThread();

    ClassLoader contextClassLoader = currentThread.getContextClassLoader();

    try {
      currentThread.setContextClassLoader(_classLoader);

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

        Object newModel = newModelClass.newInstance();

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

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

        method0.invoke(newModel, value0);

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

        String value1 = oldCplModel.getUniqueId();

        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("setCreateDate",
            new Class[] { Date.class });

        Date value3 = oldCplModel.getCreateDate();

        method3.invoke(newModel, value3);

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

        Date value4 = oldCplModel.getModifiedDate();

        method4.invoke(newModel, value4);

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

        String value5 = oldCplModel.getSentEmail();

        method5.invoke(newModel, value5);

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

        Date value6 = oldCplModel.getSentDate();

        method6.invoke(newModel, value6);

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

        String value7 = oldCplModel.getSentOmicode();

        method7.invoke(newModel, value7);

        return newModel;
      }
View Full Code Here


    try {
      currentThread.setContextClassLoader(_classLoader);

      try {
        WarrantUserUniqueIdClp newModel = new WarrantUserUniqueIdClp();

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

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

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

        newModel.setId(value0);

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

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

        newModel.setUniqueId(value1);

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

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

        newModel.setUserId(value2);

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

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

        newModel.setCreateDate(value3);

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

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

        newModel.setModifiedDate(value4);

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

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

        newModel.setSentEmail(value5);

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

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

        newModel.setSentDate(value6);

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

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

        newModel.setSentOmicode(value7);

        return newModel;
      }
      catch (Exception e) {
        _log.error(e, e);
View Full Code Here

TOP

Related Classes of com.warrantchange.model.WarrantUserUniqueIdClp

Copyright © 2018 www.massapicom. 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.