| 1 | <?php |
||
| 18 | final class QueryFactory |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @param string $table |
||
| 22 | * @param array $columns |
||
| 23 | * |
||
| 24 | * @return Select |
||
| 25 | */ |
||
| 26 | public static function createSelect($table = null, array $columns = null) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param string $table |
||
| 33 | * @param array $values |
||
| 34 | * |
||
| 35 | * @return Insert |
||
| 36 | */ |
||
| 37 | public static function createInsert($table = null, array $values = null) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param string $table |
||
| 44 | * @param array $values |
||
| 45 | * |
||
| 46 | * @return Update |
||
| 47 | */ |
||
| 48 | public static function createUpdate($table = null, array $values = null) |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @param string $table |
||
| 55 | * |
||
| 56 | * @return Delete |
||
| 57 | */ |
||
| 58 | public static function createDelete($table = null) |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @param QueryInterface $query |
||
| 65 | * |
||
| 66 | * @return Where |
||
| 67 | */ |
||
| 68 | public static function createWhere(QueryInterface $query) |
||
| 72 | |||
| 73 | /** |
||
| 74 | * @return Intersect |
||
| 75 | */ |
||
| 76 | public static function createIntersect() |
||
| 80 | |||
| 81 | /** |
||
| 82 | * @param Select $first |
||
| 83 | * @param Select $second |
||
| 84 | * |
||
| 85 | * @return Minus |
||
| 86 | */ |
||
| 87 | public static function createMinus(Select $first, Select $second) |
||
| 91 | |||
| 92 | /** |
||
| 93 | * @return Union |
||
| 94 | */ |
||
| 95 | public static function createUnion() |
||
| 99 | |||
| 100 | /** |
||
| 101 | * @return UnionAll |
||
| 102 | */ |
||
| 103 | public static function createUnionAll() |
||
| 107 | } |
||
| 108 |