lucee.Component
commandbox.system.util.DataConverter
Copyright Since 2014 CommandBox by Ortus Solutions, Corp www.coldbox.org | www.ortussolutions.com Utilities converting data between formats
| Constructor Summary | |
|---|---|
|
init()
Constructor. |
|
| Method Summary | |
|---|---|
any
|
cellHasFormattingEmbedded([any data])
|
array
|
generateColumnNames(any data, [string columns=''])
Create column names from data, default to col_1 . |
array
|
normalizeData(any rawData)
Take a simple value/array of values/or struct and normalize it to fit the table printer format. |
any
|
queryToArrayOfOrderedStructs([query data])
Takes query object and returns array of ORDERED structs. |
query
|
toQuery(any rawData, [string columns=''])
Take any data and convert it to a query. |
| Methods inherited from class lucee.Component |
|---|
| None |
| Constructor Detail |
|---|
Constructor
| Method Detail |
|---|
dataCreate column names from data, default to col_1 ... for simple values and arrays, Use key names for structs
data - Any type of data for the table.columnsTake a simple value/array of values/or struct and normalize it to fit the table printer format
rawDataTakes query object and returns array of ORDERED structs // https://luceeserver.atlassian.net/browse/LDEV-3511
data - Any query objectTake any data and convert it to a query
rawDatacolumns