Examples of fromObject()


Examples of com.exedosoft.plat.bo.BOInstance.fromObject()

    dmm.setL10n("b");
    dmm.setParentMenu(parentMenu);
    dmm.setOrderNum(5);
   
    BOInstance bi = new BOInstance();
    bi.fromObject(dmm);
   
    System.out.println(bi);
   

    // CacheFactory.getCacheData().cacheAllConfigData();
View Full Code Here

Examples of com.exedosoft.plat.bo.BOInstance.fromObject()

    BOInstance user = new BOInstance();
    // /设置公司名称
    user.putValue("company", tenant.getValue("l10n"));

    if (ma != null) {
      user.fromObject(ma);
      DOService findUserService = DOService
          .getService("do_org_user_browse");
      List corrUsers = findUserService.invokeSelect(ma.getObjUid());
      BOInstance employee = null;
      try {
View Full Code Here

Examples of com.exedosoft.plat.bo.BOInstance.fromObject()

    MultiAccount ma = findAccount(userName,pwd);
    if(ma==null){
      return null;
    }
    BOInstance bi = new BOInstance();
    bi.fromObject(ma);
    return bi;
  }
 
  public static MultiAccount findAccount(String userName,String pwd){
   
View Full Code Here

Examples of com.foundationdb.server.types.TClass.fromObject()

            // type specified in the signature.
            Value value = new Value(type);
            TExecutionContext executionContext =
                new TExecutionContext(null, null, type,
                                      context, null, null, null);
            tclass.fromObject(executionContext, source, value);
            return value;
        }

        @Override
        protected TInstance getType(int index) {
View Full Code Here

Examples of com.foundationdb.server.types.TClass.fromObject()

                        context,
                        ErrorHandlingMode.WARN,
                        ErrorHandlingMode.WARN,
                        ErrorHandlingMode.WARN
                );
                tClass.fromObject(executionContext, inSource, value);
            }
        }

        @Override
        public void with(Row row) {
View Full Code Here

Examples of org.apache.struts2.rest.handler.ContentTypeHandler.fromObject()

            String extCode = resultCode + "." + handler.getExtension();
            if (actionConfig.getResults().get(extCode) != null) {
                resultCode = extCode;
            } else {
                StringWriter writer = new StringWriter();
                resultCode = handler.fromObject(target, resultCode, writer);
                String text = writer.toString();
                if (text.length() > 0) {
                    byte[] data = text.getBytes("UTF-8");
                    res.setContentLength(data.length);
                    res.setContentType(handler.getContentType());
View Full Code Here

Examples of org.apache.struts2.rest.handler.ContentTypeHandler.fromObject()

            String extCode = resultCode + "." + handler.getExtension();
            if (actionConfig.getResults().get(extCode) != null) {
                resultCode = extCode;
            } else {
                StringWriter writer = new StringWriter();
                resultCode = handler.fromObject(target, resultCode, writer);
                String text = writer.toString();
                if (text.length() > 0) {
                    byte[] data = text.getBytes("UTF-8");
                    res.setContentLength(data.length);
                    res.setContentType(handler.getContentType());
View Full Code Here

Examples of org.apache.struts2.rest.handler.ContentTypeHandler.fromObject()

            String extCode = resultCode+"-"+handler.getExtension();
            if (actionConfig.getResults().get(extCode) != null) {
                resultCode = extCode;
            } else {
                StringWriter writer = new StringWriter();
                resultCode = handler.fromObject(target, resultCode, writer);
                String text = writer.toString();
                if (text.length() > 0) {
                    byte[] data = text.getBytes("UTF-8");
                    res.setContentLength(data.length);
                    res.setContentType(handler.getContentType());
View Full Code Here

Examples of org.apache.struts2.rest.handler.ContentTypeHandler.fromObject()

            String extCode = resultCode+"-"+handler.getExtension();
            if (actionConfig.getResults().get(extCode) != null) {
                resultCode = extCode;
            } else {
                StringWriter writer = new StringWriter();
                resultCode = handler.fromObject(target, resultCode, writer);
                String text = writer.toString();
                if (text.length() > 0) {
                    byte[] data = text.getBytes("UTF-8");
                    res.setContentLength(data.length);
                    res.setContentType(handler.getContentType());
View Full Code Here

Examples of org.apache.struts2.rest.handler.ContentTypeHandler.fromObject()

            String extCode = resultCode+"-"+handler.getExtension();
            if (actionConfig.getResults().get(extCode) != null) {
                resultCode = extCode;
            } else {
                StringWriter writer = new StringWriter();
                resultCode = handler.fromObject(target, resultCode, writer);
                String text = writer.toString();
                if (text.length() > 0) {
                    byte[] data = text.getBytes("UTF-8");
                    res.setContentLength(data.length);
                    res.setContentType(handler.getContentType());
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.