PreparedStatement.php

Go to the documentation of this file.
00001 <?php 00002 /* 00003 * $Id: PreparedStatement.php,v 1.1 2004/03/25 22:59:39 micha Exp $ 00004 * 00005 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 00006 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 00007 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 00008 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 00009 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 00010 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 00011 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 00012 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 00013 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00014 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00015 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00016 * 00017 * This software consists of voluntary contributions made by many individuals 00018 * and is licensed under the LGPL. For more information please see 00019 * <http://creole.phpdb.org>. 00020 */ 00021 00022 // 00023 // STATUS: 00024 // - ported: y 00025 // - compiled: y 00026 // - tested: n 00027 // 00028 00057 class PreparedStatement 00058 { 00063 function & getConnection() 00064 { 00065 trigger_error ( 00066 "PreparedStatement::(): abstract function has to be reimplemented !", 00067 E_USER_ERROR 00068 ); 00069 } 00070 00075 function & getResource() 00076 { 00077 trigger_error ( 00078 "PreparedStatement::(): abstract function has to be reimplemented !", 00079 E_USER_ERROR 00080 ); 00081 } 00082 00090 function close() 00091 { 00092 trigger_error ( 00093 "PreparedStatement::(): abstract function has to be reimplemented !", 00094 E_USER_ERROR 00095 ); 00096 } 00097 00105 function & getResultSet() 00106 { 00107 trigger_error ( 00108 "PreparedStatement::(): abstract function has to be reimplemented !", 00109 E_USER_ERROR 00110 ); 00111 } 00112 00126 function getMoreResults() 00127 { 00128 trigger_error ( 00129 "PreparedStatement::(): abstract function has to be reimplemented !", 00130 E_USER_ERROR 00131 ); 00132 } 00133 00139 function getUpdateCount() 00140 { 00141 trigger_error ( 00142 "PreparedStatement::(): abstract function has to be reimplemented !", 00143 E_USER_ERROR 00144 ); 00145 } 00146 00154 function setLimit($v) 00155 { 00156 trigger_error ( 00157 "PreparedStatement::(): abstract function has to be reimplemented !", 00158 E_USER_ERROR 00159 ); 00160 } 00161 00166 function getLimit() 00167 { 00168 trigger_error ( 00169 "PreparedStatement::(): abstract function has to be reimplemented !", 00170 E_USER_ERROR 00171 ); 00172 } 00173 00182 function setOffset($v) 00183 { 00184 trigger_error ( 00185 "PreparedStatement::(): abstract function has to be reimplemented !", 00186 E_USER_ERROR 00187 ); 00188 } 00189 00195 function getOffset() 00196 { 00197 trigger_error ( 00198 "PreparedStatement::(): abstract function has to be reimplemented !", 00199 E_USER_ERROR 00200 ); 00201 } 00202 00213 function & executeQuery($p1 = null, $fetchmode = null) 00214 { 00215 trigger_error ( 00216 "PreparedStatement::(): abstract function has to be reimplemented !", 00217 E_USER_ERROR 00218 ); 00219 } 00220 00228 function executeUpdate($params = null) 00229 { 00230 trigger_error ( 00231 "PreparedStatement::(): abstract function has to be reimplemented !", 00232 E_USER_ERROR 00233 ); 00234 } 00235 00248 function set($paramIndex, $value) 00249 { 00250 trigger_error ( 00251 "PreparedStatement::(): abstract function has to be reimplemented !", 00252 E_USER_ERROR 00253 ); 00254 } 00255 00264 function setArray($paramIndex, $value) 00265 { 00266 trigger_error ( 00267 "PreparedStatement::(): abstract function has to be reimplemented !", 00268 E_USER_ERROR 00269 ); 00270 } 00271 00279 function setBoolean($paramIndex, $value) 00280 { 00281 trigger_error ( 00282 "PreparedStatement::(): abstract function has to be reimplemented !", 00283 E_USER_ERROR 00284 ); 00285 } 00286 00287 00293 function setBlob($paramIndex, $blob) 00294 { 00295 trigger_error ( 00296 "PreparedStatement::(): abstract function has to be reimplemented !", 00297 E_USER_ERROR 00298 ); 00299 } 00300 00306 function setClob($paramIndex, $clob) 00307 { 00308 trigger_error ( 00309 "PreparedStatement::(): abstract function has to be reimplemented !", 00310 E_USER_ERROR 00311 ); 00312 } 00313 00319 function setDate($paramIndex, $value) 00320 { 00321 trigger_error ( 00322 "PreparedStatement::(): abstract function has to be reimplemented !", 00323 E_USER_ERROR 00324 ); 00325 } 00326 00332 function setFloat($paramIndex, $value) 00333 { 00334 trigger_error ( 00335 "PreparedStatement::(): abstract function has to be reimplemented !", 00336 E_USER_ERROR 00337 ); 00338 } 00339 00345 function setInt($paramIndex, $value) 00346 { 00347 trigger_error ( 00348 "PreparedStatement::(): abstract function has to be reimplemented !", 00349 E_USER_ERROR 00350 ); 00351 } 00352 00357 function setNull($paramIndex) 00358 { 00359 trigger_error ( 00360 "PreparedStatement::(): abstract function has to be reimplemented !", 00361 E_USER_ERROR 00362 ); 00363 } 00364 00370 function setString($paramIndex, $value) 00371 { 00372 trigger_error ( 00373 "PreparedStatement::(): abstract function has to be reimplemented !", 00374 E_USER_ERROR 00375 ); 00376 } 00377 00383 function setTime($paramIndex, $value) 00384 { 00385 trigger_error ( 00386 "PreparedStatement::(): abstract function has to be reimplemented !", 00387 E_USER_ERROR 00388 ); 00389 } 00390 00396 function setTimestamp($paramIndex, $value) 00397 { 00398 trigger_error ( 00399 "PreparedStatement::(): abstract function has to be reimplemented !", 00400 E_USER_ERROR 00401 ); 00402 } 00403 00404 }

This file is part of the Creole[php4] library.


Copyright © 2004 Hans Lellelid  
Creole[php4] CVS