Skip to content

Commit 2e3e5b1

Browse files
committed
mudança no nome do método
1 parent 613518a commit 2e3e5b1

2 files changed

Lines changed: 13 additions & 11 deletions

File tree

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ Agora vamos mostrar o passo a passo de como utilizar:
99
<a href="">v1.0.2</a>
1010
<a href="">v1.0.3</a>
1111
<a href="">v1.0.4</a>
12-
<a href="">v1.0.5</a>
12+
<a href="">v1.0.5</a>
13+
<a href="">v1.0.6</a>
14+
<a href="">v1.0.7</a>
1315

1416
### Importando a lib para o projeto:
1517
```groovy
@@ -132,7 +134,7 @@ SimpleSQL simpleSql = new SimpleSQL(new HelperBD(this));
132134
List<Pessoa> list = simpleSQL.selectTable(new Pessoa())
133135
.fields(new String[]{"*"})
134136
.where()
135-
.collumn("id")
137+
.column("id")
136138
.equals()
137139
.fieldInt(1)
138140
.execute();
@@ -157,7 +159,7 @@ boolean result = simpleSQL.updateTable(new Pessoa())
157159
.set(new String[]{"nome","idade"})
158160
.values(new String[]{"Novo Nome","Nova Idade"})
159161
.where()
160-
.collumn("id")
162+
.column("id")
161163
.equals()
162164
.fieldInt(1)
163165
.execute()

simplesql/src/main/java/com/simplesql/simplesql/config/SimpleSQL.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public Update updateTable(Object typeObject) {
4747
* Method SELECT
4848
*/
4949
public class Select {
50-
private String tableName, field, writeSQL, collumn, table;
50+
private String tableName, field, writeSQL, column, table;
5151
private String[] fields;
5252
private boolean where, equals, between, or, on, and, like, innerJoin, leftJoin, rightJoin, fullJoin;
5353
private Object value;
@@ -64,9 +64,9 @@ public Select(Object typeObject) {
6464
}
6565

6666

67-
public Select collumn(String collumn) {
68-
this.collumn = collumn;
69-
SQLString = SQLString + collumn;
67+
public Select column(String column) {
68+
this.column = column;
69+
SQLString = SQLString + column;
7070
return this;
7171
}
7272

@@ -261,7 +261,7 @@ else if (field.getType() == short.class)
261261

262262
public class Update{
263263
private Object typeObject;
264-
private String tableName, field, writeSQL, collumn, table, stringSet;
264+
private String tableName, field, writeSQL, column, table, stringSet;
265265
private String SQLString;
266266
private Object value;
267267
private String[] values, fields;
@@ -317,8 +317,8 @@ public Update and(){
317317
return this;
318318
}
319319

320-
public Update collumn(String name){
321-
this.collumn = name;
320+
public Update column(String name){
321+
this.column = name;
322322
SQLString = SQLString +" "+name+" ";
323323
return this;
324324
}
@@ -597,7 +597,7 @@ public DeleteColumn fieldBoolean(int value) {
597597
return this;
598598
}
599599

600-
public DeleteColumn field(String field) {
600+
public DeleteColumn column(String field) {
601601
SQLString += field;
602602
return this;
603603
}

0 commit comments

Comments
 (0)