Trace:
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
jvx:reference [2020/06/10 13:16] cduncan [MetaData] |
jvx:reference [2020/06/10 13:20] cduncan [DataRow] |
||
---|---|---|---|
Line 628: | Line 628: | ||
Most of the column definition is additional information about the column, like if it is nullable, the label of the column, default values, allowed values, and similar information. | Most of the column definition is additional information about the column, like if it is nullable, the label of the column, default values, allowed values, and similar information. | ||
- | ==== DataType ==== | + | ==== Datatype ==== |
- | Of course we must define what type the value in the column has, this is done by setting a DataType on the ColumnDefinition. The DataType defines what kind of values the column holds, like if it is a String, or a Number or something else. We do provide the most often used DataTypes out of the box: | + | Of course, we must define what type the value in the column has. This is done by setting a datatype on the column definition. The datatype defines what kind of values the column holds, like if it is a String, a Number, or something else. We provide the most often used datatypes out of the box: |
* BigDecimal | * BigDecimal | ||
Line 640: | Line 640: | ||
* Timestamp | * Timestamp | ||
- | It is possible to add new DataTypes by simply implementing ''%%IDataType%%''. | + | It is possible to add new datatypes by simply implementing ''%%IDataType%%''. |
- | ===== DataRow ===== | + | ===== Data Row ===== |
- | The DataRow repesents a single row of data, it holds/references its own RowDefinition and of course provides access to the values of the row. Accessing the DataRow can be done either by column index or column name, and the methods do either return or accept Objects. Let’s look at a simple usage example: | + | The data row represents a single row of data; it holds/references its own row definition and, of course, provides access to the values of the row. Accessing the data row can be done either by column index or column name, and the methods either return or accept objects. Let’s look at a simple usage example: |
<code java> | <code java> |