|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--arlut.csd.ganymede.QueryResult
This class is a serializable object-list result object, which conveys results from a query/list operation along with methods that can be used to extract the results out of the query/list.
| Field Summary | |
(package private) java.lang.StringBuffer |
buffer
|
static arlut.csd.Util.Compare |
comparator
|
(package private) static boolean |
debug
|
private boolean |
forTransport
|
(package private) java.util.Vector |
handles
|
(package private) arlut.csd.Util.VecSortInsert |
inserter
|
(package private) java.util.Hashtable |
invidHash
|
(package private) java.util.Vector |
invidList
|
(package private) java.util.Hashtable |
labelHash
|
(package private) java.util.Vector |
labelList
|
(package private) static long |
serialVersionUID
|
private boolean |
unpacked
|
| Constructor Summary | |
QueryResult()
|
|
QueryResult(boolean forTransport)
Constructor. |
|
| Method Summary | |
void |
addRow(arlut.csd.ganymede.Invid invid,
java.lang.String label,
boolean editable)
This method is used to add an object's information to the QueryResult's serializable buffer. |
void |
addRow(arlut.csd.ganymede.Invid invid,
java.lang.String label,
boolean inactive,
boolean expirationSet,
boolean removalSet,
boolean editable)
This method is used to add an object's information to the QueryResult's serializable buffer. |
void |
addRow(arlut.csd.ganymede.ObjectHandle handle)
This method is used to add an object's information to the QueryResult's serializable buffer. |
void |
append(arlut.csd.ganymede.QueryResult result)
This is a pre-serialization method for concatenating another (for transport) QueryResult to ourself. |
boolean |
containsInvid(arlut.csd.ganymede.Invid invid)
This method is provided for the server to optimize it's QueryResult loading operations, and is not intended for use post-serialization. |
boolean |
containsLabel(java.lang.String label)
This method is provided for the server to optimize it's QueryResult loading operations, and is not intended for use post-serialization. |
java.lang.String |
getBuffer()
For debug. |
java.util.Vector |
getHandles()
This method is used by arlut.csd.ganymede.client.objectList to get access to the raw and sorted vector of ObjectHandle's post-serialization. Note that this method does not clone our handles vector, we'll just assume that whatever the objectList class on the client does to this vector, we're not going to disturb anyone else who will be looking at the handle list on this query result object. |
arlut.csd.ganymede.Invid |
getInvid(int row)
|
java.util.Vector |
getInvids()
|
java.lang.String |
getLabel(int row)
|
java.util.Vector |
getLabels()
|
arlut.csd.JDataComponent.listHandle |
getListHandle(int row)
Returns the listHandle for this row. |
java.util.Vector |
getListHandles()
Returns a complete listHandle
Vector representation of the results included in this QueryResult. |
java.util.Vector |
getListHandles(boolean includeInactives,
boolean includeNonEditables)
Returns a (possibly filtered) listHandle
Vector representation of the results included in this QueryResult. |
arlut.csd.ganymede.ObjectHandle |
getObjectHandle(int row)
Returns the ObjectHandle for this row. |
arlut.csd.ganymede.QueryResult |
intersection(arlut.csd.ganymede.QueryResult operand)
This method returns a QueryResult which holds the intersection of the contents of this QueryResult and the contents of operand. |
boolean |
isForTransport()
|
int |
size()
|
private void |
unpackBuffer()
Private method to handle building up our datastructure on the post-serialization side. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
static final long serialVersionUID
static final boolean debug
public static arlut.csd.Util.Compare comparator
transient java.util.Hashtable invidHash
transient java.util.Hashtable labelHash
private boolean forTransport
java.lang.StringBuffer buffer
private transient boolean unpacked
transient java.util.Vector handles
transient java.util.Vector labelList
transient java.util.Vector invidList
transient arlut.csd.Util.VecSortInsert inserter
| Constructor Detail |
public QueryResult()
public QueryResult(boolean forTransport)
forTransport - If true, this QueryResult will prepare information
fed into it for transport by maintaining a StringBuffer.| Method Detail |
public void addRow(arlut.csd.ganymede.Invid invid,
java.lang.String label,
boolean editable)
public void addRow(arlut.csd.ganymede.ObjectHandle handle)
public void addRow(arlut.csd.ganymede.Invid invid,
java.lang.String label,
boolean inactive,
boolean expirationSet,
boolean removalSet,
boolean editable)
public java.util.Vector getHandles()
public arlut.csd.ganymede.Invid getInvid(int row)
public java.util.Vector getInvids()
public java.util.Vector getLabels()
public java.lang.String getLabel(int row)
public boolean isForTransport()
public int size()
public java.util.Vector getListHandles()
listHandle
Vector representation of the results included in this QueryResult.
public java.util.Vector getListHandles(boolean includeInactives,
boolean includeNonEditables)
listHandle
Vector representation of the results included in this QueryResult.
includeInactives - if false, inactive objects' handles won't be included
in the returned vectorincludeNonEditables - if false, non-editable objects' handles won't be included
in the returned vectorpublic arlut.csd.JDataComponent.listHandle getListHandle(int row)
public arlut.csd.ganymede.ObjectHandle getObjectHandle(int row)
public boolean containsInvid(arlut.csd.ganymede.Invid invid)
public boolean containsLabel(java.lang.String label)
public void append(arlut.csd.ganymede.QueryResult result)
public arlut.csd.ganymede.QueryResult intersection(arlut.csd.ganymede.QueryResult operand)
private void unpackBuffer()
public java.lang.String getBuffer()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||