@@ -33,8 +33,8 @@ public Select selectTable(Object typeObject) {
3333 return new Select (typeObject );
3434 }
3535
36- public DeleteColumn deleteColumn (String tableName ) {
37- return new DeleteColumn (tableName );
36+ public DeleteColumn deleteColumn (Object objectType ) {
37+ return new DeleteColumn (objectType );
3838 }
3939
4040
@@ -99,14 +99,14 @@ public Select fieldLong(long value) {
9999 return this ;
100100 }
101101
102- public Select fieldFloat (int value ) {
102+ public Select fieldFloat (float value ) {
103103 this .value = value ;
104104 SQLString = SQLString + value ;
105105
106106 return this ;
107107 }
108108
109- public Select fieldBoolean (int value ) {
109+ public Select fieldBoolean (boolean value ) {
110110 this .value = value ;
111111 SQLString = SQLString + value ;
112112
@@ -346,14 +346,14 @@ public Update fieldLong(long value) {
346346 return this ;
347347 }
348348
349- public Update fieldFloat (int value ) {
349+ public Update fieldFloat (float value ) {
350350 this .value = value ;
351351 SQLString = SQLString + value ;
352352
353353 return this ;
354354 }
355355
356- public Update fieldBoolean (int value ) {
356+ public Update fieldBoolean (boolean value ) {
357357 this .value = value ;
358358 SQLString = SQLString + value ;
359359
@@ -574,9 +574,9 @@ public String deleteTable(Object obj, SQLiteDatabase db) {
574574 public class DeleteColumn {
575575 private String table , SQLString ;
576576
577- public DeleteColumn (String tableName ) {
578- this .table = tableName ;
579- this .SQLString = "DELETE FROM " +tableName ;
577+ public DeleteColumn (Object objectType ) {
578+ this .table = objectType . getClass (). getSimpleName () ;
579+ this .SQLString = "DELETE FROM " +table ;
580580 }
581581
582582 public DeleteColumn equals () {
@@ -619,12 +619,12 @@ public DeleteColumn fieldLong(long value) {
619619 return this ;
620620 }
621621
622- public DeleteColumn fieldFloat (int value ) {
622+ public DeleteColumn fieldFloat (float value ) {
623623 SQLString += value ;
624624 return this ;
625625 }
626626
627- public DeleteColumn fieldBoolean (int value ) {
627+ public DeleteColumn fieldBoolean (boolean value ) {
628628 SQLString += value ;
629629 return this ;
630630 }
0 commit comments