org.solovyev.android.db.properties
Class InsertPropertyDbExec

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

public class InsertPropertyDbExec
extends Object
implements DbExec

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


Field Summary
 
Fields inherited from interface org.solovyev.android.db.DbExec
SQL_ERROR
 
Constructor Summary
InsertPropertyDbExec(Object id, AProperty property, String tableName, String idColumnName, String propertyNameColumnName, String propertyValueColumnName)
           
 
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

InsertPropertyDbExec

public InsertPropertyDbExec(@Nonnull
                            Object id,
                            @Nonnull
                            AProperty property,
                            @Nonnull
                            String tableName,
                            @Nonnull
                            String idColumnName,
                            @Nonnull
                            String propertyNameColumnName,
                            @Nonnull
                            String propertyValueColumnName)
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.