| 1 |
lars |
1 |
<?php
|
|
|
2 |
/*
|
|
|
3 |
* $Id: Statement.php 7490 2010-03-29 19:53:27Z jwage $
|
|
|
4 |
*
|
|
|
5 |
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
6 |
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
7 |
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
|
8 |
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
|
9 |
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
10 |
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
11 |
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
12 |
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
13 |
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
14 |
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
15 |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
16 |
*
|
|
|
17 |
* This software consists of voluntary contributions made by many individuals
|
|
|
18 |
* and is licensed under the LGPL. For more information, see
|
|
|
19 |
* <http://www.doctrine-project.org>.
|
|
|
20 |
*/
|
|
|
21 |
|
|
|
22 |
/**
|
|
|
23 |
* Doctrine_Adapter_Statement
|
|
|
24 |
*
|
|
|
25 |
* @author Konsta Vesterinen <kvesteri@cc.hut.fi>
|
|
|
26 |
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
|
|
|
27 |
* @package Doctrine
|
|
|
28 |
* @subpackage Adapter
|
|
|
29 |
* @link www.doctrine-project.org
|
|
|
30 |
* @since 1.0
|
|
|
31 |
* @version $Revision: 7490 $
|
|
|
32 |
*/
|
|
|
33 |
abstract class Doctrine_Adapter_Statement
|
|
|
34 |
{
|
|
|
35 |
/**
|
|
|
36 |
* bindValue
|
|
|
37 |
*
|
|
|
38 |
* @param string $no
|
|
|
39 |
* @param string $value
|
|
|
40 |
* @return void
|
|
|
41 |
*/
|
|
|
42 |
public function bindValue($no, $value)
|
|
|
43 |
{ }
|
|
|
44 |
|
|
|
45 |
/**
|
|
|
46 |
* fetch
|
|
|
47 |
*
|
|
|
48 |
* @see Doctrine_Core::FETCH_* constants
|
|
|
49 |
* @param integer $fetchStyle Controls how the next row will be returned to the caller.
|
|
|
50 |
* This value must be one of the Doctrine_Core::FETCH_* constants,
|
|
|
51 |
* defaulting to Doctrine_Core::FETCH_BOTH
|
|
|
52 |
*
|
|
|
53 |
* @param integer $cursorOrientation For a PDOStatement object representing a scrollable cursor,
|
|
|
54 |
* this value determines which row will be returned to the caller.
|
|
|
55 |
* This value must be one of the Doctrine_Core::FETCH_ORI_* constants, defaulting to
|
|
|
56 |
* Doctrine_Core::FETCH_ORI_NEXT. To request a scrollable cursor for your
|
|
|
57 |
* Doctrine_Adapter_Statement_Interface object,
|
|
|
58 |
* you must set the Doctrine_Core::ATTR_CURSOR attribute to Doctrine_Core::CURSOR_SCROLL when you
|
|
|
59 |
* prepare the SQL statement with Doctrine_Adapter_Interface->prepare().
|
|
|
60 |
*
|
|
|
61 |
* @param integer $cursorOffset For a Doctrine_Adapter_Statement_Interface object representing a scrollable cursor for which the
|
|
|
62 |
* $cursorOrientation parameter is set to Doctrine_Core::FETCH_ORI_ABS, this value specifies
|
|
|
63 |
* the absolute number of the row in the result set that shall be fetched.
|
|
|
64 |
*
|
|
|
65 |
* For a Doctrine_Adapter_Statement_Interface object representing a scrollable cursor for
|
|
|
66 |
* which the $cursorOrientation parameter is set to Doctrine_Core::FETCH_ORI_REL, this value
|
|
|
67 |
* specifies the row to fetch relative to the cursor position before
|
|
|
68 |
* Doctrine_Adapter_Statement_Interface->fetch() was called.
|
|
|
69 |
*
|
|
|
70 |
* @return mixed
|
|
|
71 |
*/
|
|
|
72 |
public function fetch()
|
|
|
73 |
{ }
|
|
|
74 |
|
|
|
75 |
/**
|
|
|
76 |
* nextRowSet
|
|
|
77 |
*
|
|
|
78 |
* @return void
|
|
|
79 |
*/
|
|
|
80 |
public function nextRowset()
|
|
|
81 |
{ }
|
|
|
82 |
|
|
|
83 |
/**
|
|
|
84 |
* execute()
|
|
|
85 |
*
|
|
|
86 |
* @return void
|
|
|
87 |
*/
|
|
|
88 |
public function execute()
|
|
|
89 |
{ }
|
|
|
90 |
|
|
|
91 |
/**
|
|
|
92 |
* errorCode
|
|
|
93 |
*
|
|
|
94 |
* @return void
|
|
|
95 |
*/
|
|
|
96 |
public function errorCode()
|
|
|
97 |
{ }
|
|
|
98 |
|
|
|
99 |
/**
|
|
|
100 |
* errorInfo
|
|
|
101 |
*
|
|
|
102 |
* @return void
|
|
|
103 |
*/
|
|
|
104 |
public function errorInfo()
|
|
|
105 |
{ }
|
|
|
106 |
|
|
|
107 |
/**
|
|
|
108 |
* rowCount
|
|
|
109 |
*
|
|
|
110 |
* @return void
|
|
|
111 |
*/
|
|
|
112 |
public function rowCount()
|
|
|
113 |
{ }
|
|
|
114 |
|
|
|
115 |
/**
|
|
|
116 |
* setFetchMode
|
|
|
117 |
*
|
|
|
118 |
* @param string $mode
|
|
|
119 |
* @return void
|
|
|
120 |
*/
|
|
|
121 |
public function setFetchMode($mode)
|
|
|
122 |
{ }
|
|
|
123 |
|
|
|
124 |
/**
|
|
|
125 |
* columnCount
|
|
|
126 |
*
|
|
|
127 |
* @return void
|
|
|
128 |
*/
|
|
|
129 |
public function columnCount()
|
|
|
130 |
{ }
|
|
|
131 |
}
|