com.sap.ip.me.api.persist.query
Interface JQueryResultRow


public interface JQueryResultRow

Result row represents a single row in the result. You can read attribute values from it.

Author:
SAP

Method Summary
 java.lang.Object get(int index)
          Get result attribute based on index of attribute when creating the query.
 java.lang.Object get(JQueryAttribute attr)
          Get result attribute based on attribute descriptor used when creating the query.
 java.lang.Object get(java.lang.Object tag)
          Get result attribute based on attribute identifier.
 java.lang.Object[] getAll()
          Read all attributes of this result row.
 JQueryAttribute[] getAttributes()
          Get attributes that were selected by this query.
 int size()
          Get attribute count in this row.
 

Method Detail

size

public int size()
Get attribute count in this row.

Returns:
attribute count in this row.

get

public java.lang.Object get(JQueryAttribute attr)
                     throws java.lang.IllegalArgumentException
Get result attribute based on attribute descriptor used when creating the query.

Parameters:
attr - attribute descriptor.
Returns:
attribute value.
Throws:
java.lang.IllegalArgumentException - if this attribute is unknown.

get

public java.lang.Object get(int index)
                     throws java.lang.ArrayIndexOutOfBoundsException
Get result attribute based on index of attribute when creating the query.

Parameters:
index - attribute index.
Returns:
attribute value.
Throws:
java.lang.ArrayIndexOutOfBoundsException - if index is invalid.

get

public java.lang.Object get(java.lang.Object tag)
                     throws java.lang.IllegalArgumentException
Get result attribute based on attribute identifier.

Parameters:
tag - attribute identifier tag.
Returns:
attribute value.
Throws:
java.lang.IllegalArgumentException - if this tag is unknown.

getAll

public java.lang.Object[] getAll()
Read all attributes of this result row.

Returns:
all attributes in order as defined when creating query.

getAttributes

public JQueryAttribute[] getAttributes()
Get attributes that were selected by this query.

Returns:
array with attributes selected by this query.


Copyright © 2005 SAP AG. All Rights Reserved.