ScalarDataModel is a convenience implementation of {@link DataModel} that wraps an individual Java object.
96979899100101102103104105
} else if (value instanceof Result) { model = new ResultDataModel((Result) value); } else if (value instanceof Collection) { model = new CollectionDataModel((Collection) value); } else { model = new ScalarDataModel(value); } return model; }
227228229230231232233234235236
{ _model = new ResultSetDataModel((ResultSet) val); } else { _model = new ScalarDataModel(val); } } return _model; }
306307308309310311312313
{ return new ResultDataModel((Result) value); } else { return new ScalarDataModel(value); } }
567568569570571572573574
247248249250251252253
return new ListDataModel(Collections.emptyList()); } else if (value instanceof List) return new ListDataModel((List) value); return new ScalarDataModel(value); }
19992000200120022003200420052006
232233234235236237238239240241
377378379380381382383384
807808809810811812813814
211212213214215216217218
{ return new ResultSetDataModel((ResultSet) value); } else { return new ScalarDataModel(value); } }