Class TSqlMapManager
TSqlMapManager class holds the sqlmap configuation result maps, statements parameter maps and a type handler factory.
Use SqlMapGateway getSqlMapGateway() property to obtain the gateway instance used for querying statements defined in the SqlMap configuration files.
$conn = new TDbConnection($dsn,$dbuser,$dbpass); $manager = new TSqlMapManager($conn); $manager->configureXml('mydb-sqlmap.xml'); $sqlmap = $manager->getSqlMapGateway(); $result = $sqlmap->queryForObject('Products');
- TComponent
-
TSqlMapManager
Package: System\Data\SqlMap
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Wei Zhuo <weizhuo[at]gmail[dot]com>
Since: 3.1
Located at Data/SqlMap/TSqlMapManager.php
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Wei Zhuo <weizhuo[at]gmail[dot]com>
Since: 3.1
Located at Data/SqlMap/TSqlMapManager.php
public
|
|
public
|
|
public
|
|
public
TTypeHandlerFactory
|
|
public
|
|
public
|
|
public
|
|
protected
|
#
createSqlMapGateway( )
Configures the current TSqlMapManager using the given xml configuration file defined in ConfigFile setConfigFile(). |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
GLOBAL_RAISE_EVENT_LISTENER
|