org.solovyev.android.db.properties
Class InsertPropertyDbExec
java.lang.Object
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
|
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 |
InsertPropertyDbExec
public InsertPropertyDbExec(@Nonnull
Object id,
@Nonnull
AProperty property,
@Nonnull
String tableName,
@Nonnull
String idColumnName,
@Nonnull
String propertyNameColumnName,
@Nonnull
String propertyValueColumnName)
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.