com.todoroo.andlib.data
Class AbstractModel.ContentValuesSavingVisitor

java.lang.Object
  extended by com.todoroo.andlib.data.AbstractModel.ContentValuesSavingVisitor
All Implemented Interfaces:
Property.PropertyVisitor<java.lang.Void,java.lang.Object>
Enclosing class:
AbstractModel

public static class AbstractModel.ContentValuesSavingVisitor
extends java.lang.Object
implements Property.PropertyVisitor<java.lang.Void,java.lang.Object>

Visitor that saves a value into a content values store

Author:
Tim Su

Constructor Summary
AbstractModel.ContentValuesSavingVisitor()
           
 
Method Summary
 void save(Property<?> property, android.content.ContentValues newStore, java.lang.Object value)
           
 java.lang.Void visitDouble(Property<java.lang.Double> property, java.lang.Object value)
           
 java.lang.Void visitInteger(Property<java.lang.Integer> property, java.lang.Object value)
           
 java.lang.Void visitLong(Property<java.lang.Long> property, java.lang.Object value)
           
 java.lang.Void visitString(Property<java.lang.String> property, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractModel.ContentValuesSavingVisitor

public AbstractModel.ContentValuesSavingVisitor()
Method Detail

save

public void save(Property<?> property,
                 android.content.ContentValues newStore,
                 java.lang.Object value)

visitDouble

public java.lang.Void visitDouble(Property<java.lang.Double> property,
                                  java.lang.Object value)
Specified by:
visitDouble in interface Property.PropertyVisitor<java.lang.Void,java.lang.Object>

visitInteger

public java.lang.Void visitInteger(Property<java.lang.Integer> property,
                                   java.lang.Object value)
Specified by:
visitInteger in interface Property.PropertyVisitor<java.lang.Void,java.lang.Object>

visitLong

public java.lang.Void visitLong(Property<java.lang.Long> property,
                                java.lang.Object value)
Specified by:
visitLong in interface Property.PropertyVisitor<java.lang.Void,java.lang.Object>

visitString

public java.lang.Void visitString(Property<java.lang.String> property,
                                  java.lang.Object value)
Specified by:
visitString in interface Property.PropertyVisitor<java.lang.Void,java.lang.Object>