Package javax.faces.model

Examples of javax.faces.model.ResultSetDataModel$DataMap


        {
            return new ArrayDataModel((Object[]) value);
        }
        else if (value instanceof ResultSet)
        {
            return new ResultSetDataModel((ResultSet) value);
        }
        else if (value instanceof Result)
        {
            return new ResultDataModel((Result) value);
        }
View Full Code Here


        {
            return new ArrayDataModel((Object[]) value);
        }
        else if (value instanceof ResultSet)
        {
            return new ResultSetDataModel((ResultSet) value);
        }
        else if (value instanceof Result)
        {
            return new ResultDataModel((Result) value);
        }
View Full Code Here

        {
            return new ArrayDataModel((Object[]) value);
        }
        else if (value instanceof ResultSet)
        {
            return new ResultSetDataModel((ResultSet) value);
        }
        else
        {
            return new ScalarDataModel(value);
        }
View Full Code Here

        {
            return new ArrayDataModel((Object[]) value);
        }
        else if (value instanceof ResultSet)
        {
            return new ResultSetDataModel((ResultSet) value);
        }
        else if (value instanceof Result)
        {
            return new ResultDataModel((Result) value);
        }
View Full Code Here

      } else if (current instanceof List) {
          model = new SequenceDataModel(new ListDataModel((List<?>) current));
      } else if (Object[].class.isAssignableFrom(current.getClass())) {
          model = new SequenceDataModel(new ArrayDataModel((Object[]) current));
      } else if (current instanceof ResultSet) {
          model = new SequenceDataModel(new ResultSetDataModel((ResultSet) current));
      } else if (current instanceof Result) {
          model = new SequenceDataModel(new ResultDataModel((Result) current));
      } else {
          model = new SequenceDataModel(new ScalarDataModel(current));
      }
View Full Code Here

                //noinspection unchecked
                this.model = new ListDataModel<Object>((List<Object>) val);
            } else if (Object[].class.isAssignableFrom(val.getClass())) {
                this.model = new ArrayDataModel<Object>((Object[]) val);
            } else if (val instanceof ResultSet) {
                this.model = new ResultSetDataModel((ResultSet) val);
            } else {
                this.model = new ScalarDataModel<Object>(val);
            }
        }
        return this.model;
View Full Code Here

        } else if (current instanceof List) {
            setDataModel(new ListDataModel((List) current));
        } else if (Object[].class.isAssignableFrom(current.getClass())) {
            setDataModel(new ArrayDataModel((Object[]) current));
        } else if (current instanceof ResultSet) {
            setDataModel(new ResultSetDataModel((ResultSet) current));
        } else if (current instanceof Result) {
            setDataModel(new ResultDataModel((Result) current));
        } else {
            setDataModel(new ScalarDataModel(current));
        }
View Full Code Here

        } else if (value instanceof List) {
            return new ListDataModel((List) value);
        } else if (OBJECT_ARRAY_CLASS.isAssignableFrom(value.getClass())) {
            return new ArrayDataModel((Object[]) value);
        } else if (value instanceof ResultSet) {
            return new ResultSetDataModel((ResultSet) value);
        } else if (value instanceof Result) {
            return new ResultDataModel((Result) value);
        } else {
            return new ScalarDataModel(value);
        }
View Full Code Here

        else if (object instanceof Collection)
            dataModel = new ListDataModel(new ArrayList((Collection) object));
        else if (object.getClass().isArray())
            dataModel = new ArrayDataModel(Components.anyArrayToObjectArray(object));
        else if (object instanceof ResultSet)
            dataModel = new ResultSetDataModel((ResultSet) object);
        else {
            try {
                if (object instanceof Result) {
                    dataModel = new ResultDataModel((Result) object);
                }
View Full Code Here

                //noinspection unchecked
                this.model = new ListDataModel<Object>((List<Object>) val);
            } else if (Object[].class.isAssignableFrom(val.getClass())) {
                this.model = new ArrayDataModel<Object>((Object[]) val);
            } else if (val instanceof ResultSet) {
                this.model = new ResultSetDataModel((ResultSet) val);
            } else {
                this.model = new ScalarDataModel<Object>(val);
            }
        }
        return this.model;
View Full Code Here

TOP

Related Classes of javax.faces.model.ResultSetDataModel$DataMap

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.