Package com.tangosol.coherence.dslquery
Interface QueryPlus.Dependencies
- All Known Implementing Classes:
QueryPlus.DefaultDependencies
- Enclosing class:
QueryPlus
public static interface QueryPlus.Dependencies
The Dependencies for QueryPlus.
-
Method Summary
Modifier and TypeMethodDescriptionReturn the optional application name to use if loading a GAR file.Return an instance ofCoherenceQueryLanguage
to be used by the QueryPlus session.String[]
Return the optional array of domain partition names to use if loading a GAR file.getFiles()
Return the list of statement script files that should be executed prior to the start of the CohQL session.Return the name of the optional GAR file to load before running QueryPlus.Return an instance of aPrintWriter
that should be used to display query output.Return theBufferedReader
to use to obtain user input.Return theStatementExecutor
to use to parse and execute statements.Return the list of statements that should be executed prior to the start of the CohQL session.com.oracle.coherence.common.util.Duration
Return the initial value that will be set as the CohQL statement timeout.getTitle()
Return the String to use for title that heads each result.boolean
Return whether the QueryPlus session should exit once all of the statements added to the statements list have been executed.boolean
Return whether "Extended Language" features are enabled.boolean
Return whether sanity checking should be enabled when executing statements.boolean
isSilent()
Return true if the current query session is running in silent mode.boolean
Return whether trace is enabled.
-
Method Details
-
getCoherenceQueryLanguage
CoherenceQueryLanguage getCoherenceQueryLanguage()Return an instance ofCoherenceQueryLanguage
to be used by the QueryPlus session.- Returns:
- the instance of CoherenceQueryLanguage to be used by the QueryPlus session
-
getOutputWriter
PrintWriter getOutputWriter()Return an instance of aPrintWriter
that should be used to display query output.- Returns:
- the current PrintWriter to be used to display output
-
isTraceEnabled
boolean isTraceEnabled()Return whether trace is enabled. Enabling trace displays verbose output when executing statements.- Returns:
- true if trace is enabled, otherwise returns false
-
isSanityChecking
boolean isSanityChecking()Return whether sanity checking should be enabled when executing statements.- Returns:
- whether sanity checking should be enabled when executing statements
-
isExtendedLanguageEnabled
boolean isExtendedLanguageEnabled()Return whether "Extended Language" features are enabled.- Returns:
- whether "Extended Language" features are enabled
-
isExitWhenProcessingComplete
boolean isExitWhenProcessingComplete()Return whether the QueryPlus session should exit once all of the statements added to the statements list have been executed.- Returns:
- whether the QueryPlus session should exit once all of the statements added to the statements list have been executed
-
getStatements
Return the list of statements that should be executed prior to the start of the CohQL session.- Returns:
- the list of statements that should be executed prior to the start of the CohQL session
-
getFiles
Return the list of statement script files that should be executed prior to the start of the CohQL session.- Returns:
- the list of statements that should be executed prior to the start of the CohQL session
-
isSilent
boolean isSilent()Return true if the current query session is running in silent mode.- Returns:
- true if the current session is running in silent mode
-
getTitle
String getTitle()Return the String to use for title that heads each result.- Returns:
- the String to use for title that heads each result
-
getReader
BufferedReader getReader()Return theBufferedReader
to use to obtain user input.- Returns:
- the BufferedReader to use to obtain user input
-
getStatementExecutor
StatementExecutor getStatementExecutor()Return theStatementExecutor
to use to parse and execute statements.- Returns:
- the StatementExecutor to use to parse and execute statements
-
getGarFileName
String getGarFileName()Return the name of the optional GAR file to load before running QueryPlus.- Returns:
- the name of the optional GAR file to load before running QueryPlus
-
getApplicationName
String getApplicationName()Return the optional application name to use if loading a GAR file.- Returns:
- the optional application name to use if loading a GAR file
-
getDomainPartitions
String[] getDomainPartitions()Return the optional array of domain partition names to use if loading a GAR file.- Returns:
- the optional array of domain partition names to use if loading a GAR file
-
getTimeout
com.oracle.coherence.common.util.Duration getTimeout()Return the initial value that will be set as the CohQL statement timeout.- Returns:
- the initial value that will be set as the CohQL statement timeout.
-