com.waveset.object
Interface QueryResultRow

All Known Implementing Classes:
QueryResultRowAdapter

public interface QueryResultRow

An interface for an object that encapsulates one row of a QueryResult.


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.
 Type getType()
          Return the type of the object associated with this row.
 

Method Detail

getType

public Type getType()
Return the type of the object associated with this row.


getId

public java.lang.String getId()
Return the immutable of the object.


getName

public java.lang.String getName()
Return the name of the object.


getDisplayName

public java.lang.String getDisplayName()
Return the display name. Usually this will be a message catalog key.


getObject

public PersistentObject getObject()
Return the object.

This will only be non-null for rows returned by the getObjects methods.


getAttribute

public java.lang.Object getAttribute(java.lang.Object name)
Return one of the object summary attributes. This will only be non-null for rows returned by the listObjects methods.

The argument is passed as an Object rather than a String so Attribute objects may be used if desired.


getAttributes

public java.util.Map getAttributes()
Return a Map of all attribute name/values returned by the query.