Class Event.Row
Represents a database table row (a sequence of name-value pairs)
Defined in: <D:\Programs\Neeve\Projects\NeeveBuild\stjsapi/src/main/webapp/js\event\Row.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
Event.Row(descriptor, values)
Creates a new row
|
Method Attributes | Method Name and Description |
---|---|
void |
clear()
Clears the row data
|
number |
findColumn(name)
Returns the index of the column specified by its name (indicies start from 1)
|
String |
getClass(index)
Returns the name of the java class of the specified column
|
Object |
getColumn(index)
Returns the value of the column specified by its index (starting from 1)
|
Object |
getColumnByName(name)
Returns the value of the column specified by its name
|
String |
getColumnClass(index)
Returns a java class of the specified column
|
String |
getColumnClassByName(name)
Returns a java class of the specified column
|
number |
Returns the number of columns in the row
|
String |
getColumnSQLType(index)
Returns the SQL type of the column with the specified index
|
String |
getColumnSQLTypeByName(name)
Returns the SQL type of the column with the specified name
|
RowMetaData |
Returns the row meta data
|
Object |
Returns the array of the row column values.
|
boolean |
hasRowId()
Returns whether or not this row contains row id
|
void |
init(size)
Initializes the row with null column values.
|
boolean |
isColumnNull(index)
Returns whether the value of the specified column is null or not
|
boolean |
isColumnNull_(name)
Returns whether the value of the specified column is null or not
|
void |
setColumn(index, value)
Sets the value of the column specified by its index
|
void |
setColumnByName(columnName, value)
Sets the value of the column specified by its name
|
void |
setRawData(data)
Sets raw data for this row.
|
Class Detail
Event.Row(descriptor, values)
Creates a new row
- Parameters:
- {Event.RowMetaData} descriptor
- The meta data describing the row to be created
- {Object[]} values
- The values of the row
Method Detail
clear()
Clears the row data
{number}
findColumn(name)
Returns the index of the column specified by its name (indicies start from 1)
- Parameters:
- {String} name
- The name of the column to be found
- Returns:
- The index of the column
{String}
getClass(index)
Returns the name of the java class of the specified column
- Parameters:
- {number} index
- The index of the column starting from 1
- Returns:
- Class name of the column
{Object}
getColumn(index)
Returns the value of the column specified by its index (starting from 1)
- Parameters:
- {number} index
- The index of the column to be returned starting from 1
- Returns:
- The value of the column
{Object}
getColumnByName(name)
Returns the value of the column specified by its name
- Parameters:
- {String} name
- The name of the column to be returned
- Returns:
- The value of the column
{String}
getColumnClass(index)
Returns a java class of the specified column
- Parameters:
- {number} index
- The index of the column starting from 1
- Returns:
- The name of the column java class
{String}
getColumnClassByName(name)
Returns a java class of the specified column
- Parameters:
- {String} name
- The name of the column
- Returns:
- The name of the column java class
{number}
getColumnCount()
Returns the number of columns in the row
- Returns:
- Columns number
{String}
getColumnSQLType(index)
Returns the SQL type of the column with the specified index
- Parameters:
- {number} index
- The index of the column
- Returns:
- The column SQL type
{String}
getColumnSQLTypeByName(name)
Returns the SQL type of the column with the specified name
- Parameters:
- {String} name
- The name of the column
- Returns:
- The column SQL type
{RowMetaData}
getMetaData()
Returns the row meta data
- Returns:
- The descriptor of the row
{Object[]}
getRawData()
Returns the array of the row column values.
- Returns:
- The array of values
{boolean}
hasRowId()
Returns whether or not this row contains row id
- Returns:
- true if this row contains row id and false otherwise
init(size)
Initializes the row with null column values.
- Parameters:
- {number} size
- The number of columns in the row
{boolean}
isColumnNull(index)
Returns whether the value of the specified column is null or not
- Parameters:
- {number} index
- The index of the column starting from 1
- Returns:
- True if the value of the column is null and false otherwise
{boolean}
isColumnNull_(name)
Returns whether the value of the specified column is null or not
- Parameters:
- {String} name
- The name of the column
- Returns:
- True if the value of the column is null and false otherwise
setColumn(index, value)
Sets the value of the column specified by its index
- Parameters:
- {number} index
- The index of the column to be set, starting from 1
- {Object} value
- The new value for the column
setColumnByName(columnName, value)
Sets the value of the column specified by its name
- Parameters:
- {String} columnName
- The name of the column to be set
- {Object} value
- The new value for the column
setRawData(data)
Sets raw data for this row. Does not perform data type checks.
Optimized for batch operations and serialization.
- Parameters:
- {Object[]} data
- New values to be set fr the row columns