com.waveset.object
Class QueryResultRowAdapter

java.lang.Object
  extended bycom.waveset.object.QueryResultRowAdapter
All Implemented Interfaces:
QueryResultRow

public class QueryResultRowAdapter
extends java.lang.Object
implements QueryResultRow

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

code_id

public static final java.lang.String code_id
See Also:
Constant Field Values
Constructor Detail

QueryResultRowAdapter

public QueryResultRowAdapter()

QueryResultRowAdapter

public QueryResultRowAdapter(RepositoryResult.Row row)

QueryResultRowAdapter

public QueryResultRowAdapter(PersistentObject obj)
Method Detail

setRow

public void setRow(RepositoryResult.Row row)

setObject

public void setObject(PersistentObject obj)

getRow

public RepositoryResult.Row getRow()

getType

public Type getType()
Description copied from interface: QueryResultRow
Return the type of the object associated with this row.

Specified by:
getType in interface QueryResultRow

getId

public java.lang.String getId()
Description copied from interface: QueryResultRow
Return the immutable of the object.

Specified by:
getId in interface QueryResultRow

getName

public java.lang.String getName()
Description copied from interface: QueryResultRow
Return the name of the object.

Specified by:
getName in interface QueryResultRow

getDisplayName

public java.lang.String getDisplayName()
Description copied from interface: QueryResultRow
Return the display name. Usually this will be a message catalog key.

Specified by:
getDisplayName in interface QueryResultRow

getObject

public PersistentObject getObject()
Description copied from interface: QueryResultRow
Return the object.

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

Specified by:
getObject in interface QueryResultRow

getAttribute

public java.lang.Object getAttribute(java.lang.Object name)
Description copied from interface: QueryResultRow
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.

Specified by:
getAttribute in interface QueryResultRow

getAttributes

public java.util.Map getAttributes()
Description copied from interface: QueryResultRow
Return a Map of all attribute name/values returned by the query.

Specified by:
getAttributes in interface QueryResultRow