Constructor and Description |
---|
CharacterLens() |
Modifier and Type | Method and Description |
---|---|
CharacterLens |
addToBundle(android.os.Bundle bndl,
java.lang.String sKey,
java.lang.Character val)
Determines the correct method in
Bundle to be used to add the
specified value to an existing bundle. |
CharacterLens |
addToContentValues(android.content.ContentValues vals,
java.lang.String sKey,
java.lang.Character val)
Determines the correct method in
ContentValues to be used to add
the specified value to a set of content values. |
java.lang.Character |
fromBundle(android.os.Bundle bndl,
java.lang.String sKey)
Determines the correct method in
Bundle to be used to fetch the
specified column, then returns that value. |
java.lang.Character |
fromCursor(android.database.Cursor crs,
java.lang.String sKey)
Determines the correct method in
Cursor to be used to fetch the
specified column, then returns that value. |
java.lang.String |
getSQLiteDataType()
Defines the SQLite data type to be used when writing a value into the
database.
|
java.lang.Character |
getSQLiteDefaultValue()
When a character cannot be null, we generate a null character.
|
java.lang.Character |
getValueFrom(SQLightable o,
java.lang.reflect.Field fld)
This implementation simply uses
Field.get(java.lang.Object) and tries to cast it to
the lens's template parameter type. |
java.lang.String |
toSQLiteString(java.lang.Character o)
Converts a Java thing's value into a string to be used in a SQLite query,
for example, in a
WHERE clause filter. |
getSQLiteDefaultString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSQLiteDefaultString
public java.lang.String getSQLiteDataType()
Refractor
getSQLiteDataType
in interface Refractor<java.lang.Character>
public java.lang.Character getSQLiteDefaultValue()
getSQLiteDefaultValue
in interface Refractor<java.lang.Character>
getSQLiteDefaultValue
in class Lens<java.lang.Character>
public java.lang.String toSQLiteString(java.lang.Character o)
Refractor
WHERE
clause filter.toSQLiteString
in interface Refractor<java.lang.Character>
toSQLiteString
in class Lens<java.lang.Character>
o
- the Java thing to be convertedpublic java.lang.Character getValueFrom(SQLightable o, java.lang.reflect.Field fld) throws java.lang.IllegalAccessException
Lens
Field.get(java.lang.Object)
and tries to cast it to
the lens's template parameter type. Actual implementation classes should
override this method if the data type is a primitive.getValueFrom
in interface Refractor<java.lang.Character>
getValueFrom
in class Lens<java.lang.Character>
o
- the object instance from which the value will be extractedfld
- the field from which the value will be extractedjava.lang.IllegalAccessException
public CharacterLens addToContentValues(android.content.ContentValues vals, java.lang.String sKey, java.lang.Character val)
Refractor
ContentValues
to be used to add
the specified value to a set of content values.addToContentValues
in interface Refractor<java.lang.Character>
vals
- the set of content valuessKey
- the content value keyval
- the value to be storedpublic CharacterLens addToBundle(android.os.Bundle bndl, java.lang.String sKey, java.lang.Character val)
Refractor
Bundle
to be used to add the
specified value to an existing bundle.addToBundle
in interface Refractor<java.lang.Character>
bndl
- the bundlesKey
- the field's keyval
- the value to be storedpublic java.lang.Character fromCursor(android.database.Cursor crs, java.lang.String sKey)
Refractor
Cursor
to be used to fetch the
specified column, then returns that value.fromCursor
in interface Refractor<java.lang.Character>
crs
- the cursor from which data should be fetchedsKey
- the data column namepublic java.lang.Character fromBundle(android.os.Bundle bndl, java.lang.String sKey)
Refractor
Bundle
to be used to fetch the
specified column, then returns that value.fromBundle
in interface Refractor<java.lang.Character>
bndl
- the bundle from which data should be fetchedsKey
- the data column name