Implements interfaces:
A helper for building dataobjects based on single RDBMS result rows
Whenever you have to build a dataobject which does just fetch the fields of a single database row this class can be used to achieve this easily.
You will have only have to provide the database (PDO) to be used, SQL queries for updating, inserting (actually two) and deleting the row, and a registration routine.
The appropiate parameters will be automatically bound to the statement created of this query.
Located in /phpsatk-lib/global/org.eenterphace.sat.xdo.dataobject.rdbms/xdo.dataobject.db.row.php (line 45)
XDODataObject | --XDODataObjectDBRow
| Class | Description |
|---|---|
| roleXDO | These are just tests and usage examples |
| XDOJob | Job XDO |
| CACertInfo | XDO - A certificate stored in the CA |
| AuthorizationRoleXDO | XDO for managing a SAT Roles |
| AuthorizationUserXDO | XDO for managing a SAT Users |
| AuthorizationACLEntryXDO | XDO for managing ACL entries |
| AuthorizationACLEntryApplicationXDO | Management XDO for application acl entries |
| AuthorizationACLEntryDataObjectXDO | XDO for managing dataobject acl entries |
Database connection to use
Database table to use
Inherited from XDODataObject
XDODataObject::$fieldhint
Creates/Inserts the database row
Does a insert of this objects values. Tries to determine the possibly new index value (e.g. in case of a auto incrementing primary key) by using the lastInserId method (which works for MySQL but might not for other RDBMS).
Executes the delete query
Will be invoked when the remove() routine is called on this or some parent object. All properties of this object are accessible in the query as named parameters (":<propname>"). Will remove the complete row.
Handles the fetching of the row
Intitalizes the object
Initializes the connection - used 'xdo.rdbms.<objid>'
Initializes an empty object
Not required here, but well ... php limitations
Registers a database field for usage
Executes the update query
Will update _ALL_ columns, so be careful when working with auto-updating date columns and/or triggers.
Inherited From XDODataObject
XDODataObject::__construct()
XDODataObject::addChild()
XDODataObject::addChildren()
XDODataObject::commit()
XDODataObject::delete()
XDODataObject::exists()
XDODataObject::fetch()
XDODataObject::getChild()
XDODataObject::getChildren()
XDODataObject::getCollection()
XDODataObject::getFieldHint()
XDODataObject::getID()
XDODataObject::getItemID()
XDODataObject::getParent()
XDODataObject::getProperty()
XDODataObject::getPropertyAccess()
XDODataObject::hasChildren()
XDODataObject::initialize()
XDODataObject::pushEvent()
XDODataObject::register()
XDODataObject::registerProperty()
XDODataObject::remove()
XDODataObject::setDelegate()
XDODataObject::setParent()
XDODataObject::update()
XDODataObject::__get()
XDODataObject::__isset()
XDODataObject::__set()
Documentation generated on Mon, 21 May 2007 10:35:27 +0200 by phpDocumentor 1.3.0RC5