DataColumn
DataTable | the DataTable, database database table this column belongs to |
Formula | An arithmetic formula to compute values for this column (based on syntax of the used DBMS) |
ID | Unique identifier (primary key) of the object |
Name | Unique name of this object. Cannot be empty. |
Note | Text comment to this object (up to 255 characters) |
canDel () | Returns true if the object could be deleted (is not used) |
getAvg () | Returns the average value in this column |
getDataColumnSubTypeCode () | Returns code of sub-type of this column, see DataColumnSubType codes |
getDataColumnSubTypeKey () | Returns unique string key of sub-type of this column |
getDataColumnSubTypeName () | Returns string representation of sub-type of this column |
getDataTable () | Returns the DataTable, table this column belongs to, the value of DataTable property |
getDatePartSubTypeCode () | Returns code of date-part sub-type of values in this column, see DatePartSubType codes |
getDatePartSubTypeKey () | Returns unique string key of date-part sub-type of values in this column |
getDatePartSubTypeName () | Returns string representation of date-part sub-type of values in this column |
getDistinctValueCount () | Returns number of distinct values (the NULL-value including) in the column |
getFormula () | Returns the value of Formula property |
getID () | Returns unique identifier (primary key) of the object |
getMax () | Returns the maximal value in this column |
getMin () | Returns the minimal value in this column |
getName () | Returns the value of Name property, name of this object |
getNote () | Returns the value of Note property |
getStDev () | Returns the standard deviation of values in this column |
getValueSubTypeCode () | Returns code of data-type of values in this column, see ValueSubType codes |
getValueSubTypeKey () | Returns unique string key of data-type of values in this column |
getValueSubTypeName () | Returns string representation of data-type of values in this column |
isPrimaryKeyPart () | Returns true, if this attribute is a part of the primary key |
isReady () | Returns true when the columns is present in the database |
onAdd () | Store the newly created object into metabase |
onDel () | Delete the object from metabase (fails if canDel returns false) |
onUpdate () | Save changes made to the object into metabase |
prepareDataArray () | array of all values in the column |
prepareDistinctValueArray () | array of distinct values (the NULL-value including) in the column and a same-length array of frequencies of distinct values |
prepareHistogramArray () | array of frequencies for numeric values of a given size |
setFormula () | Sets the value of Formula property |
setName () | Sets the value of Name property, name of this object (must be unique) |
setNote () | Sets the value of Note property |
DataTable
(read-only) : DataTableFormula
: stringID
(read-only) : integerName
: stringNote
: stringcanDel() : boolean
boolean
getAvg() : float
float
getDataColumnSubTypeCode() : integer
integer
getDataColumnSubTypeKey() : string
string
getDataColumnSubTypeName() : string
string
getDataTable() : DataTable
getDatePartSubTypeCode() : integer
integer
getDatePartSubTypeKey() : string
string
getDatePartSubTypeName() : string
string
getDistinctValueCount() : integer
integer
getFormula() : string
string
getID() : integer
integer
getMax() : float
float
getMin() : float
float
getName() : string
string
getNote() : string
string
getStDev() : float
float
getValueSubTypeCode() : integer
integer
getValueSubTypeKey() : string
string
getValueSubTypeName() : string
string
isPrimaryKeyPart() : boolean
boolean
isReady() : boolean
boolean
onAdd()
onDel()
onUpdate()
prepareDataArray()
dataArray
: array of values
- list of all values in this column. Value type is the same as is data type of the database column
prepareDistinctValueArray()
distinctValueArray
: array of values
- list of all distinct values in this column. Value type is the same as is data type of the database column
frequenciesArray
: array of numbers
- frequency of the value in distinctValueArray with the same index
prepareHistogramArray()
luaTable
- to store named parameters
nSize
: integer
- size of the histogram (number of frequencies in array)
frequenciesArray
: array of numbers
- frequency of the values in range defined by the index in histogram
setFormula( string )
string
setName( string )
string
- cannot be emptysetNote( string )
string