public interface EcdaContext extends RuntimeObjectContext, java.lang.AutoCloseable
Modifier and Type | Interface and Description |
---|---|
static class |
EcdaContext.Phase |
Modifier and Type | Method and Description |
---|---|
void |
addTracePropertyListener(FarragoTrace.PropertyListener listener)
Add an object which listens for changes to the file of trace properties.
|
void |
close()
Close context.
|
boolean |
getBooleanSessionVariable(java.lang.String name,
boolean defaultValue)
Get the value of a boolean session variable.
|
long |
getCompilingStatementId()
Get the id of the statement being compiled (only valid during statement preparation)
|
EcdaContext.Phase |
getPhase()
Return the phase that this reader or writer is being initialized.
|
java.sql.Connection |
getQueryConnection()
Get the connection to use for querying dynamic options.
|
default java.lang.String |
getSessionName()
Get the session name.
|
java.util.Map<java.lang.String,java.lang.String> |
getSessionVariables()
Get session variables associated with session.
|
boolean |
isClosed()
Has context been closed.
|
boolean |
isRowtimePresent()
Is ROWTIME present.
|
void |
notifyOnCancel(java.lang.Runnable notifier) |
void |
removeTracePropertyListener(FarragoTrace.PropertyListener listener)
Remove an object which was listening for changes to the file of trace properties.
|
void |
setUdxExitWithoutWait(boolean noWait) |
boolean |
validating()
Return true if we are validating a statement.
|
boolean isRowtimePresent() throws java.sql.SQLException
java.sql.SQLException
- if an error occurs when locating ROWTIMEboolean validating()
java.util.Map<java.lang.String,java.lang.String> getSessionVariables()
boolean getBooleanSessionVariable(java.lang.String name, boolean defaultValue)
name
- the name of a session variabledefaultValue
- the default value for the variabledefault java.lang.String getSessionName()
long getCompilingStatementId()
java.sql.Connection getQueryConnection() throws java.sql.SQLException
java.sql.SQLException
- if an error occurs getting the connectionvoid addTracePropertyListener(FarragoTrace.PropertyListener listener)
listener
- A listener who will be kicked when a trace property changes.void removeTracePropertyListener(FarragoTrace.PropertyListener listener)
listener
- The listener to be removed.boolean isClosed()
void close()
close
in interface java.lang.AutoCloseable
EcdaContext.Phase getPhase()
void setUdxExitWithoutWait(boolean noWait)
void notifyOnCancel(java.lang.Runnable notifier)
Copyright (C) 2003-2021 SQLstream, Inc.