|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.queries.ReportQueryResult
public class ReportQueryResult
Purpose: A single row (type) result for a ReportQuery
Description: Represents a single row of attribute values (converted using mapping) for a ReportQuery. The attributes can be from various objects. Responsibilities:
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Constructor Summary | |
---|---|
ReportQueryResult(List<Object> results,
Object primaryKeyValues)
INTERNAL: Used to create test results |
|
ReportQueryResult(ReportQuery query,
org.eclipse.persistence.internal.sessions.AbstractRecord row,
Vector toManyResults)
|
Method Summary | |
---|---|
void |
clear()
PUBLIC: Clear the contents of the result. |
boolean |
contains(Object value)
PUBLIC: Check if the value is contained in the result. |
boolean |
containsKey(Object key)
PUBLIC: Check if the key is contained in the result. |
boolean |
containsValue(Object value)
PUBLIC: Check if the value is contained in the result. |
Enumeration |
elements()
OBSOLETE: Return an enumeration of the result values. |
Set |
entrySet()
PUBLIC: Returns a set of the keys. |
boolean |
equals(Object anObject)
PUBLIC: Compare if the two results are equal. |
boolean |
equals(ReportQueryResult result)
INTERNAL: Used in testing to compare if results are correct. |
Object |
get(Object name)
PUBLIC: Return the value for given item name. |
Object |
get(String name)
PUBLIC: Return the value for given item name. |
Object |
getByIndex(int index)
PUBLIC: Return the indexed value from result. |
Object |
getId()
PUBLIC: Return the Id for the result or null if not requested. |
List<String> |
getNames()
PUBLIC: Return the names of report items, provided to ReportQuery. |
Vector<Object> |
getPrimaryKeyValues()
Deprecated. |
String |
getResultKey()
INTERNAL: Return the unique key for this result |
List<Object> |
getResults()
PUBLIC: Return the results. |
boolean |
isEmpty()
PUBLIC: Return if the result is empty. |
Enumeration |
keys()
OBSOLETE: Return an enumeration of the result names. |
Set |
keySet()
PUBLIC: Returns a set of the keys. |
Object |
put(Object name,
Object value)
ADVANCED: Set the value for given item name. |
void |
putAll(Map map)
PUBLIC: Add all of the elements. |
Object |
readObject(Class javaClass,
Session session)
PUBLIC: If the PKs were retrieved with the attributes then this method can be used to read the real object from the database. |
Object |
remove(Object name)
INTERNAL: Remove the name key and value from the result. |
void |
setResults(List<Object> results)
INTERNAL: Set the results. |
int |
size()
PUBLIC: Return the number of name/value pairs in the result. |
Object[] |
toArray()
INTERNAL: Converts the ReportQueryResult to a simple array of values. |
List |
toList()
INTERNAL: Converts the ReportQueryResult to a simple list of values. |
String |
toString()
|
Collection |
values()
PUBLIC: Returns an collection of the values. |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
hashCode |
Constructor Detail |
---|
public ReportQueryResult(List<Object> results, Object primaryKeyValues)
public ReportQueryResult(ReportQuery query, org.eclipse.persistence.internal.sessions.AbstractRecord row, Vector toManyResults)
Method Detail |
---|
public void clear()
clear
in interface Map
public boolean contains(Object value)
public boolean containsKey(Object key)
containsKey
in interface Map
public boolean containsValue(Object value)
containsValue
in interface Map
public Enumeration elements()
values()
public Set entrySet()
entrySet
in interface Map
public boolean equals(Object anObject)
equals
in interface Map
equals
in class Object
public boolean equals(ReportQueryResult result)
public Object get(Object name)
get
in interface Map
public Object get(String name)
public Object getByIndex(int index)
public String getResultKey()
public List<String> getNames()
public Object getId()
@Deprecated public Vector<Object> getPrimaryKeyValues()
getId()
public List<Object> getResults()
public boolean isEmpty()
isEmpty
in interface Map
public Enumeration keys()
keySet()
public Set keySet()
keySet
in interface Map
public Object put(Object name, Object value)
put
in interface Map
public void putAll(Map map)
putAll
in interface Map
public Object readObject(Class javaClass, Session session)
public Object remove(Object name)
remove
in interface Map
public void setResults(List<Object> results)
public int size()
size
in interface Map
public Object[] toArray()
public List toList()
public String toString()
toString
in class Object
public Collection values()
values
in interface Map
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |