private static class QueryWrapper.DefaultDelegate extends java.lang.Object implements P2JQuery
P2JQuery which is used as the
default delegate for the enclosing QueryWrapper. This
implementation behaves as a query which returns no results would,
except that its isValid method returns false,
as an indication that it is a "fake" query for those callers to whom
this information is relevant.P2JQuery.Parameter, P2JQuery.ParamResolver, P2JQuery.QueryEventListener, P2JQuery.QueryOpenedListener| Modifier | Constructor and Description |
|---|---|
private |
DefaultDelegate() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_getNext()
Conversion of GET-NEXT method (KW_GET_NEXT).
|
boolean |
_isOffEnd()
Default implementation which reports the query is off-end.
|
void |
addAccumulator(Accumulator accum)
No-op.
|
void |
addAccumulator(Accumulator accum,
boolean deferred)
No-op.
|
logical |
addBuffer(Buffer buf)
Adds one new buffer to a query object or dynamic DataSet object,
without affecting the other buffers, if any.
|
logical |
addBuffer(handle bufHandle)
Adds one new buffer to a query object or dynamic DataSet object,
without affecting the other buffers, if any.
|
boolean |
addDynamicFilter(FieldReference fr,
BaseDataType val,
java.lang.String format)
Adds a new constraint term to the where predicate of this query, effectively filtering out
any rows whose referenced field does not match the requested value.
|
P2JQuery |
addExternalBuffers(DataModelObject... dmos)
Add one or more buffers to the list of those which this query references externally.
|
void |
addRepositionListener(RepositionListener listener)
No-op.
|
boolean |
backward(int rows)
No-op.
|
boolean |
backward(NumberType rows)
No-op.
|
handle |
bufferHandle()
Conversion of GET-BUFFER-HANDLE() method (KW_GET_BUFH).
|
handle |
bufferHandle(character bufferName)
Conversion of GET-BUFFER-HANDLE() method (KW_GET_BUFH).
|
handle |
bufferHandle(int bufferSequenceNumber)
Conversion of GET-BUFFER-HANDLE() method (KW_GET_BUFH).
|
handle |
bufferHandle(int64 bufferSequenceNumber)
Conversion of GET-BUFFER-HANDLE() method (KW_GET_BUFH).
|
handle |
bufferHandle(java.lang.String bufferName)
Conversion of GET-BUFFER-HANDLE() method (KW_GET_BUFH).
|
void |
changeForwardOnly(boolean forwardOnly)
Conversion of FORWARD-ONLY attribute (KW_FWD_ONLY).
|
void |
changeForwardOnly(logical forwardOnly)
Conversion of FORWARD-ONLY attribute (KW_FWD_ONLY).
|
void |
cleanup()
No-op.
|
void |
clearDynamicFilters()
Clears any dynamically filters added at runtime.
|
void |
clearResults()
No-op.
|
void |
close()
No-op.
|
logical |
createResultListEntry()
No-op.
|
boolean |
current()
No-op.
|
boolean |
current(LockType lockType)
No-op.
|
integer |
currentRow()
Default implementation which reports unknown value as the current
row to indicate an empty results list.
|
integer |
currentRowImpl()
Default implementation which reports unknown value as the current
row to indicate an empty results list.
|
logical |
deleteResultListEntry()
No-op.
|
logical |
deleteResultListEntry(boolean allowBetweenRows)
No-op.
|
void |
exclude(DataModelObject dmo,
java.lang.String... fields)
No-op.
|
boolean |
first()
No-op.
|
boolean |
first(LockType lockType)
No-op.
|
boolean |
forward(int rows)
No-op.
|
boolean |
forward(NumberType rows)
No-op.
|
logical |
forwardOnly()
Conversion of FORWARD-ONLY attribute (KW_FWD_ONLY).
|
integer |
getCache()
Getter for the CACHE attribute.
|
logical |
getCurrent()
Conversion of GET-CURRENT() method (KW_GET_CUR).
|
logical |
getCurrent(LockType lockType)
Conversion of GET-CURRENT() method (KW_GET_CUR).
|
logical |
getCurrent(long lock)
Conversion of GET-CURRENT() method (KW_GET_CUR).
|
logical |
getCurrent(long lock,
long nowait)
Conversion of GET-CURRENT() method (KW_GET_CUR).
|
logical |
getCurrent(long lock,
NumberType nowait)
Conversion of GET-CURRENT() method (KW_GET_CUR).
|
logical |
getCurrent(NumberType lock)
Conversion of GET-CURRENT() method (KW_GET_CUR).
|
logical |
getCurrent(NumberType lock,
long nowait)
Conversion of GET-CURRENT() method (KW_GET_CUR).
|
logical |
getCurrent(NumberType lock,
NumberType nowait)
Conversion of GET-CURRENT() method (KW_GET_CUR).
|
logical |
getFirst()
Conversion of GET-FIRST method (KW_GET_1ST).
|
logical |
getFirst(LockType lockType)
Conversion of GET-FIRST method (KW_GET_1ST).
|
logical |
getFirst(long lock)
Conversion of GET-FIRST method (KW_GET_1ST).
|
logical |
getFirst(long lock,
long nowait)
Conversion of GET-FIRST method (KW_GET_1ST).
|
logical |
getFirst(long lock,
NumberType nowait)
Conversion of GET-FIRST method (KW_GET_1ST).
|
logical |
getFirst(NumberType lock)
Conversion of GET-FIRST method (KW_GET_1ST).
|
logical |
getFirst(NumberType lock,
long nowait)
Conversion of GET-FIRST method (KW_GET_1ST).
|
logical |
getFirst(NumberType lock,
NumberType nowait)
Conversion of GET-FIRST method (KW_GET_1ST).
|
logical |
getLast()
Conversion of GET-LAST method (KW_GET_LAST).
|
logical |
getLast(LockType lockType)
Conversion of GET-LAST method (KW_GET_LAST).
|
logical |
getLast(long lock)
Conversion of GET-LAST method (KW_GET_LAST).
|
logical |
getLast(long lock,
long nowait)
Conversion of GET-LAST method (KW_GET_LAST).
|
logical |
getLast(long lock,
NumberType nowait)
Conversion of GET-LAST method (KW_GET_LAST).
|
logical |
getLast(NumberType lock)
Conversion of GET-LAST method (KW_GET_LAST).
|
logical |
getLast(NumberType lock,
long nowait)
Conversion of GET-LAST method (KW_GET_LAST).
|
logical |
getLast(NumberType lock,
NumberType nowait)
Conversion of GET-LAST method (KW_GET_LAST).
|
logical |
getNext(LockType lockType)
Conversion of GET-NEXT method (KW_GET_NEXT).
|
logical |
getNext(long lock)
Conversion of GET-NEXT method (KW_GET_NEXT).
|
logical |
getNext(long lock,
long nowait)
Conversion of GET-NEXT method (KW_GET_NEXT).
|
logical |
getNext(long lock,
NumberType nowait)
Conversion of GET-NEXT method (KW_GET_NEXT).
|
logical |
getNext(NumberType lock)
Conversion of GET-NEXT method (KW_GET_NEXT).
|
logical |
getNext(NumberType lock,
long nowait)
Conversion of GET-NEXT method (KW_GET_NEXT).
|
logical |
getNext(NumberType lock,
NumberType nowait)
Conversion of GET-NEXT method (KW_GET_NEXT).
|
integer |
getNumResults()
Conversion of NUM-RESULTS attribute (KW_NUM_RES).
|
OffEnd |
getOffEnd()
Default implementation which reports that the query has the front
off-end.
|
java.util.ArrayList<QueryOffEndListener> |
getOffEndListeners()
Get all the off-end listeners associated with this query.
|
logical |
getPrevious()
Conversion of GET-PREV method (KW_GET_PREV).
|
logical |
getPrevious(LockType lockType)
Conversion of GET-PREV method (KW_GET_PREV).
|
logical |
getPrevious(long lock)
Conversion of GET-PREV method (KW_GET_PREV).
|
logical |
getPrevious(long lock,
long nowait)
Conversion of GET-PREV method (KW_GET_PREV).
|
logical |
getPrevious(long lock,
NumberType nowait)
Conversion of GET-PREV method (KW_GET_PREV).
|
logical |
getPrevious(NumberType lock)
Conversion of GET-PREV method (KW_GET_PREV).
|
logical |
getPrevious(NumberType lock,
long nowait)
Conversion of GET-PREV method (KW_GET_PREV).
|
logical |
getPrevious(NumberType lock,
NumberType nowait)
Conversion of GET-PREV method (KW_GET_PREV).
|
int |
getTableCount()
Get the number of tables joined by this query.
|
logical |
hasAny()
Indicate whether a request to find the first result of this query would
succeed or fail.
|
logical |
hasAny(LockType lockType)
Indicate whether a request to find the first result of this query would
succeed or fail.
|
logical |
hasAny(java.lang.Object[] values)
Indicate whether a request to find the first result of this query would
succeed or fail.
|
logical |
hasAny(java.lang.Object[] values,
LockType lockType)
Indicate whether a request to find the first result of this query would
succeed or fail.
|
logical |
hasOne()
Indicate whether this query would produce a unique result.
|
logical |
hasOne(LockType lockType)
Indicate whether this query would produce a unique result.
|
logical |
hasOne(java.lang.Object[] values)
Indicate whether this query would produce a unique result.
|
logical |
hasOne(java.lang.Object[] values,
LockType lockType)
Indicate whether this query would produce a unique result.
|
void |
include(DataModelObject dmo,
java.lang.String... fields)
No-op.
|
character |
indexInformation()
Conversion of INDEX-INFORMATION attribute (KW_IDX_INFO).
|
character |
indexInformation(int n)
Conversion of INDEX-INFORMATION attribute (KW_IDX_INFO).
|
character |
indexInformation(NumberType n)
Conversion of INDEX-INFORMATION attribute (KW_IDX_INFO).
|
boolean |
isBrowsed()
Is this query associated with a browse widget or not?
|
boolean |
isFetchOnReposition()
Default implementation which reports query is not set to fetch the
next record after a reposition.
|
boolean |
isIndexedReposition()
Indicate whether this query is optimized using indexed reposition.
|
boolean |
isIterating()
Indicate whether the query is defined inside the scope of FOR EACH block.
|
boolean |
isNativelyPreselect()
Indicate whether this query is a preselect query by its nature.
|
logical |
isOffEnd()
Default implementation which reports the query is off-end.
|
logical |
isOpen()
Conversion of IS-OPEN attribute (KW_IS_OPEN).
|
boolean |
isPreselect()
Indicate whether this query preselects all of its results.
|
boolean |
isPresort()
Indicate whether the delegate query is of presort type.
|
boolean |
isScrolling()
Indicate whether this query was defined as SCROLLING.
|
logical |
isSkipDeletedRecord()
Get value of SKIP-DELETED-RECORD attribute of the query.
|
boolean |
isStandalone()
Indicate whether this query stands alone, or is the component of
another query, or is wrapped by a query wrapper.
|
boolean |
last()
No-op.
|
boolean |
last(LockType lockType)
No-op.
|
boolean |
next()
No-op.
|
boolean |
next(LockType lockType)
No-op.
|
void |
notifyRepositionListeners(boolean closed,
boolean error,
int targetRepositionRow)
No-op.
|
integer |
numBuffers()
Conversion of NUM-BUFFERS() method (KW_NUM_BUFF).
|
void |
open()
No-op.
|
logical |
prepare(character predicate)
Compiles a predicate (query condition).
|
logical |
prepare(java.lang.String predicate)
Compiles a predicate (query condition).
|
character |
prepareString()
Conversion of PREPARE_STRING attribute (KW_PREP_STR).
|
boolean |
previous()
No-op.
|
boolean |
previous(LockType lockType)
No-op.
|
logical |
queryBackward(int rows)
Conversion of REPOSITION-BACKWARD() method (KW_REPOS_B).
|
logical |
queryBackward(NumberType rows)
Conversion of REPOSITION-BACKWARD() method (KW_REPOS_B).
|
logical |
queryClose()
Conversion of QUERY-CLOSE() method (KW_QRY_CLOS).
|
logical |
queryForward(int rows)
Conversion of REPOSITION-FORWARD() method (KW_REPOS_F).
|
logical |
queryForward(NumberType rows)
Conversion of REPOSITION-FORWARD() method (KW_REPOS_F).
|
logical |
queryOpen()
Opens a query object.
|
logical |
queryReposition(int n)
Conversion of REPOSITION-TO-ROW() method (KW_REPOS_2R).
|
logical |
queryReposition(NumberType n)
Conversion of REPOSITION-TO-ROW() method (KW_REPOS_2R).
|
logical |
queryRepositionByID(character rowId)
Conversion of REPOSITION-TO-ROWID() method (KW_REPOS_2I).
|
logical |
queryRepositionByID(rowid id1,
rowid... joinIDs)
Conversion of REPOSITION-TO-ROWID() method (KW_REPOS_2I).
|
void |
releaseBuffers()
No-op.
|
void |
removeRepositionListener(RepositionListener listener)
No-op.
|
void |
reposition(int row)
No-op.
|
void |
reposition(NumberType row)
No-op.
|
boolean |
repositionByID(java.lang.Long... joinIDs)
No-op.
|
void |
repositionByID(recid id)
No-op.
|
void |
repositionByID(rowid id1,
rowid... joinIDs)
No-op.
|
void |
setBrowsed(boolean browsed)
No-op.
|
logical |
setBuffers(Buffer... bufs)
Sets buffers for the query.
|
logical |
setBuffers(handle... hBuffers)
Sets buffers for the query.
|
void |
setCache(integer n)
Setter for the CACHE attribute.
|
void |
setCache(long n)
Setter for the CACHE attribute.
|
void |
setErrorIfNull(boolean errorIfNull)
No-op.
|
void |
setFetchOnReposition(boolean enable)
No-op.
|
void |
setIndexedReposition()
No-op.
|
void |
setIterating(boolean iterating)
Indicate whether the query is defined inside the scope of FOR EACH block.
|
void |
setLenientOffEnd(boolean lenientOffEnd)
Set the behavior of this query as a record retrieval request moves off
the end of its results.
|
void |
setParameterFilter(ParameterFilter parameterFilter)
No-op.
|
void |
setPresort(boolean presort)
Indicate whether the delegate query is of presort type.
|
void |
setScrolling()
No-op.
|
void |
setSkipDeletedRecord(logical on)
Setter for SKIP-DELETED-RECORD query attribute.
|
void |
setStandalone(boolean standalone)
Change the standalone nature of this query.
|
integer |
size()
Default implementation which reports unknown value to indicate a
closed query.
|
boolean |
unique()
No-op.
|
boolean |
unique(LockType lockType)
No-op.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddQueryEventListener, close, getBasicLogging, getDataRelation, getJoin, getNext, getRecordBuffers, hintFullResults, isDynamicPredicate, isFillingBrowseRows, isFindByRowid, isFirstOfGroup, isFirstOfGroup, isLastOfGroup, isLastOfGroup, notifyQueryCloseListeners, notifyQueryOpenListeners, resetQuery, setBasicLogging, setBasicLogging, setDataRelation, setDynamicPredicate, setFillingBrowseRowsaddBuffer, addBuffer, setBufferspublic void clearResults()
clearResults in interface P2JQuerypublic void setScrolling()
setScrolling in interface P2JQuerypublic boolean isScrolling()
isScrolling in interface P2JQueryfalse.public void setIndexedReposition()
setIndexedReposition in interface P2JQuerypublic boolean isIndexedReposition()
isIndexedReposition in interface P2JQueryfalse.public int getTableCount()
getTableCount in interface P2JQuerypublic java.util.ArrayList<QueryOffEndListener> getOffEndListeners()
getOffEndListeners in interface P2JQuerypublic P2JQuery addExternalBuffers(DataModelObject... dmos)
No-op.
addExternalBuffers in interface P2JQuerydmos - One or more external buffers.null.public void setBrowsed(boolean browsed)
setBrowsed in interface P2JQuerybrowsed - Not used.public boolean isBrowsed()
public void setErrorIfNull(boolean errorIfNull)
setErrorIfNull in interface P2JQueryerrorIfNull - Not used.public void addAccumulator(Accumulator accum)
addAccumulator in interface P2JQueryaccum - Not used.public void addAccumulator(Accumulator accum, boolean deferred)
addAccumulator in interface P2JQueryaccum - Not used.deferred - Not used.public boolean first()
public boolean first(LockType lockType)
public boolean last()
public boolean last(LockType lockType)
public boolean next()
public boolean next(LockType lockType)
public boolean previous()
public boolean previous(LockType lockType)
public boolean unique()
public boolean unique(LockType lockType)
public boolean current()
public boolean current(LockType lockType)
public logical hasAny()
Default substitution arguments and a lock type of NONE are
used for this test.
public logical hasAny(java.lang.Object[] values)
The specified substitution arguments and a lock type of
NONE are used for this test.
public logical hasAny(LockType lockType)
Default substitution arguments and the specified lock type are used for this test.
public logical hasAny(java.lang.Object[] values, LockType lockType)
The specified substitution arguments and lock type are used for this test.
hasAny in interface P2JQueryvalues - Query substitution parameters.lockType - Lock type for the query. This lock is not actually acquired,
only tested for availability.true if the first record exists, else false.java.lang.UnsupportedOperationException - always.public logical hasOne()
Default substitution arguments and a lock type of NONE are
used for this test.
public logical hasOne(java.lang.Object[] values)
The specified substitution arguments and a lock type of
NONE are used for this test.
public logical hasOne(LockType lockType)
Default substitution arguments and the specified lock type are used for this test.
public logical hasOne(java.lang.Object[] values, LockType lockType)
The specified substitution arguments and lock type are used for this test.
hasOne in interface P2JQueryvalues - Query substitution parameters.lockType - Lock type for the query. This lock is not actually acquired,
only tested for availability.true if any record matching the query's criteria
exists, else false.java.lang.UnsupportedOperationException - always.public boolean isFetchOnReposition()
isFetchOnReposition in interface P2JQueryfalse.public void setFetchOnReposition(boolean enable)
setFetchOnReposition in interface P2JQueryenable - Not used.public void addRepositionListener(RepositionListener listener)
addRepositionListener in interface P2JQuerylistener - Not used.public void removeRepositionListener(RepositionListener listener)
removeRepositionListener in interface P2JQuerylistener - Not used.public void repositionByID(recid id)
repositionByID in interface P2JQueryid - Not used.public void repositionByID(rowid id1, rowid... joinIDs)
repositionByID in interface P2JQueryid1 - Not used.joinIDs - Not used.public boolean repositionByID(java.lang.Long... joinIDs)
repositionByID in interface P2JQueryjoinIDs - Not used.true.public void reposition(NumberType row)
reposition in interface P2JQueryrow - Not used.public void reposition(int row)
reposition in interface P2JQueryrow - Not used.public boolean forward(NumberType rows)
public boolean forward(int rows)
public boolean backward(NumberType rows)
public boolean backward(int rows)
public integer size()
public integer currentRow()
currentRow in interface P2JQuerypublic integer currentRowImpl()
currentRowImpl in interface P2JQuerypublic logical isOffEnd()
public boolean _isOffEnd()
public OffEnd getOffEnd()
getOffEnd in interface P2JQueryOffEnd.FRONT constant.public boolean isPreselect()
isPreselect in interface P2JQueryfalse.public boolean isNativelyPreselect()
isNativelyPreselect in interface P2JQuerytrue.public void notifyRepositionListeners(boolean closed,
boolean error,
int targetRepositionRow)
notifyRepositionListeners in interface P2JQueryclosed - Not used.error - Not used.targetRepositionRow - Not used.public boolean isStandalone()
isStandalone in interface P2JQueryfalse.public void setStandalone(boolean standalone)
This implementation is a no-op.
setStandalone in interface P2JQuerystandalone - true to set query as standalone;
false to set query as contained.public handle bufferHandle()
bufferHandle in interface BufferCollectionpublic handle bufferHandle(java.lang.String bufferName)
bufferHandle in interface BufferCollectionbufferName - buffer-name. A CHARACTER expression that evaluates to the name
of a buffer in the query or DataSet object.public handle bufferHandle(character bufferName)
bufferHandle in interface BufferCollectionbufferName - buffer-name. A CHARACTER expression that evaluates to the name
of a buffer in the query or DataSet object.public handle bufferHandle(int bufferSequenceNumber)
bufferHandle in interface BufferCollectionbufferSequenceNumber - buffer-sequence-number. An INTEGER that represents the sequence
number of the desired buffer.public handle bufferHandle(int64 bufferSequenceNumber)
bufferHandle in interface BufferCollectionbufferSequenceNumber - buffer-sequence-number. An INTEGER that represents the sequence
number of the desired buffer.public logical queryClose()
queryClose in interface P2JQueryfalse.public logical queryBackward(int rows)
queryBackward in interface P2JQueryfalse.public logical queryBackward(NumberType rows)
queryBackward in interface P2JQueryfalse.public logical queryForward(int rows)
queryForward in interface P2JQueryfalse.public logical queryForward(NumberType rows)
queryForward in interface P2JQueryfalse.public logical queryReposition(int n)
queryReposition in interface P2JQueryn - An integer expression representing the sequence number.false.public logical queryReposition(NumberType n)
queryReposition in interface P2JQueryn - An integer expression representing the sequence number.false.public logical queryRepositionByID(rowid id1, rowid... joinIDs)
queryRepositionByID in interface P2JQueryid1 - A primary key ID, representing the target record (in the case
of a join, this ID is associated with the left-most record in
the join).joinIDs - All remaining primary key IDs, if any, arranged from left to
right to coincide with the records being joined by the
underlying query.false.public logical queryRepositionByID(character rowId)
queryRepositionByID in interface P2JQueryrowId - A character representation of this rowid.true if REPOSITION-TO-ROWID() succeeds,
else false.public integer getNumResults()
getNumResults in interface P2JQuerypublic logical addBuffer(handle bufHandle)
addBuffer in interface BufferCollectionbufHandle - A buffer handle to add.false.public logical addBuffer(Buffer buf)
addBuffer in interface BufferCollectionbuf - A buffer to add.false.public logical setBuffers(handle... hBuffers)
addBuffer() method to add one
buffer to the object, without affecting the other buffers, if any.
This method is the equivalent of SET-BUFFERS() method
from 4GL.setBuffers in interface BufferCollectionhBuffers - Variable argument list of buffer handles to be set.
In 4GL, the maximum number of buffers per query is 18.false.public logical setBuffers(Buffer... bufs)
addBuffer() method to add one
buffer to the object, without affecting the other buffers, if any.
This method is the equivalent of SET-BUFFERS() method
from 4GL.setBuffers in interface BufferCollectionbufs - Variable argument list of Buffer to be set.
In 4GL, the maximum number of buffers per query is 18.public logical prepare(java.lang.String predicate)
QUERY-PREPARE() method from 4GL.public logical prepare(character predicate)
QUERY-PREPARE() method from 4GL.public logical queryOpen()
QUERY-OPEN() method from 4GL.
Note: You must perform prepare() on a query
object before you perform queryOpen on it.public character indexInformation()
indexInformation in interface IndexInformationindexInformation in interface P2JQuerypublic character indexInformation(int n)
indexInformation in interface IndexInformationindexInformation in interface P2JQueryn - An integer expression that evaluates to the level of join for which you want
index information.public character indexInformation(NumberType n)
indexInformation in interface IndexInformationindexInformation in interface P2JQueryn - An integer expression that evaluates to the level of join for which you want
index information.public logical forwardOnly()
forwardOnly in interface P2JQueryfalse.public void changeForwardOnly(logical forwardOnly)
changeForwardOnly in interface P2JQueryforwardOnly - New value of FORWARD-ONLY attribute.public void changeForwardOnly(boolean forwardOnly)
changeForwardOnly in interface P2JQueryforwardOnly - New value of FORWARD-ONLY attribute.public character prepareString()
prepareString in interface P2JQuerypublic integer getCache()
public void setCache(integer n)
public void setCache(long n)
public logical isOpen()
public boolean _getNext()
public logical getNext(LockType lockType)
public logical getNext(long lock)
public logical getNext(NumberType lock)
public logical getNext(long lock, long nowait)
public logical getNext(long lock, NumberType nowait)
public logical getNext(NumberType lock, long nowait)
public logical getNext(NumberType lock, NumberType nowait)
public logical getPrevious()
getPrevious in interface P2JQueryfalse.public logical getPrevious(long lock)
getPrevious in interface P2JQuerylock - SHARE-LOCK|EXCLUSIVE-LOCK|NO-LOCKfalse.java.lang.IllegalArgumentException - if lock has not valid internal value.public logical getPrevious(LockType lockType)
getPrevious in interface P2JQuerylockType - Lock type.false.java.lang.IllegalArgumentException - if lock has not valid internal value.public logical getPrevious(NumberType lock)
getPrevious in interface P2JQuerylock - SHARE-LOCK|EXCLUSIVE-LOCK|NO-LOCKfalse.java.lang.IllegalArgumentException - if lock has not valid internal value.public logical getPrevious(long lock, long nowait)
getPrevious in interface P2JQuerylock - SHARE-LOCK|EXCLUSIVE-LOCK|NO-LOCKnowait - NO-WAITfalse.java.lang.IllegalArgumentException - if lock or nowait have not valid internal values.public logical getPrevious(NumberType lock, long nowait)
getPrevious in interface P2JQuerylock - SHARE-LOCK|EXCLUSIVE-LOCK|NO-LOCKnowait - NO-WAITfalse.java.lang.IllegalArgumentException - if lock or nowait have not valid internal values.public logical getPrevious(long lock, NumberType nowait)
getPrevious in interface P2JQuerylock - SHARE-LOCK|EXCLUSIVE-LOCK|NO-LOCKnowait - NO-WAITfalse.java.lang.IllegalArgumentException - if lock or nowait have not valid internal values.public logical getPrevious(NumberType lock, NumberType nowait)
getPrevious in interface P2JQuerylock - SHARE-LOCK|EXCLUSIVE-LOCK|NO-LOCKnowait - NO-WAITfalse.java.lang.IllegalArgumentException - if lock or nowait have not valid internal values.public logical getFirst()
public logical getFirst(long lock)
public logical getFirst(NumberType lock)
public logical getFirst(LockType lockType)
public logical getFirst(long lock, long nowait)
public logical getFirst(NumberType lock, long nowait)
public logical getFirst(long lock, NumberType nowait)
public logical getFirst(NumberType lock, NumberType nowait)
public logical getLast()
public logical getLast(long lock)
public logical getLast(NumberType lock)
public logical getLast(LockType lockType)
public logical getLast(long lock, long nowait)
public logical getLast(NumberType lock, long nowait)
public logical getLast(long lock, NumberType nowait)
public logical getLast(NumberType lock, NumberType nowait)
public logical getCurrent()
getCurrent in interface P2JQueryfalse.public logical getCurrent(long lock)
getCurrent in interface P2JQuerylock - SHARE-LOCK|EXCLUSIVE-LOCK|NO-LOCKfalse.public logical getCurrent(NumberType lock)
getCurrent in interface P2JQuerylock - SHARE-LOCK|EXCLUSIVE-LOCK|NO-LOCKfalse.public logical getCurrent(LockType lockType)
getCurrent in interface P2JQuerylockType - Lock type.false.public logical getCurrent(long lock, long nowait)
getCurrent in interface P2JQuerylock - SHARE-LOCK|EXCLUSIVE-LOCK|NO-LOCKnowait - NO-WAITfalse.public logical getCurrent(NumberType lock, long nowait)
getCurrent in interface P2JQuerylock - SHARE-LOCK|EXCLUSIVE-LOCK|NO-LOCKnowait - NO-WAITfalse.public logical getCurrent(long lock, NumberType nowait)
getCurrent in interface P2JQuerylock - SHARE-LOCK|EXCLUSIVE-LOCK|NO-LOCKnowait - NO-WAITfalse.public logical getCurrent(NumberType lock, NumberType nowait)
getCurrent in interface P2JQuerylock - SHARE-LOCK|EXCLUSIVE-LOCK|NO-LOCKnowait - NO-WAITfalse.public integer numBuffers()
numBuffers in interface BufferCollectionpublic void setSkipDeletedRecord(logical on)
setSkipDeletedRecord in interface P2JQueryon - New value for the attribute.public logical isSkipDeletedRecord()
isSkipDeletedRecord in interface P2JQuerypublic void include(DataModelObject dmo, java.lang.String... fields)
public void exclude(DataModelObject dmo, java.lang.String... fields)
public logical deleteResultListEntry()
deleteResultListEntry in interface P2JQueryfalse.public logical deleteResultListEntry(boolean allowBetweenRows)
deleteResultListEntry in interface P2JQueryallowBetweenRows - If true then the cursor can be positioned between rows (the next
row will be deleted). false for conventional DELETE-RESULT-LIST-ENTRY()
mode where the cursor should be positioned on a row (otherwise false is
returned).false.public logical createResultListEntry()
createResultListEntry in interface P2JQueryfalse.public void setParameterFilter(ParameterFilter parameterFilter)
setParameterFilter in interface P2JQueryparameterFilter - Not used.public void releaseBuffers()
releaseBuffers in interface P2JQuerypublic boolean addDynamicFilter(FieldReference fr, BaseDataType val, java.lang.String format)
new-where := (fr = val) AND (old-query).
Note: The constraints are exclusive meaning that if constraints will be added for same field of same buffer, the query will return an empty result because the field cannot be at the same time equals to two different values.
Use clearDynamicFilters() to clean all dynamically added criteria and restore the
sorting order of the query to its original form.
addDynamicFilter in interface P2JQueryfr - A reference to field used as filtering criterion. Only the rows that matches the
specified value for this field will be selected. Must not be null.val - The filtering value for this constraint. Can be null or unknown,
in which case the SQL null value will be assumed. In this case the
predicate will look like:
new-where := (fr IS NULL) AND (old-query)
format - The format to be used when comparing values. The reason for this parameter is that
for some datatype (ex: decimal) the on-screen value can be different from
the database (because of rounding).true if the filtering constraint was successfully added. If the field
reference is not related to the buffer(s) of this query, false is
returned.public void clearDynamicFilters()
clearDynamicFilters in interface P2JQuerypublic void setLenientOffEnd(boolean lenientOffEnd)
P2JQuerynext and previous which do not find a record
do not raise a QueryOffEndException. By default, this
would normally raise the exception.setLenientOffEnd in interface P2JQuerylenientOffEnd - true to suppress QueryOffEndException
for next and previous requests;
false to permit these exceptions.public void setIterating(boolean iterating)
setIterating in interface P2JQueryiterating - true indicating that a query is inside FOR EACH block;
false is defined outside of a FOR EACH.public boolean isIterating()
isIterating in interface P2JQuerytrue if the query was defined inside a FOR EACH block.public boolean isPresort()
public void setPresort(boolean presort)
setPresort in interface P2JQuerypresort - true indicating that a query of presort type.
false is not of presort type.