|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compoze.collab.QueryProfile
public class QueryProfile
Combines a Restriction
, FetchProfile
, Sort
and
depth to restrict what items and properties are retrieved and how the items
are sorted.
Constructor Summary | |
---|---|
QueryProfile()
Constructs a QueryProfile that returns minimum properties on all
items in the container in no particular order. |
|
QueryProfile(int iDepth)
Constructs a QueryProfile that can search below the current container. |
|
QueryProfile(Key[] keys)
Constructs a QueryProfile to only return certain properties in
addition to the minimum properties. |
|
QueryProfile(Key[] keys,
Sort sort)
Constructs a QueryProfile to only return certain properties in
addition to the minimum properties, including a specified sort . |
|
QueryProfile(Restriction restriction)
Constructs a QueryProfile that restricts the items returned. |
|
QueryProfile(Restriction restriction,
FetchProfile fetch,
Sort sort,
int iDepth)
Constructs a QueryProfile that restricts the items and properties returned,
will search to a specified depth and sorts the items. |
|
QueryProfile(Restriction restriction,
Key[] keys)
Constructs a QueryProfile that restricts the items returned. |
|
QueryProfile(Restriction restriction,
Key[] keys,
Sort sort,
int iDepth)
Constructs a QueryProfile that restricts the items and properties returned,
will search to a specified depth and sorts the items. |
|
QueryProfile(Restriction restriction,
Sort sort)
Constructs a QueryProfile that restricts the items returned,
returning items with the specified sort . |
|
QueryProfile(Sort sort)
Constructs a QueryProfile that sorts according to the specified
sort . |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
int |
getDepth()
Gets the query depth. |
FetchProfile |
getFetchProfile()
Gets the FetchProfile , which specifies which keys are to be
retrieved. |
int |
getLength()
Gets the desired end index. |
Restriction |
getRestriction()
Gets the restriction. |
Sort |
getSort()
Gets the sort. |
int |
getStartIndex()
Gets the start index. |
int |
hashCode()
|
void |
setDepth(int iDepth)
Sets the query depth. |
void |
setLength(int iLength)
Sets the desired length of items to be returned. |
void |
setStartIndex(int iStart)
Sets the desired start index of the matching subset (zero based). |
String |
toString()
|
void |
updateDigest(MessageDigest digest)
Updates the specified MessageDigest with the object's internal state. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public QueryProfile()
QueryProfile
that returns minimum properties on all
items in the container in no particular order.
public QueryProfile(Key[] keys)
QueryProfile
to only return certain properties in
addition to the minimum properties.
keys
- an array of keys to return (may be null
)public QueryProfile(Sort sort)
QueryProfile
that sorts according to the specified
sort
.
sort
- the sort order (null
means do not sort)public QueryProfile(Key[] keys, Sort sort)
QueryProfile
to only return certain properties in
addition to the minimum properties, including a specified sort
.
keys
- an array of keys to return (may be null
)sort
- the sort order (null
means do not sort)public QueryProfile(Restriction restriction, Key[] keys)
QueryProfile
that restricts the items returned.
restriction
- selects which items to return
(null
means no restriction)keys
- an array of keys to return (may be null
)public QueryProfile(Restriction restriction, Sort sort)
QueryProfile
that restricts the items returned,
returning items with the specified sort
.
restriction
- selects which items to return
(null
means no restriction)sort
- the sort order (null
means do not sort)public QueryProfile(Restriction restriction)
QueryProfile
that restricts the items returned.
Uses FetchProfile.MINIMUM
.
restriction
- selects which items to return
(null
means no restriction)public QueryProfile(int iDepth)
QueryProfile
that can search below the current container.
iDepth
- Search depth: -1
means infinite, 0
means current container only, 1
includes
the first child container, etc.public QueryProfile(Restriction restriction, Key[] keys, Sort sort, int iDepth)
QueryProfile
that restricts the items and properties returned,
will search to a specified depth and sorts the items.
restriction
, keys
, and sort
can be null
if not needed.
restriction
- restrict the items returned (null
means no restriction)keys
- keys for properties to return (may be null
to
indicate only minimum keys)sort
- item sort order (null
means no sort)iDepth
- Search depth: -1
means infinite, 0
means current container only, 1
includes
the first child container, etc.public QueryProfile(Restriction restriction, FetchProfile fetch, Sort sort, int iDepth)
QueryProfile
that restricts the items and properties returned,
will search to a specified depth and sorts the items.
restriction
, keys
, and sort
can be null
if not needed.
restriction
- restrict the items returned (null
means no restriction)fetch
- the FetchProfile
that specifies what keys
to retrieve.sort
- item sort order (null
means no sort order)iDepth
- Search depth: -1
means infinite, 0
means current container only, 1
includes
the first child container, etc.Method Detail |
---|
public FetchProfile getFetchProfile()
FetchProfile
, which specifies which keys are to be
retrieved.
FetchProfile
(not null
)public Restriction getRestriction()
Restriction
public Sort getSort()
Sort
; null
if not setpublic boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public void setDepth(int iDepth)
iDepth
- the depth:-1
: infinite depth 0
: immediate container contents only 1
: add child containers' contents 2
: add grandchild containers' contentspublic int getDepth()
setDepth(int)
public void setStartIndex(int iStart)
iStart
- the start index of the matching subset (zero based,
use -1 for the absolute start)public int getStartIndex()
setStartIndex(int)
public void setLength(int iLength)
iLength
- the count of items from the start index
(not zero, -1 for the absolute end)IContainer.getItems(QueryProfile,int,int)
public int getLength()
setLength(int)
public String toString()
toString
in class Object
Object.toString()
public void updateDigest(MessageDigest digest)
IDigestSupport
updateDigest
in interface IDigestSupport
digest
- the digest to update (not null
)
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |