CallableStatement.php

Go to the documentation of this file.
00001 <?php 00002 /* 00003 * $Id: CallableStatement.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 00029 include_once 'creole/PreparedStatement.php'; 00030 00038 class CallableStatement extends PreparedStatement 00039 { 00040 00046 function registerOutParameter($paramIndex, $sqlType) 00047 { 00048 trigger_error ( 00049 "CallableStatement::(): abstract function has to be reimplemented !", 00050 E_USER_ERROR 00051 ); 00052 } 00053 00060 function getArray($paramIndex) 00061 { 00062 trigger_error ( 00063 "CallableStatement::(): abstract function has to be reimplemented !", 00064 E_USER_ERROR 00065 ); 00066 } 00067 00074 function getBoolean($paramIndex) 00075 { 00076 trigger_error ( 00077 "CallableStatement::(): abstract function has to be reimplemented !", 00078 E_USER_ERROR 00079 ); 00080 } 00081 00088 function getBlob($paramIndex) 00089 { 00090 trigger_error ( 00091 "CallableStatement::(): abstract function has to be reimplemented !", 00092 E_USER_ERROR 00093 ); 00094 } 00095 00100 function getClob($paramIndex) 00101 { 00102 trigger_error ( 00103 "CallableStatement::(): abstract function has to be reimplemented !", 00104 E_USER_ERROR 00105 ); 00106 } 00107 00120 function getDate($column, $format = '%x') 00121 { 00122 trigger_error ( 00123 "CallableStatement::(): abstract function has to be reimplemented !", 00124 E_USER_ERROR 00125 ); 00126 } 00127 00132 function getFloat($paramIndex) 00133 { 00134 trigger_error ( 00135 "CallableStatement::(): abstract function has to be reimplemented !", 00136 E_USER_ERROR 00137 ); 00138 } 00139 00144 function getInt($paramIndex) 00145 { 00146 trigger_error ( 00147 "CallableStatement::(): abstract function has to be reimplemented !", 00148 E_USER_ERROR 00149 ); 00150 } 00151 00156 function getString($paramIndex) 00157 { 00158 trigger_error ( 00159 "CallableStatement::(): abstract function has to be reimplemented !", 00160 E_USER_ERROR 00161 ); 00162 } 00163 00176 function getTime($column, $format = '%X') 00177 { 00178 trigger_error ( 00179 "CallableStatement::(): abstract function has to be reimplemented !", 00180 E_USER_ERROR 00181 ); 00182 } 00183 00197 function getTimestamp($column, $format = 'Y-m-d H:i:s') 00198 { 00199 trigger_error ( 00200 "CallableStatement::(): abstract function has to be reimplemented !", 00201 E_USER_ERROR 00202 ); 00203 } 00204 00205 }

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


Copyright © 2004 Hans Lellelid  
Creole[php4] CVS