# Source for file Adapter.php

Documentation is available at Adapter.php

1. <?php
2. /*
3. * $Id: Adapter.php 1080 2007-02-10 18:17:08Z romanb $
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.phpdoctrine.com>.
20. */
21. /**
22. *
23. * Doctrine_Adapter
24. *
25. * @package Doctrine
26. * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
27. * @category Object Relational Mapping
28. * @link www.phpdoctrine.com
29. * @since 1.0
30. * @version $Revision: 1080 $
31. * @author Konsta Vesterinen <kvesteri@cc.hut.fi>
32. */
33. class Doctrine_Adapter
34. {
35. const ATTR_AUTOCOMMIT = 0;
36. const ATTR_CASE = 8;
37. const ATTR_CLIENT_VERSION = 5;
38. const ATTR_CONNECTION_STATUS = 7;
39. const ATTR_CURSOR = 10;
40. const ATTR_CURSOR_NAME = 9;
41. const ATTR_DRIVER_NAME = 16;
42. const ATTR_ERRMODE = 3;
43. const ATTR_FETCH_CATALOG_NAMES = 15;
44. const ATTR_FETCH_TABLE_NAMES = 14;
45. const ATTR_MAX_COLUMN_LEN = 18;
46. const ATTR_ORACLE_NULLS = 11;
47. const ATTR_PERSISTENT = 12;
48. const ATTR_PREFETCH = 1;
49. const ATTR_SERVER_INFO = 6;
50. const ATTR_SERVER_VERSION = 4;
51. const ATTR_STATEMENT_CLASS = 13;
52. const ATTR_STRINGIFY_FETCHES = 17;
53. const ATTR_TIMEOUT = 2;
54. const CASE_LOWER = 2;
55. const CASE_NATURAL = 0;
56. const CASE_UPPER = 1;
57. const CURSOR_FWDONLY = 0;
58. const CURSOR_SCROLL = 1;
59. const ERR_ALREADY_EXISTS = NULL;
60. const ERR_CANT_MAP = NULL;
61. const ERR_CONSTRAINT = NULL;
62. const ERR_DISCONNECTED = NULL;
63. const ERR_MISMATCH = NULL;
64. const ERR_NO_PERM = NULL;
65. const ERR_NONE = '00000';
66. const ERR_NOT_FOUND = NULL;
67. const ERR_NOT_IMPLEMENTED = NULL;
68. const ERR_SYNTAX = NULL;
69. const ERR_TRUNCATED = NULL;
70. const ERRMODE_EXCEPTION = 2;
71. const ERRMODE_SILENT = 0;
72. const ERRMODE_WARNING = 1;
73. const FETCH_ASSOC = 2;
74. const FETCH_BOTH = 4;
75. const FETCH_BOUND = 6;
76. const FETCH_CLASS = 8;
77. const FETCH_CLASSTYPE = 262144;
78. const FETCH_COLUMN = 7;
79. const FETCH_FUNC = 10;
80. const FETCH_GROUP = 65536;
81. const FETCH_INTO = 9;
82. const FETCH_LAZY = 1;
83. const FETCH_NAMED = 11;
84. const FETCH_NUM = 3;
85. const FETCH_OBJ = 5;
86. const FETCH_ORI_ABS = 4;
87. const FETCH_ORI_FIRST = 2;
88. const FETCH_ORI_LAST = 3;
89. const FETCH_ORI_NEXT = 0;
90. const FETCH_ORI_PRIOR = 1;
91. const FETCH_ORI_REL = 5;
92. const FETCH_SERIALIZE = 524288;
93. const FETCH_UNIQUE = 196608;
94. const NULL_EMPTY_STRING = 1;
95. const NULL_NATURAL = 0;
96. const NULL_TO_STRING = NULL;
97. const PARAM_BOOL = 5;
98. const PARAM_INPUT_OUTPUT = -2147483648;
99. const PARAM_INT = 1;
100. const PARAM_LOB = 3;
101. const PARAM_NULL = 0;
102. const PARAM_STMT = 4;
103. const PARAM_STR = 2;
104. }