com.ail.core.persistence.jdo
Class QueryResults

java.lang.Object
  extended by com.ail.core.Type
      extended by com.ail.core.persistence.jdo.QueryResults
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class QueryResults
extends Type

Version:
$Revision: 1.3 $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ail.core.Type
jXPathContext, NOT_PERSISTED
 
Constructor Summary
QueryResults()
           
 
Method Summary
 void addResult(java.lang.Object result)
          Add an instance of Object to the list associated with this object.
 java.util.Collection<java.lang.Object> getResult()
          Get the collection of instances of Object associated with this object.
 java.lang.Object getResult(int i)
          Fetch a spacific Object from the collection by index number.
 int getResultCount()
          Get a count of the number of Object instances associated with this object
 void removeResult(int i)
          Remove the element specified from the list.
 void removeResult(java.lang.Object result)
          Remove the specified instance of Object from the list.
 void setResult(java.util.Collection<java.lang.Object> result)
          Set the collection of instances of Object associated with this object.
 
Methods inherited from class com.ail.core.Type
addAttribute, clone, deleteLock, deleteSerialVersion, fetchJXPathContext, getAttribute, getAttribute, getAttributeCount, getForeignSystemId, getLock, getSerialVersion, getSystemId, hasLock, hasSerialVersion, hasSystemId, isPersisted, markAsNotPersisted, mergeWithDataFrom, removeAttribute, removeAttribute, setAttribute, setForeignSystemId, setLock, setSerialVersion, setSystemId, xpathGet, xpathGet, xpathIterate, xpathSet
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryResults

public QueryResults()
Method Detail

getResult

public java.util.Collection<java.lang.Object> getResult()
Get the collection of instances of Object associated with this object.

Returns:
result A collection of instances of Excess
See Also:
setResult(java.util.Collection)

setResult

public void setResult(java.util.Collection<java.lang.Object> result)
Set the collection of instances of Object associated with this object.

Parameters:
result - A collection of instances of Excess
See Also:
getResult()

getResultCount

public int getResultCount()
Get a count of the number of Object instances associated with this object

Returns:
Number of instances

getResult

public java.lang.Object getResult(int i)
Fetch a spacific Object from the collection by index number.

Parameters:
i - Index of element to return

removeResult

public void removeResult(int i)
Remove the element specified from the list.

Parameters:
i - Index of element to remove

removeResult

public void removeResult(java.lang.Object result)
Remove the specified instance of Object from the list.

Parameters:
result - Instance to be removed

addResult

public void addResult(java.lang.Object result)
Add an instance of Object to the list associated with this object.

Parameters:
result - Instance to add to list