public static class QueryPlus.DefaultDependencies extends Object implements QueryPlus.Dependencies
QueryPlus.Dependencies.| Modifier and Type | Field and Description |
|---|---|
protected CoherenceQueryLanguage |
f_language
The
CoherenceQueryLanguage to use. |
protected PrintWriter |
f_writer
The
PrintWriter to use to display output. |
protected StatementExecutor |
m_executor
The
StatementExecutor to use to execute statements. |
protected boolean |
m_fExitWhenProcessingComplete
A flag indicating whether a CohQL session should be exited when the list of statements has been executed.
|
protected boolean |
m_fExtendedLanguage
Flag that controls whether we except Map, and List as literals.
|
protected boolean |
m_fSanity
A flag that enables sanity checking.
|
protected boolean |
m_fSilent
A flag indicating whether the query session is running in silent mode.
|
protected boolean |
m_fTraceEnabled
Flag that indicates tracing mode.
|
protected List<String> |
m_listFiles
A list of statement script files to execute when the CohQL session starts.
|
protected List<String> |
m_listStatements
A list of statements to execute when the CohQL session starts.
|
protected BufferedReader |
m_reader
The
BufferedReader to use to obtain user input. |
protected String |
m_sApplicationName
An optional application name to use.
|
protected String[] |
m_sDomainPartitions
A comma delimited list of domain partition names.
|
protected String |
m_sGarFileName
The name of an optional GAR file to load.
|
protected String |
m_sTitle
String to use for Title that heads each result displayed.
|
protected com.oracle.common.util.Duration |
m_timeout
The timeout value to use for CohQL statement execution.
|
| Constructor and Description |
|---|
DefaultDependencies(PrintWriter writer, BufferedReader reader, CoherenceQueryLanguage language)
Create a DefaultDependencies instance that will use the specified
PrintWriter and BufferedReader for output and input. |
| Modifier and Type | Method and Description |
|---|---|
String |
getApplicationName()
Return the optional application name to use if loading a GAR file.
|
CoherenceQueryLanguage |
getCoherenceQueryLanguage()
Return an instance of
CoherenceQueryLanguage to be used by the QueryPlus session. |
String[] |
getDomainPartitions()
Return the optional array of domain partition names to use if loading a GAR file.
|
List<String> |
getFiles()
Return the list of statement script files that should be executed prior to the start of the CohQL session.
|
String |
getGarFileName()
Return the name of the optional GAR file to load before running QueryPlus.
|
PrintWriter |
getOutputWriter()
Return an instance of a
PrintWriter that should be used to display query output. |
BufferedReader |
getReader()
Return the
BufferedReader to use to obtain user input. |
StatementExecutor |
getStatementExecutor()
Return the
StatementExecutor to use to parse and execute statements. |
List<String> |
getStatements()
Return the list of statements that should be executed prior to the start of the CohQL session.
|
com.oracle.common.util.Duration |
getTimeout()
Return the initial value that will be set as the CohQL statement timeout.
|
String |
getTitle()
Return the String to use for title that heads each result.
|
boolean |
isExitWhenProcessingComplete()
Return whether the QueryPlus session should exit once all of the statements added to the statements list have been executed.
|
boolean |
isExtendedLanguageEnabled()
Return whether "Extended Language" features are enabled.
|
boolean |
isSanityChecking()
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 |
isTraceEnabled()
Return whether trace is enabled.
|
void |
setApplicationName(String sApplicationName)
Set the application name to use.
|
void |
setDomainPartitions(String[] asDomainPartitions)
Set the array of domain partition names to use.
|
void |
setExitWhenProcessingComplete(boolean fExit)
Set the flag that indicates the QueryPlus process should exit after processing the statements from the command line.
|
void |
setExtendedLanguage(boolean fExtendedLanguage)
Set whether extended language features should be enabled.
|
void |
setFiles(List<String> listFiles)
Set the list of statement files to execute before the QueryPlus session starts.
|
void |
setGarFileName(String sGarFile)
Set the name of the GAR file to load before starting the QueryPlus session.
|
void |
setSanityCheckingEnabled(boolean fSanity)
Set whether sanity checking is enabled.
|
void |
setSilentMode(boolean fSilent)
Set the flag indicating that the QueryPlus session is running in silent mode.
|
void |
setStatementExecutor(StatementExecutor executor)
Set the
StatementExecutor to use to parse and execute statements. |
void |
setStatements(List<String> listStatements)
Set the list of statements to execute before the QueryPlus session starts.
|
void |
setTimeout(com.oracle.common.util.Duration timeout)
Set the timeout value for CohQL statement execution.
|
void |
setTitle(String sTitle)
Set the title that will be displayed as the results heading.
|
void |
setTraceEnabled(boolean fTraceEnabled)
Set whether trace logging is enabled.
|
protected final CoherenceQueryLanguage f_language
CoherenceQueryLanguage to use.protected boolean m_fTraceEnabled
protected boolean m_fSanity
protected boolean m_fExtendedLanguage
protected final PrintWriter f_writer
PrintWriter to use to display output.protected boolean m_fSilent
protected String m_sTitle
protected boolean m_fExitWhenProcessingComplete
protected List<String> m_listStatements
protected List<String> m_listFiles
protected BufferedReader m_reader
BufferedReader to use to obtain user input.protected StatementExecutor m_executor
StatementExecutor to use to execute statements.protected String m_sGarFileName
protected String m_sApplicationName
m_sGarFileName.protected String[] m_sDomainPartitions
m_sGarFileName.protected com.oracle.common.util.Duration m_timeout
public DefaultDependencies(PrintWriter writer, BufferedReader reader, CoherenceQueryLanguage language)
PrintWriter and BufferedReader for output and input.writer - the PrintWriter to use to display outputlanguage - an instance of CoherenceQueryLanguagepublic CoherenceQueryLanguage getCoherenceQueryLanguage()
QueryPlus.DependenciesCoherenceQueryLanguage to be used by the QueryPlus session.getCoherenceQueryLanguage in interface QueryPlus.Dependenciespublic PrintWriter getOutputWriter()
QueryPlus.DependenciesPrintWriter that should be used to display query output.getOutputWriter in interface QueryPlus.Dependenciespublic void setTraceEnabled(boolean fTraceEnabled)
fTraceEnabled - is trace logging enabledpublic boolean isTraceEnabled()
QueryPlus.DependenciesisTraceEnabled in interface QueryPlus.Dependenciespublic void setSanityCheckingEnabled(boolean fSanity)
fSanity - is sanity checking enabledpublic boolean isSanityChecking()
QueryPlus.DependenciesisSanityChecking in interface QueryPlus.Dependenciespublic void setExtendedLanguage(boolean fExtendedLanguage)
fExtendedLanguage - whether extended language features should be enabledpublic boolean isExtendedLanguageEnabled()
QueryPlus.DependenciesisExtendedLanguageEnabled in interface QueryPlus.Dependenciespublic void setExitWhenProcessingComplete(boolean fExit)
fExit - true if QueryPlus should exit after processing the command line statementspublic boolean isExitWhenProcessingComplete()
QueryPlus.DependenciesisExitWhenProcessingComplete in interface QueryPlus.Dependenciespublic void setStatements(List<String> listStatements)
listStatements - the list of statements to execute before the QueryPlus session startspublic List<String> getStatements()
QueryPlus.DependenciesgetStatements in interface QueryPlus.Dependenciespublic void setFiles(List<String> listFiles)
listFiles - the list of flies of QueryPlus statements to execute before the QueryPlus session starts.public List<String> getFiles()
QueryPlus.DependenciesgetFiles in interface QueryPlus.Dependenciespublic boolean isSilent()
QueryPlus.DependenciesisSilent in interface QueryPlus.Dependenciespublic void setSilentMode(boolean fSilent)
fSilent - true to indicate that the QueryPlus session is running in silent mode.public void setTitle(String sTitle)
sTitle - the title that will be displayed as the results headingpublic String getTitle()
QueryPlus.DependenciesgetTitle in interface QueryPlus.Dependenciespublic BufferedReader getReader()
QueryPlus.DependenciesBufferedReader to use to obtain user input.getReader in interface QueryPlus.Dependenciespublic void setStatementExecutor(StatementExecutor executor)
StatementExecutor to use to parse and execute statements.executor - the StatementExecutor to usepublic StatementExecutor getStatementExecutor()
QueryPlus.DependenciesStatementExecutor to use to parse and execute statements.getStatementExecutor in interface QueryPlus.Dependenciespublic void setGarFileName(String sGarFile)
sGarFile - the name of the GAR file to loadpublic String getGarFileName()
QueryPlus.DependenciesgetGarFileName in interface QueryPlus.Dependenciespublic void setApplicationName(String sApplicationName)
m_sGarFileName has also been set.sApplicationName - the application name to usepublic String getApplicationName()
QueryPlus.DependenciesgetApplicationName in interface QueryPlus.Dependenciespublic void setDomainPartitions(String[] asDomainPartitions)
m_sGarFileName has also been set.asDomainPartitions - the comma delimited list of domain partition namespublic String[] getDomainPartitions()
QueryPlus.DependenciesgetDomainPartitions in interface QueryPlus.Dependenciespublic void setTimeout(com.oracle.common.util.Duration timeout)
timeout - timeout value for CohQL statement executionpublic com.oracle.common.util.Duration getTimeout()
QueryPlus.DependenciesgetTimeout in interface QueryPlus.Dependencies