public class JsonPreparedSelector extends Object
Constructor and Description |
---|
JsonPreparedSelector(Document doc)
Constructs a JsonPreparedSelector from a Document whose content
is the JSON content.
|
JsonPreparedSelector(LibrarySession session,
JsonObject jsonObject)
Constructs a JsonPreparedSelector from a JSON object.
|
JsonPreparedSelector(LibrarySession session,
Reader reader)
Constructs a JsonPreparedSelector from a Reader whose content
is the JSON content.
|
JsonPreparedSelector(LibrarySession session,
String jsonString)
Constructs a JsonPreparedSelector from a String representation of
the JSON content.
|
JsonPreparedSelector(PreparedSelectorGenerator psGen)
Constructs a JsonPreparedSelector from a PreparedSelectorGenerator definition.
|
JsonPreparedSelector(PreparedSelectorGenerator psGen,
PreparedSelector psel)
Constructs a JsonPreparedSelector from PreparedSelectorGenerator
and associated PreparedSelector definitions.
|
Modifier and Type | Method and Description |
---|---|
protected void |
createPreparedSelectorGenerator()
Creates the PreparedSelectorGenerator representation of the search definition.
|
protected void |
define(Document doc)
Define the JsonPreparedSelector from a Document whose content
is the JSON content.
|
protected void |
define(JsonObject jsonObject)
Define the JsonPreparedSelector from a JSON object.
|
void |
define(PreparedSelectorGenerator psGen,
PreparedSelector psel)
Define the JsonPreparedSelector from PreparedSelectorGenerator
and associated PreparedSelector definitions.
|
protected void |
define(Reader reader)
Define the JsonPreparedSelector from a Reader whose content
is the JSON content.
|
protected void |
define(String jsonString)
Define the JsonPreparedSelector from a String representation of
the JSON content.
|
protected AttributeValue[] |
getBindValues(List<AttributeValueTable> bindValueList)
Gets the bind values defined in the specified table list.
|
JsonObject |
getJsonObject()
Gets the JsonObject representation of the search definition.
|
String |
getJsonString()
Gets the JSON string representation of the search definition.
|
PreparedSelector |
getPreparedSelector()
Gets the PreparedSelector representation of the search definition.
|
PreparedSelectorGenerator |
getPreparedSelectorGenerator()
Gets the PreparedSelectorGenerator representation of the search definition.
|
protected AttributeValue |
getSearchTarget(AttributeValueTable targetTable)
Gets a search target from search target specification
stored in an AttributeValueTable.
|
protected AttributeValue |
getSearchTarget(String targetTag)
Gets a search target from search target specification.
|
protected AttributeValue[] |
getSearchTargets(List<AttributeValueTable> targetTables)
Gets search Targets from a list of target definition tables.
|
protected AttributeValue[] |
getSearchTargets(String targetsTag)
Gets search Targets from a comma delimitted string defintion.
|
protected AttributeValue[] |
getSearchTargets(String[] targetTags)
Gets search Targets from an array of target tags.
|
LibrarySession |
getSession()
Gets the session context.
|
void |
setBindValues(AttributeValue[] bindValues)
Sets the bind values.
|
public JsonPreparedSelector(Document doc) throws IfsException
doc
- the DocumentIfsException
- if the operation fails.public JsonPreparedSelector(LibrarySession session, Reader reader) throws IfsException
session
- the session contextreader
- the ReaderIfsException
- if the operation fails.public JsonPreparedSelector(LibrarySession session, String jsonString) throws IfsException
session
- the session contextjsonString
- the JSON contentIfsException
- if the operation fails.public JsonPreparedSelector(LibrarySession session, JsonObject jsonObject) throws IfsException
session
- the session contextjsonObject
- the JSON objectIfsException
- if the operation fails.public JsonPreparedSelector(PreparedSelectorGenerator psGen) throws IfsException
psGen
- the PreparedSelectorGeneratorIfsException
- if the operation fails.public JsonPreparedSelector(PreparedSelectorGenerator psGen, PreparedSelector psel) throws IfsException
psGen
- the PreparedSelectorGeneratorpsel
- the PreparedSelectorIfsException
- if the operation fails.protected void define(Document doc) throws IfsException
doc
- the DocumentIfsException
- if the operation fails.protected void define(Reader reader) throws IfsException
reader
- the ReaderIfsException
- if the operation fails.protected void define(String jsonString) throws IfsException
jsonString
- the JSON contentIfsException
- if the operation fails.protected void define(JsonObject jsonObject) throws IfsException
jsonObject
- the JSON objectIfsException
- if the operation fails.public void define(PreparedSelectorGenerator psGen, PreparedSelector psel) throws IfsException
psGen
- the PreparedSelectorGeneratorpsel
- the PreparedSelectorIfsException
- if the operation fails.public LibrarySession getSession() throws IfsException
IfsException
- if the operation fails.public JsonObject getJsonObject() throws IfsException
IfsException
- if the operation fails.public String getJsonString() throws IfsException
IfsException
- if the operation fails.public PreparedSelectorGenerator getPreparedSelectorGenerator() throws IfsException
IfsException
- if the operation fails.public PreparedSelector getPreparedSelector() throws IfsException
IfsException
- if the operation fails.public void setBindValues(AttributeValue[] bindValues) throws IfsException
bindValues
- the bindValuesIfsException
- if the operation fails.protected void createPreparedSelectorGenerator() throws IfsException
IfsException
- if the operation fails.protected AttributeValue getSearchTarget(AttributeValueTable targetTable) throws IfsException
targetTable
- the search target specificationIfsException
- if the operation failsprotected AttributeValue getSearchTarget(String targetTag) throws IfsException
target
- the search target specificationIfsException
- if the operation failsprotected AttributeValue[] getSearchTargets(String targetsTag) throws IfsException
targetsTag
- the comma delimitted string of targets.IfsException
- if the operation failsprotected AttributeValue[] getSearchTargets(String[] targetTags) throws IfsException
targetsTag
- the comma delimitted string of targets.IfsException
- if the operation failsprotected AttributeValue[] getSearchTargets(List<AttributeValueTable> targetTables) throws IfsException
targetTables
- the target definition tables.IfsException
- if the operation failsprotected AttributeValue[] getBindValues(List<AttributeValueTable> bindValueList) throws IfsException
bindValueList
- the table list that defines the bind valuesIfsException
- if the operation failsCopyright © 2023. All rights reserved.