|
1 | 1 | <?php |
2 | 2 | /** |
3 | | - * Copyright © Magento, Inc. All rights reserved. |
4 | | - * See COPYING.txt for license details. |
| 3 | + * Copyright 2011 Adobe |
| 4 | + * All Rights Reserved. |
5 | 5 | */ |
6 | 6 |
|
7 | 7 | namespace Magento\Framework\DB\Adapter; |
|
16 | 16 | */ |
17 | 17 | interface AdapterInterface |
18 | 18 | { |
19 | | - const INDEX_TYPE_PRIMARY = 'primary'; |
| 19 | + public const INDEX_TYPE_PRIMARY = 'primary'; |
20 | 20 |
|
21 | | - const INDEX_TYPE_UNIQUE = 'unique'; |
| 21 | + public const INDEX_TYPE_UNIQUE = 'unique'; |
22 | 22 |
|
23 | | - const INDEX_TYPE_INDEX = 'index'; |
| 23 | + public const INDEX_TYPE_INDEX = 'index'; |
24 | 24 |
|
25 | | - const INDEX_TYPE_FULLTEXT = 'fulltext'; |
| 25 | + public const INDEX_TYPE_FULLTEXT = 'fulltext'; |
26 | 26 |
|
27 | | - const FK_ACTION_CASCADE = 'CASCADE'; |
| 27 | + public const FK_ACTION_CASCADE = 'CASCADE'; |
28 | 28 |
|
29 | | - const FK_ACTION_SET_NULL = 'SET NULL'; |
| 29 | + public const FK_ACTION_SET_NULL = 'SET NULL'; |
30 | 30 |
|
31 | | - const FK_ACTION_NO_ACTION = 'NO ACTION'; |
| 31 | + public const FK_ACTION_NO_ACTION = 'NO ACTION'; |
32 | 32 |
|
33 | | - const FK_ACTION_RESTRICT = 'RESTRICT'; |
| 33 | + public const FK_ACTION_RESTRICT = 'RESTRICT'; |
34 | 34 |
|
35 | | - const FK_ACTION_SET_DEFAULT = 'SET DEFAULT'; |
| 35 | + public const FK_ACTION_SET_DEFAULT = 'SET DEFAULT'; |
36 | 36 |
|
37 | | - const INSERT_ON_DUPLICATE = 1; |
| 37 | + public const INSERT_ON_DUPLICATE = 1; |
38 | 38 |
|
39 | | - const INSERT_IGNORE = 2; |
| 39 | + public const INSERT_IGNORE = 2; |
40 | 40 |
|
41 | 41 | /** Strategy for updating data in table. See https://dev.mysql.com/doc/refman/5.7/en/replace.html */ |
42 | | - const REPLACE = 4; |
| 42 | + public const REPLACE = 4; |
43 | 43 |
|
44 | | - const ISO_DATE_FORMAT = 'yyyy-MM-dd'; |
| 44 | + public const ISO_DATE_FORMAT = 'yyyy-MM-dd'; |
45 | 45 |
|
46 | | - const ISO_DATETIME_FORMAT = 'yyyy-MM-dd HH-mm-ss'; |
| 46 | + public const ISO_DATETIME_FORMAT = 'yyyy-MM-dd HH-mm-ss'; |
47 | 47 |
|
48 | | - const INTERVAL_SECOND = 'SECOND'; |
| 48 | + public const INTERVAL_SECOND = 'SECOND'; |
49 | 49 |
|
50 | | - const INTERVAL_MINUTE = 'MINUTES'; |
| 50 | + public const INTERVAL_MINUTE = 'MINUTES'; |
51 | 51 |
|
52 | | - const INTERVAL_HOUR = 'HOURS'; |
| 52 | + public const INTERVAL_HOUR = 'HOURS'; |
53 | 53 |
|
54 | | - const INTERVAL_DAY = 'DAYS'; |
| 54 | + public const INTERVAL_DAY = 'DAYS'; |
55 | 55 |
|
56 | | - const INTERVAL_MONTH = 'MONTHS'; |
| 56 | + public const INTERVAL_MONTH = 'MONTHS'; |
57 | 57 |
|
58 | | - const INTERVAL_YEAR = 'YEARS'; |
| 58 | + public const INTERVAL_YEAR = 'YEARS'; |
59 | 59 |
|
60 | 60 | /** |
61 | 61 | * Error message for DDL query in transactions |
62 | 62 | */ |
63 | | - const ERROR_DDL_MESSAGE = 'DDL statements are not allowed in transactions'; |
| 63 | + public const ERROR_DDL_MESSAGE = 'DDL statements are not allowed in transactions'; |
64 | 64 |
|
65 | 65 | /** |
66 | 66 | * Error message for unfinished rollBack transaction |
67 | 67 | */ |
68 | | - const ERROR_ROLLBACK_INCOMPLETE_MESSAGE = 'Rolled back transaction has not been completed correctly.'; |
| 68 | + public const ERROR_ROLLBACK_INCOMPLETE_MESSAGE = 'Rolled back transaction has not been completed correctly.'; |
69 | 69 |
|
70 | 70 | /** |
71 | 71 | * Error message for asymmetric transaction rollback |
72 | 72 | */ |
73 | | - const ERROR_ASYMMETRIC_ROLLBACK_MESSAGE = 'Asymmetric transaction rollback.'; |
| 73 | + public const ERROR_ASYMMETRIC_ROLLBACK_MESSAGE = 'Asymmetric transaction rollback.'; |
74 | 74 |
|
75 | 75 | /** |
76 | 76 | * Error message for asymmetric transaction commit |
77 | 77 | */ |
78 | | - const ERROR_ASYMMETRIC_COMMIT_MESSAGE = 'Asymmetric transaction commit.'; |
| 78 | + public const ERROR_ASYMMETRIC_COMMIT_MESSAGE = 'Asymmetric transaction commit.'; |
79 | 79 |
|
80 | 80 | /** |
81 | 81 | * Begin new DB transaction for connection |
|
0 commit comments