hedera-web/js/db/lot.js

85 lines
1.1 KiB
JavaScript
Raw Normal View History

2017-10-22 00:25:57 +00:00
var Connection = require ('./connection');
var Model = require ('./model');
module.exports = new Class
({
Extends: Vn.Form
,Tag: 'db-lot'
,Properties:
{
/**
* The connection used to execute the statement.
*/
conn:
{
type: Connection
,set: function (x)
{
this.model.conn = x;
}
,get: function ()
{
return this.model.conn;
}
},
/**
* The model query.
*/
query:
{
type: String
,set: function (x)
{
this.model.query = x;
}
,get: function ()
{
return this.model.query;
}
},
/**
* The model select statement.
*/
stmt:
{
type: Sql.Stmt
,set: function (x)
{
this.model.stmt = x;
}
,get: function ()
{
return this.model.stmt;
}
},
/**
* The lot used to execute the statement.
*/
lot:
{
type: Vn.Lot
,set: function (x)
{
this.model.lot = x;
}
,get: function ()
{
return this.model.lot;
}
}
}
,initialize: function (props)
{
this.model = new Model ();
this.parent (props);
}
,appendChild: function (child)
{
if (child.nodeType === Node.TEXT_NODE)
this.query = child.textContent;
}
});