1 /* 2 * Copyright 2015-2018 HuntLabs.cn. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 module hunt.sql.builder.SQLDeleteBuilder; 17 import hunt.sql.builder.SQLBuilder; 18 19 abstract class SQLDeleteBuilder : SQLBuilder{ 20 21 SQLBuilder select(string[] column...) 22 { 23 return this; 24 } 25 26 SQLBuilder selectWithAlias(string column, string _alias) 27 { 28 return this; 29 } 30 31 SQLBuilder from(string table) 32 { 33 return this; 34 } 35 36 SQLBuilder from(string table, string _alias) 37 { 38 return this; 39 } 40 41 SQLBuilder orderBy(string[] columns...) 42 { 43 return this; 44 } 45 46 SQLBuilder groupBy(string expr) 47 { 48 return this; 49 } 50 51 SQLBuilder having(string expr) 52 { 53 return this; 54 } 55 56 SQLBuilder into(string expr) 57 { 58 return this; 59 } 60 61 SQLBuilder limit(int rowCount) 62 { 63 return this; 64 } 65 66 SQLBuilder offset(int offset) 67 { 68 return this; 69 } 70 71 SQLBuilder limit(int rowCount, int offset) 72 { 73 return this; 74 } 75 76 SQLBuilder where(string sql) 77 { 78 return this; 79 } 80 81 SQLBuilder whereAnd(string sql) 82 { 83 return this; 84 } 85 86 SQLBuilder whereOr(string sql) 87 { 88 return this; 89 } 90 91 SQLBuilder join(string table , string _alias = null, string cond = null) 92 { 93 return this; 94 } 95 96 SQLBuilder innerJoin(string table , string _alias = null, string cond = null) 97 { 98 return this; 99 } 100 101 SQLBuilder leftJoin(string table , string _alias = null, string cond = null) 102 { 103 return this; 104 } 105 106 SQLBuilder rightJoin(string table , string _alias = null, string cond = null) 107 { 108 return this; 109 } 110 111 override string toString() 112 { 113 return "SQLDeleteBuilder"; 114 } 115 }