Constructor and Description |
---|
StringLens() |
Modifier and Type | Method and Description |
---|---|
StringLens |
addToBundle(android.os.Bundle bndl,
java.lang.String sKey,
java.lang.String val)
Determines the correct method in
Bundle to be used to add the
specified value to an existing bundle. |
StringLens |
addToContentValues(android.content.ContentValues vals,
java.lang.String sKey,
java.lang.String val)
Determines the correct method in
ContentValues to be used to add
the specified value to a set of content values. |
java.lang.String |
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.String |
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.String |
getSQLiteDefaultValue()
Defines the non-null default string value as an empty string.
|
java.lang.String |
toSQLiteString(java.lang.String 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, getValueFrom
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSQLiteDefaultString, getValueFrom
public java.lang.String getSQLiteDataType()
Refractor
getSQLiteDataType
in interface Refractor<java.lang.String>
public java.lang.String getSQLiteDefaultValue()
getSQLiteDefaultValue
in interface Refractor<java.lang.String>
getSQLiteDefaultValue
in class Lens<java.lang.String>
null
public java.lang.String toSQLiteString(java.lang.String o)
Refractor
WHERE
clause filter.toSQLiteString
in interface Refractor<java.lang.String>
toSQLiteString
in class Lens<java.lang.String>
o
- the Java thing to be convertedpublic StringLens addToContentValues(android.content.ContentValues vals, java.lang.String sKey, java.lang.String val)
Refractor
ContentValues
to be used to add
the specified value to a set of content values.addToContentValues
in interface Refractor<java.lang.String>
vals
- the set of content valuessKey
- the content value keyval
- the value to be storedpublic StringLens addToBundle(android.os.Bundle bndl, java.lang.String sKey, java.lang.String val)
Refractor
Bundle
to be used to add the
specified value to an existing bundle.addToBundle
in interface Refractor<java.lang.String>
bndl
- the bundlesKey
- the field's keyval
- the value to be storedpublic java.lang.String 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.String>
crs
- the cursor from which data should be fetchedsKey
- the data column namepublic java.lang.String 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.String>
bndl
- the bundle from which data should be fetchedsKey
- the data column name