de.theappguys.winzigsql
Class Cruddable.CrudValue<T>

java.lang.Object
  extended by de.theappguys.winzigsql.Cruddable.CrudValue<T>
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Cruddable.CrudNotNullableValue, Cruddable.CrudNullableValue
Enclosing class:
Cruddable

public abstract class Cruddable.CrudValue<T>
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
protected  String dbFieldName
           
protected  int index
           
 
Constructor Summary
Cruddable.CrudValue(String dbFieldName)
           
 
Method Summary
protected abstract  void addToContentValues(android.content.ContentValues values)
           
 boolean equals(Object other)
           
protected  void fromCursor(android.database.Cursor cursor)
           
protected abstract  void fromCursor(int offset, android.database.Cursor cursor)
           
abstract  T get()
           
 String getFieldName()
           
 int hashCode()
           
abstract  boolean isNull()
           
abstract  boolean isNullable()
           
abstract  void parse(String s)
          Sets the value of this field as a String.
abstract  void set(T t)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

index

protected final int index

dbFieldName

protected final String dbFieldName
Constructor Detail

Cruddable.CrudValue

public Cruddable.CrudValue(String dbFieldName)
Method Detail

getFieldName

public String getFieldName()

set

public abstract void set(T t)

parse

public abstract void parse(String s)
Sets the value of this field as a String. The instance tries to parse the String and set the resulting value. If that fails, a runtime exception is thrown


get

public abstract T get()

isNullable

public abstract boolean isNullable()

isNull

public abstract boolean isNull()

fromCursor

protected void fromCursor(android.database.Cursor cursor)

fromCursor

protected abstract void fromCursor(int offset,
                                   android.database.Cursor cursor)

addToContentValues

protected abstract void addToContentValues(android.content.ContentValues values)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.