Package net.sf.jasperreports.engine
Interface JRQueryChunk
- All Superinterfaces:
Cloneable
,JRCloneable
- All Known Implementing Classes:
JRBaseQueryChunk
,JRDesignQueryChunk
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
A property that specifies the list of token separators fortokenized query clauses
.static final byte
A$X{..}
query clause containing one or several tokens.static final byte
static final byte
static final byte
-
Method Summary
Methods inherited from interface net.sf.jasperreports.engine.JRCloneable
clone
-
Field Details
-
PROPERTY_CHUNK_TOKEN_SEPARATOR
A property that specifies the list of token separators fortokenized query clauses
.The default separators are the comma (
','
), the semicolon (';'
) and the vertical bar ('|'
).- See Also:
-
TYPE_TEXT
static final byte TYPE_TEXT- See Also:
-
TYPE_PARAMETER
static final byte TYPE_PARAMETER- See Also:
-
TYPE_PARAMETER_CLAUSE
static final byte TYPE_PARAMETER_CLAUSE- See Also:
-
TYPE_CLAUSE_TOKENS
static final byte TYPE_CLAUSE_TOKENSA$X{..}
query clause containing one or several tokens.The clause will be processed by the query executer. The default implementation treats the first token as a function ID and delegates the processing to a
function
registered for the ID.The clause text is tokenized in the following manner:
- The first appearance of any separator (as specified by
PROPERTY_CHUNK_TOKEN_SEPARATOR
) if located in the clause text. - This separator is then used to tokenize the entire text, including the remaining separators characters in tokens.
- See Also:
- The first appearance of any separator (as specified by
-
-
Method Details
-
getType
byte getType() -
getText
String getText() -
getTokens
String[] getTokens()Returns the chunk tokens forclause
chunks.- Returns:
- the chunk tokens
-
getTokenSeparator
Character getTokenSeparator()Returns the chunk tokens separator character forclause
chunks.- Returns:
- the chunk tokens separator character
-