From 6f7fdef0f500cd4bb540affd3bc1482243f337c1 Mon Sep 17 00:00:00 2001 From: emkael Date: Wed, 24 Feb 2016 23:18:07 +0100 Subject: * Prado 3.3.0 --- .../SqlMap/Statements/TSelectMappedStatement.php | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 lib/prado/framework/Data/SqlMap/Statements/TSelectMappedStatement.php (limited to 'lib/prado/framework/Data/SqlMap/Statements/TSelectMappedStatement.php') 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 @@ + + * @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 + * @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()); + } + +} + -- cgit v1.2.3