| 1 |
lars |
1 |
<?php
|
|
|
2 |
/**
|
|
|
3 |
* TPreparedStatement class file.
|
|
|
4 |
*
|
|
|
5 |
* @author Wei Zhuo <weizhuo[at]gmail[dot]com>
|
|
|
6 |
* @link http://www.pradosoft.com/
|
|
|
7 |
* @copyright Copyright © 2005-2008 PradoSoft
|
|
|
8 |
* @license http://www.pradosoft.com/license/
|
|
|
9 |
* @version $Id: TPreparedStatement.php 2541 2008-10-21 15:05:13Z qiang.xue $
|
|
|
10 |
* @package System.Data.SqlMap.Statements
|
|
|
11 |
*/
|
|
|
12 |
|
|
|
13 |
/**
|
|
|
14 |
* TpreparedStatement class.
|
|
|
15 |
*
|
|
|
16 |
* @author Wei Zhuo <weizho[at]gmail[dot]com>
|
|
|
17 |
* @version $Id: TPreparedStatement.php 2541 2008-10-21 15:05:13Z qiang.xue $
|
|
|
18 |
* @package System.Data.SqlMap.Statements
|
|
|
19 |
* @since 3.1
|
|
|
20 |
*/
|
|
|
21 |
class TPreparedStatement extends TComponent
|
|
|
22 |
{
|
|
|
23 |
private $_sqlString='';
|
|
|
24 |
private $_parameterNames;
|
|
|
25 |
private $_parameterValues;
|
|
|
26 |
|
|
|
27 |
public function __construct()
|
|
|
28 |
{
|
|
|
29 |
$this->_parameterNames=new TList;
|
|
|
30 |
$this->_parameterValues=new TMap;
|
|
|
31 |
}
|
|
|
32 |
|
|
|
33 |
public function getPreparedSql(){ return $this->_sqlString; }
|
|
|
34 |
public function setPreparedSql($value){ $this->_sqlString = $value; }
|
|
|
35 |
|
|
|
36 |
public function getParameterNames(){ return $this->_parameterNames; }
|
|
|
37 |
public function setParameterNames($value){ $this->_parameterNames = $value; }
|
|
|
38 |
|
|
|
39 |
public function getParameterValues(){ return $this->_parameterValues; }
|
|
|
40 |
public function setParameterValues($value){ $this->_parameterValues = $value; }
|
|
|
41 |
|
|
|
42 |
}
|
|
|
43 |
|