org.solovyev.android.db.properties
Class SqliteAPropertyDao

java.lang.Object
  extended by org.solovyev.android.db.AbstractSQLiteHelper
      extended by org.solovyev.android.db.properties.SqliteAPropertyDao
All Implemented Interfaces:
APropertyDao

public class SqliteAPropertyDao
extends AbstractSQLiteHelper
implements APropertyDao

User: serso Date: 8/20/12 Time: 8:40 PM


Field Summary
 
Fields inherited from class org.solovyev.android.db.AbstractSQLiteHelper
MAX_IN_COUNT
 
Constructor Summary
SqliteAPropertyDao(android.content.Context context, android.database.sqlite.SQLiteOpenHelper sqliteOpenHelper, String tableName, String idColumnName, String propertyNameColumnName, String propertyValueColumnName)
           
 
Method Summary
 void insertProperties(Object id, Collection<AProperty> properties)
           
 void insertProperty(Object id, AProperty property)
           
 List<AProperty> loadPropertiesById(Object id)
           
 void removePropertiesById(Object id)
           
 
Methods inherited from class org.solovyev.android.db.AbstractSQLiteHelper
getContext, getSqliteOpenHelper
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqliteAPropertyDao

public SqliteAPropertyDao(@Nonnull
                          android.content.Context context,
                          @Nonnull
                          android.database.sqlite.SQLiteOpenHelper sqliteOpenHelper,
                          @Nonnull
                          String tableName,
                          @Nonnull
                          String idColumnName,
                          @Nonnull
                          String propertyNameColumnName,
                          @Nonnull
                          String propertyValueColumnName)
Method Detail

loadPropertiesById

@Nonnull
public List<AProperty> loadPropertiesById(@Nonnull
                                                  Object id)
Specified by:
loadPropertiesById in interface APropertyDao

removePropertiesById

public void removePropertiesById(@Nonnull
                                 Object id)
Specified by:
removePropertiesById in interface APropertyDao

insertProperty

public void insertProperty(@Nonnull
                           Object id,
                           @Nonnull
                           AProperty property)
Specified by:
insertProperty in interface APropertyDao

insertProperties

public void insertProperties(@Nonnull
                             Object id,
                             @Nonnull
                             Collection<AProperty> properties)
Specified by:
insertProperties in interface APropertyDao


Copyright © 2013. All Rights Reserved.