Package com.illumon.iris.web.shared.data
Class TableValues
java.lang.Object
com.illumon.iris.web.shared.data.TableValues
- All Implemented Interfaces:
Serializable
An opaque representation of "values in a table" suitable for transmission from client to server.
Since the client cannot possibly understand all types that are valid for use on the server,
we will instead send along lists of
ColumnValue objects, and a source table id,
so we can use the column type definitions on the server to rehydrate objects.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRows()booleanisEmpty()voidsetHandle(TableHandle handle) voidRehydrate objects from the server in a generic fashion; this method accepts Function parameters to deduce the name and value of a givenColumnValueinstance, without incurring dependencies on client-only or server-only types.toString()
-
Constructor Details
-
TableValues
public TableValues()
-
-
Method Details
-
toMap
public List<Map<String,Object>> toMap(Function<Integer, String> namer, BiFunction<Integer, String, Object> valuer) Rehydrate objects from the server in a generic fashion; this method accepts Function parameters to deduce the name and value of a givenColumnValueinstance, without incurring dependencies on client-only or server-only types. -
getHandle
-
getRows
-
toString
-
isEmpty
public boolean isEmpty()
-