@@ -449,7 +449,7 @@ public boolean insert(Object obj) throws Throwable {
449449 throw new SQLException ("This class does not have the table annotation" );
450450 }
451451
452- private static String checkAnnotations (Field c , boolean not_null ) {
452+ private String checkAnnotations (Field c , boolean not_null ) {
453453 String annotations = "" ;
454454 if (c .isAnnotationPresent (Key .class ))
455455 annotations += " PRIMARY KEY" ;
@@ -465,7 +465,7 @@ private static String checkAnnotations(Field c, boolean not_null) {
465465 * Developed by Paulo Iury
466466 * Method DELETE TABLE
467467 */
468- public static String deleteTable (Object obj ) throws SQLException {
468+ public String deleteTable (Object obj ) throws SQLException {
469469 Table persistable =
470470 obj .getClass ().getAnnotation (Table .class );
471471 if (persistable != null ) {
@@ -537,8 +537,8 @@ public DeleteColumn fieldBoolean(int value) {
537537 return this ;
538538 }
539539
540- public DeleteColumn field (String field ) {
541- SQLString += field ;
540+ public DeleteColumn column (String collumnName ) {
541+ SQLString += collumnName ;
542542 return this ;
543543 }
544544
@@ -547,7 +547,7 @@ public DeleteColumn writeSQL(String sql) {
547547 return this ;
548548 }
549549
550- public boolean execute () {
550+ public boolean execute () throws SQLException {
551551 SQLiteDatabase escrever = helperBD .getWritableDatabase ();
552552 try {
553553 escrever .execSQL ("DELETE FROM " + table + " " + SQLString );
0 commit comments