|
GemFire 5.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.gemstone.gemfire.cache.query.CqAttributesFactory
public class CqAttributesFactory
The factory class for the CqAttributes instance. This provides the CqListener
setter methods. This class maintains state for and creates new instances of the
CqAttributes interface for new CqQuery instances.
If you create a factory with the default constructor, then the factory is set
up to create attributes with all default settings. You can also create a factory
by providing a CqAttributes, which will set up the new factory with
the settings provided in that attributes instance.
Once a CqAttributes is created, it can only be modified
after it has been used to create a CqQuery.
CqAttributes| Constructor Summary | |
|---|---|
CqAttributesFactory()
Creates a new instance of AttributesFactory ready to create a CqAttributes with default settings. |
|
CqAttributesFactory(CqAttributes cqAttributes)
Creates a new instance of CqAttributesFactory ready to create a CqAttributes with the same settings as those in the
specified CqAttributes. |
|
| Method Summary | |
|---|---|
void |
addCqListener(CqListener cqListener)
Adds a CQ listener to the end of the list of cq listeners on this factory. |
CqAttributes |
create()
Creates a CqAttributes with the current settings. |
void |
initCqListeners(CqListener[] cqListeners)
Removes all Cq listeners and then adds each listener in the specified array. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CqAttributesFactory()
CqAttributes with default settings.
public CqAttributesFactory(CqAttributes cqAttributes)
CqAttributes with the same settings as those in the
specified CqAttributes.
cqAttributes - the CqAttributes used to initialize this
AttributesFactory| Method Detail |
|---|
public void addCqListener(CqListener cqListener)
cqListener - the CqListener to add to the factory.
IllegalArgumentException - if cqListener is nullpublic void initCqListeners(CqListener[] cqListeners)
cqListeners - a possibly null or empty array of listeners to add to this
factory.
IllegalArgumentException - if the cqListeners array has a
null elementpublic CqAttributes create()
CqAttributes with the current settings.
CqAttributes
|
GemFire 5.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||