org.solovyev.android.db.properties
Class RemovePropertiesDbExec

java.lang.Object
  extended by org.solovyev.android.db.properties.RemovePropertiesDbExec
All Implemented Interfaces:
DbExec

public class RemovePropertiesDbExec
extends Object
implements DbExec

User: serso Date: 9/2/12 Time: 8:17 PM


Field Summary
 
Fields inherited from interface org.solovyev.android.db.DbExec
SQL_ERROR
 
Constructor Summary
RemovePropertiesDbExec(Object id, String tableName, String idColumnName)
           
 
Method Summary
 long exec(android.database.sqlite.SQLiteDatabase db)
          Method executes database operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemovePropertiesDbExec

public RemovePropertiesDbExec(@Nonnull
                              Object id,
                              @Nonnull
                              String tableName,
                              @Nonnull
                              String idColumnName)
Method Detail

exec

public long exec(@Nonnull
                 android.database.sqlite.SQLiteDatabase db)
Description copied from interface: DbExec
Method executes database operation. If insert operation is done and error is occurred DbExec.SQL_ERROR is returned.

Specified by:
exec in interface DbExec
Parameters:
db - sqlite database instance
Returns:
number of affected rows (for update or delete) or newly generated ID (for insert)


Copyright © 2013. All Rights Reserved.