Constructor of the data model. NOTE! OINODbDataModel.initialize must be called after constructor to populate fields.
api of the data model
ReadonlyapiDatabase refererence of the table
ReadonlydbDatabase refererence of the table
ReadonlyfieldsField refererences of the API
Build a parameterized SQL DELETE statement for id. Execute with OINODb.runStatement.
OINO ID (i.e. combined primary key values)
Build a parameterized SQL INSERT statement from one data row. Execute with OINODb.runStatement.
one row of data in the data model
Build a parameterized SQL SELECT statement using optional id and filter. Values are bound as
parameters; execute with OINODb.runStatement.
OINO ID (i.e. combined primary key values)
OINO request params
Build a parameterized SQL UPDATE statement from one data row. Execute with OINODb.runStatement.
OINO ID (i.e. combined primary key values)
one row of data in the data model
Find all fields based of given filter callback criteria (e.g. fields of certain data type, primary keys etc.)
callback called for each field to include or not
Find a field of a given name if any.
name of the field to find
Find index of a field of a given name if any.
name of the field to find
Return the primary key values of one row in order of the data model
data row
apply hashid when applicable
Pring debug information for the field
length of the debug output (or 0 for as long as needed)
Print debug information about the fields.
string to separate field prints
Print all public properties (db, table name, fields) of the datamodel. Used in automated testing validate schema has stayed the same.
Print SQL insert statement from one data row as an inline (non-parameterized) string.
one row of data in the data model
Print SQL select statement using optional id and filter as an inline (non-parameterized) string.
OINO ID (i.e. combined primary key values)
OINO request params
Print SQL update statement from one data row as an inline (non-parameterized) string.
OINO ID (i.e. combined primary key values)
one row of data in the data model
OINO Datamodel object for representing one database table and it's columns.