Examples of OmniDTO


Examples of com.scooterframework.orm.sqldataexpress.object.OmniDTO

                DataProcessor dp =
                    DataProcessorFactory.getInstance().getDataProcessor(
                            udc,
                            DataProcessorTypes.NAMED_SQL_STATEMENT_PROCESSOR,
                            key);
                OmniDTO returnTO = dp.execute(udc, inputs);
                Object result = returnTO.getTableData(key).getFirstObject();
               
                log.debug("autoFill: result for key " + key + ": " + result);
                inputs.put("@"+key, result);
            }
        }
View Full Code Here

Examples of com.scooterframework.orm.sqldataexpress.object.OmniDTO

                if (conditionSql != null && !"".equals(conditionSql)) {
                    findSQL += " WHERE " + conditionSql;
                }
            }
           
            OmniDTO returnTO =
                getSqlService().execute(inputs, DataProcessorTypes.DIRECT_SQL_STATEMENT_PROCESSOR, findSQL);
           
            if ( returnTO != null ) {
                TableData rt = returnTO.getTableData(findSQL);
                if (rt != null) {
                    returnObj = rt.getFirstObject();
                }
            }
        }
View Full Code Here

Examples of com.scooterframework.orm.sqldataexpress.object.OmniDTO

      ar = (ActiveRecord) modelCacheClient.getCache().get(cacheKey);
      if (ar != null) return ar;
    }

    try {
      OmniDTO returnTO = getSqlService().execute(inputs,
          DataProcessorTypes.DIRECT_SQL_STATEMENT_PROCESSOR, findSQL);

      RowData tmpRd = returnTO.getTableData(findSQL).getRow(0);
      if (tmpRd != null) {
        ar = (ActiveRecord) createNewInstance();
        ar.populateDataFromDatabase(tmpRd);
       
        if (modelCacheClient.useCache("findById")) {
View Full Code Here

Examples of com.scooterframework.orm.sqldataexpress.object.OmniDTO

      list = (List<ActiveRecord>) modelCacheClient.getCache().get(cacheKey);
      if (list != null) return list;
    }

    try {
      OmniDTO returnTO = getSqlService().execute(inputs,
          DataProcessorTypes.DIRECT_SQL_STATEMENT_PROCESSOR, sql);

      if (returnTO != null) {
        TableData rt = returnTO.getTableData(sql);
        if (rt != null) {
          int records = rt.getTableSize();
          if (records > 0) {
            list = new ArrayList<ActiveRecord>();
            for (int i = 0; i < records; i++) {
View Full Code Here

Examples of com.scooterframework.orm.sqldataexpress.object.OmniDTO

      list = (List<ActiveRecord>) modelCacheClient.getCache().get(cacheKey);
      if (list != null) return list;
    }

    try {
      OmniDTO returnTO = getSqlService().execute(inputs,
          DataProcessorTypes.NAMED_SQL_STATEMENT_PROCESSOR, sqlKey);

      if (returnTO != null) {
        TableData rt = returnTO.getTableData(sqlKey);
        if (rt != null) {
          int records = rt.getTableSize();
          if (records > 0) {
            list = new ArrayList<ActiveRecord>();
            for (int i = 0; i < records; i++) {
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.