protected static class CqAttributesFactory.CqAttributesImpl extends java.lang.Object implements CqAttributes, CqAttributesMutator, java.lang.Cloneable, java.io.Serializable
Modifier | Constructor and Description |
---|---|
protected |
CqAttributesImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addCqListener(CqListener cql)
Adds a Cqlistener to the end of the list of Cqlisteners on this CqQuery.
|
java.lang.Object |
clone() |
CqListener |
getCqListener()
Returns the CqListener set with the CQ
|
CqListener[] |
getCqListeners()
Returns the CqListeners set with the CQ
|
void |
initCqListeners(CqListener[] addedListeners)
Removes all Cqlisteners, calling on each of them, and then adds each listener in the specified array.
|
void |
removeCqListener(CqListener cql)
Removes a Cqlistener from the list of Cqlisteners on this CqQuery.
|
public CqListener[] getCqListeners()
getCqListeners
in interface CqAttributes
CqListener
public CqListener getCqListener()
getCqListener
in interface CqAttributes
CqListener
public java.lang.Object clone()
clone
in class java.lang.Object
public void addCqListener(CqListener cql)
addCqListener
in interface CqAttributesMutator
cql
- the user defined cq listener to add to the CqQuery.java.lang.IllegalArgumentException
- if aListener
is nullpublic void initCqListeners(CqListener[] addedListeners)
initCqListeners
in interface CqAttributesMutator
addedListeners
- a possibly null or empty array of listeners to add to this CqQuery.java.lang.IllegalArgumentException
- if the newListeners
array has a null elementpublic void removeCqListener(CqListener cql)
CacheCallback.close()
will
be called on it; otherwise does nothing.removeCqListener
in interface CqAttributesMutator
cql
- the Cqlistener to remove from the CqQuery.java.lang.IllegalArgumentException
- if cl
is null