diff options
Diffstat (limited to 'lib/prado/framework/Data/SqlMap/Statements/TSelectMappedStatement.php')
-rw-r--r-- | lib/prado/framework/Data/SqlMap/Statements/TSelectMappedStatement.php | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/lib/prado/framework/Data/SqlMap/Statements/TSelectMappedStatement.php b/lib/prado/framework/Data/SqlMap/Statements/TSelectMappedStatement.php new file mode 100644 index 0000000..0231c09 --- /dev/null +++ b/lib/prado/framework/Data/SqlMap/Statements/TSelectMappedStatement.php @@ -0,0 +1,34 @@ +<?php +/** + * TSelectMappedStatement class. + * + * @author Wei Zhuo <weizhuo[at]gmail[dot]com> + * @link https://github.com/pradosoft/prado + * @copyright Copyright © 2005-2015 The PRADO Group + * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT + * @package System.Data.SqlMap.Statements + */ + +/** + * TSelectMappedStatment class. + * + * @author Wei Zhuo <weizho[at]gmail[dot]com> + * @package System.Data.SqlMap.Statements + * @since 3.1 + */ +class TSelectMappedStatement extends TMappedStatement +{ + public function executeInsert($connection, $parameter) + { + throw new TSqlMapExecutionException( + 'sqlmap_cannot_execute_insert', get_class($this), $this->getID()); + } + + public function executeUpdate($connection, $parameter) + { + throw new TSqlMapExecutionException( + 'sqlmap_cannot_execute_update', get_class($this), $this->getID()); + } + +} + |