|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.object.QueryResultRowAdapter
An interface for an object that encapsulates one row of a QueryResult.
Field Summary | |
static java.lang.String |
code_id
|
Constructor Summary | |
QueryResultRowAdapter()
|
|
QueryResultRowAdapter(PersistentObject obj)
|
|
QueryResultRowAdapter(RepositoryResult.Row row)
|
Method Summary | |
java.lang.Object |
getAttribute(java.lang.Object name)
Return one of the object summary attributes. |
java.util.Map |
getAttributes()
Return a Map of all attribute name/values returned by the query. |
java.lang.String |
getDisplayName()
Return the display name. |
java.lang.String |
getId()
Return the immutable of the object. |
java.lang.String |
getName()
Return the name of the object. |
PersistentObject |
getObject()
Return the object. |
RepositoryResult.Row |
getRow()
|
Type |
getType()
Return the type of the object associated with this row. |
void |
setObject(PersistentObject obj)
|
void |
setRow(RepositoryResult.Row row)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
Constructor Detail |
public QueryResultRowAdapter()
public QueryResultRowAdapter(RepositoryResult.Row row)
public QueryResultRowAdapter(PersistentObject obj)
Method Detail |
public void setRow(RepositoryResult.Row row)
public void setObject(PersistentObject obj)
public RepositoryResult.Row getRow()
public Type getType()
QueryResultRow
getType
in interface QueryResultRow
public java.lang.String getId()
QueryResultRow
getId
in interface QueryResultRow
public java.lang.String getName()
QueryResultRow
getName
in interface QueryResultRow
public java.lang.String getDisplayName()
QueryResultRow
getDisplayName
in interface QueryResultRow
public PersistentObject getObject()
QueryResultRow
This will only be non-null for rows returned by
the getObjects
methods.
getObject
in interface QueryResultRow
public java.lang.Object getAttribute(java.lang.Object name)
QueryResultRow
listObjects
methods.
The argument is passed as an Object rather than a String so Attribute objects may be used if desired.
getAttribute
in interface QueryResultRow
public java.util.Map getAttributes()
QueryResultRow
getAttributes
in interface QueryResultRow
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |