public interface QueryNotifyEvent extends QueryEvent
This event must be handled by
QueryListener.onQueryNotify()
.
With this event the server result is always
Event.RESULT_OK
.
Modifier and Type | Field and Description |
---|---|
static int |
ACTION_ENTITY_ADD
Action-code: entity is on the server.
|
static int |
ACTION_ENTITY_DEL
Action-code: entity logically removed on the server.
|
RESULT_GENERIC_ERROR, RESULT_OK
Modifier and Type | Method and Description |
---|---|
int |
getAction()
Returns the server action associated with the entity available on this
event.
|
Entity |
getEntity()
Returns the entity of the current row in the result-set.
|
boolean |
getEOQ()
Returns the indication that the result-set is ended.
|
int |
getRowNumber()
Returns the index (1-based) of the current row in the result-set.
|
TimeStamp |
getTimeStamp()
Returns the entity timestamp.
|
getQuery
static final int ACTION_ENTITY_ADD
This value may be returned by getAction()
.
static final int ACTION_ENTITY_DEL
This value may be returned by getAction()
.
int getRowNumber()
The index of the first row of a result-set returned by
Query.create()
is 1.
The index of the first row of a result-set returned by
Query.queryRows()
is
firstRow
.
This method must be called only when the EOQ
indication is false
.
true
TimeStamp getTimeStamp()
This method must be called only when the EOQ
indication is false
.
null
is returned when the EOQ
indication is true
or if entity timestamp is not
sent by the server.Entity getEntity()
This method must be called only when the EOQ
indication is false
.
null
is returned when the EOQ
indication is true
.int getAction()
The possible returned values are described in the Field Summary section.
null
.boolean getEOQ()
If the query result-set computed by the server, as an aswer to a correct
Query.create()
or
Query.queryRows()
, is composed by N
entities then the
QueryListener.onQueryNotify()
method
(with a QueryNotifyEvent
as parameter) will be invoked N+1 times:
N times with each of the N entities (and this EOQ indication equals to
false
) and one more time with this EOQ indication equals
to true
.
Submit a bug or feature to FT\API Programming Support