|
Spring Social Facebook | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.social.facebook.api.FqlResult
public class FqlResult
Represents a single result item from an FQL query.
Given to an FqlResultMapper, in a way that is analogous to how a ResultSet is given to a RowMapper in Spring's JdbcTemplate.
| Constructor Summary | |
|---|---|
FqlResult(java.util.Map<java.lang.String,java.lang.Object> resultMap)
Constructs an FqlResult instance from a map. |
|
| Method Summary | ||
|---|---|---|
java.lang.Boolean |
getBoolean(java.lang.String fieldName)
Returns the value of the identified field as a Boolean. |
|
java.lang.Float |
getFloat(java.lang.String fieldName)
Returns the value of the identified field as a Float. |
|
java.lang.Integer |
getInteger(java.lang.String fieldName)
Returns the value of the identified field as an Integer. |
|
|
getList(java.lang.String fieldName,
FqlResultMapper<T> mapper)
Returns the value of the identified field as an object mapped by a given FqlResultMapper. |
|
java.lang.Long |
getLong(java.lang.String fieldName)
Returns the value of the identified field as a Long. |
|
java.lang.Object |
getObject(java.lang.String fieldName)
Returns the value of the identified field as a simple Object. |
|
|
getObject(java.lang.String fieldName,
FqlResultMapper<T> mapper)
Returns the value of the identified field as an object mapped by a given FqlResultMapper. |
|
java.lang.String |
getString(java.lang.String fieldName)
Returns the value of the identified field as a String. |
|
java.util.Date |
getTime(java.lang.String fieldName)
Returns the value of the identified field as a Date. |
|
boolean |
hasField(java.lang.String fieldName)
Checks for the existence of a field in the result set, whether null or non-null. |
|
boolean |
hasValue(java.lang.String fieldName)
Checks that a field exists and contains a non-null value. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FqlResult(java.util.Map<java.lang.String,java.lang.Object> resultMap)
| Method Detail |
|---|
public java.lang.String getString(java.lang.String fieldName)
fieldName - the name of the field
public java.lang.Integer getInteger(java.lang.String fieldName)
fieldName - the name of the field
FqlException - if the field cannot be expressed as an Integerpublic java.lang.Long getLong(java.lang.String fieldName)
fieldName - the name of the field
FqlException - if the field cannot be expressed as an Longpublic java.lang.Float getFloat(java.lang.String fieldName)
fieldName - the name of the field
FqlException - if the field cannot be expressed as an Floatpublic java.lang.Boolean getBoolean(java.lang.String fieldName)
fieldName - the name of the field
public java.util.Date getTime(java.lang.String fieldName)
fieldName - the name of the field
FqlException - if the field's value cannot be expressed as a long value from which a Date object can be constructed.public java.lang.Object getObject(java.lang.String fieldName)
fieldName - the name of the field
public <T> T getObject(java.lang.String fieldName,
FqlResultMapper<T> mapper)
FqlResultMapper.
fieldName - the name of the fieldmapper - an FqlResultMapper used to map the object date into a specific type.
FqlResultMapper.
FqlException - if the value of the field is not a nested object.
public <T> java.util.List<T> getList(java.lang.String fieldName,
FqlResultMapper<T> mapper)
FqlResultMapper.
fieldName - the name of the fieldmapper - an FqlResultMapper used to map the object date into a specific type.
FqlResultMapper.
FqlException - if the value of the field is not a list.public boolean hasField(java.lang.String fieldName)
fieldName - the name of the field to check existence of.
public boolean hasValue(java.lang.String fieldName)
fieldName - the name of the field to check existence/value of.
|
Spring Social Facebook | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||