| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private SchemaDescriptor | |
| private ProviderList | |
| private Dependent | |
| private int | |
| private Object | |
| private ArrayList | defaultSchemaStack
Saved execution time default schema, if we need to change it temporarily. |
| private DependencyManager | |
| private boolean | |
| private boolean | |
| private final LanguageConnectionContext | |
| private final LanguageConnectionFactory | |
| private HashMap | |
| private long | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private DataTypeDescriptor[] | |
| private List | |
| private final Parser | |
| private ArrayList | |
| private final ArrayList | |
| private HashMap | |
| private int | |
| private HashMap | |
| private HashMap | |
| private HashMap | |
| private HashMap | |
| private HashMap | |
| private HashMap | |
| private boolean | |
| private List | |
| private int | |
| private static final int | |
| private boolean | |
| private SortCostController | |
| private final HashMap | storeCostControllers
Map that contains all store cost controllers opened in this compiler context. |
| private TypeCompilerFactory | |
| private SQLWarning |
| Access | Constructor and Description |
|---|---|
| public | CompilerContextImpl(ContextManager cm, LanguageConnectionContext lcc, TypeCompilerFactory typeCompilerFactory)
This constructor creates and saves the parser using the language connection factory when the context is created (when the first statement comes in, likely). |
| Modifier and Type | Method and Description |
|---|---|
| public void | addPrivilegeFilter(VisitableFilter vf)
Implements org. Add a filter for determining which QueryTreeNodes give rise to privilege checks at run time. |
| private void | addProviderToAuxiliaryList(Provider
The Provider to add. p)Add a Provider to the current AuxiliaryProviderList, if one exists. |
| public void | addReferencedSequence(SequenceDescriptor sd)
Implements org. Add a sequence descriptor to the list of referenced sequences. |
| public void | addRequiredColumnPriv(ColumnDescriptor
The column whose privileges we're interested in. column)Implements org. Add a column privilege to the list of used column privileges. |
| public void | addRequiredRolePriv(String roleName, int privType)
Implements org. Add a required role privilege to the list privileges. |
| public void | addRequiredRoutinePriv(AliasDescriptor routine)
Implements org. Add a routine execute privilege to the list of used routine privileges. |
| public void | addRequiredSchemaPriv(String
Schema name of the object that is being accessed schemaName, String Requested authorizationId for new schema aid, int CREATE_SCHEMA_PRIV, MODIFY_SCHEMA_PRIV or DROP_SCHEMA_PRIV privType)Implements org. Add a required schema privilege to the list privileges. |
| public void | addRequiredTablePriv(TableDescriptor table)
Implements org. Add a table or view privilege to the list of used table privileges. |
| public void | addRequiredUsagePriv(PrivilegedSQLObject usableObject)
Implements org. Add a usage privilege to the list of required privileges. |
| public int | addSavedObject(Object
object to add to the pool of saved objects obj)Implements org. Add an object to the pool that is created at compile time and used at execution time. |
| public void | addWarning(SQLWarning warning)
Implements org. Add a compile time warning. |
| public void | beginScope(String scopeName)
Implements org. Record that the compiler is entering a named scope. |
| public void | cleanupOnError(Throwable
The original error error)Implements org. Contexts will be passed errors that are caught by the outer system when they are serious enough to require corrective action. |
| private void | |
| private void | |
| public void | createDependency(Provider
The Provider of the dependency. p)Implements org. Add a dependency for the current dependent. |
| public void | createDependency(Dependent
The Dependent object. d, Provider The Provider of the dependency. p)Implements org. Add a dependency between two objects. |
| public void | endScope(String scopeName)
Implements org. Record that the compiler is exiting a named scope. |
| public void | firstOnStack()
Implements org. Mark this CompilerContext as the first on the stack, so we can avoid continually popping and pushing a CompilerContext. |
| public ClassFactory | getClassFactory()
Implements org. Return the class factory to use in this compilation. |
| public SchemaDescriptor | Returns: the compilation schema descirptorImplements org. Get the compilation schema descriptor for this compilation context. |
| public ProviderList | Returns: The current AuxiliaryProviderList.Implements org. Get the current auxiliary provider list from this CompilerContext. |
| public Object | getCursorInfo()
Implements org. Get the cursor info stored in the context. |
| public boolean | Returns: boolean The in use state for the compiler context.Implements org. Return the in use state for the compiler context. |
| public JavaFactory | getJavaFactory()
Implements org. Get the JavaFactory from this CompilerContext. |
| public int | getNextColumnNumber()
Implements org. Get the current next column number (for generated column names) from this CompilerContext. |
| public int | Returns: The next equivalence class for equijoin clauses.Implements org. Get the next equivalence class for equijoin clauses. |
| public int | getNextResultSetNumber()
Implements org. Get the current next ResultSet number from this CompilerContext. |
| public int | Returns: int The next subquery number for the current statement.Implements org. Get the current next subquery number from this CompilerContext. |
| public int | getNextTableNumber()
Implements org. Get the current next table number from this CompilerContext. |
| public int | getNumResultSets()
Implements org. Get the number of Results in the current statement from this CompilerContext. |
| public int | Returns: int The number of subquerys in the current statement.Implements org. Get the number of subquerys in the current statement from this CompilerContext. |
| public int | getNumTables()
Implements org. Get the number of tables in the current statement from this CompilerContext. |
| public OptimizerFactory | Returns: The OptimizerFactory for this context.Implements org. Get the OptimizerFactory for this context |
| public List | getParameterList()
Implements org. Get the parameter list. |
| pack-priv DataTypeDescriptor[] | |
| public Parser | getParser()
Implements org. Get the Parser from this CompilerContext. |
| public int | Returns: a bitmask of which types of query fragments are to be forbiddenImplements org. Return the reliability requirements of this clause. |
| public List | Returns: The list of required privileges.Implements org.
|
| public boolean | getReturnParameterFlag()
Implements org. Is the callable statement uses ? |
| public Object[] | getSavedObjects()
Implements org. Get the saved object pool (for putting into the prepared statement). |
| public int | getScanIsolationLevel()
Implements org. Get the isolation level for the scans in this query. |
| public SortCostController | getSortCostController()
Implements org. Get a SortCostController. |
| public StoreCostController | getStoreCostController(long
The conglomerate for which to get a
StoreCostController. conglomerateNumber)Implements org. Get a StoreCostController for the given conglomerate. |
| public TypeCompilerFactory | getTypeCompilerFactory()
Implements org. Get the TypeCompilerFactory from this CompilerContext. |
| public String | getUniqueClassName()
Implements org. Get a unique Class name from this CompilerContext. |
| public SQLWarning | getWarnings()
Implements org. Get the chain of compile time warnings. |
| private void | |
| public boolean | isFirstOnStack()
Implements org. Is this the first CompilerContext on the stack? |
| public boolean | isReferenced(SequenceDescriptor sd)
Implements org. Report whether the given sequence has been referenced already. |
| public boolean | passesPrivilegeFilters(Visitable visitable)
Implements org. Return true if a QueryTreeNode passes all of the filters which determine whether the QueryTreeNode gives rise to run time privilege checks. |
| public void | popCompilationSchema()
Implements org. Pop the default schema to use when compiling. |
| public void | |
| public void | pushCompilationSchema(SchemaDescriptor
schema to use sd)Implements org. Push a default schema to use when compiling. |
| public void | pushCurrentPrivType(int
One of the privilege types in org.apache.derby.iapi.sql.conn.Authorizer. privType)Implements org. Sets the current privilege type context. |
| public void | removePrivilegeFilter(VisitableFilter vf)
Implements org. Remove a filter for determining which QueryTreeNodes give rise to privilege checks at run time. |
| public void | resetContext()
Implements org. Reset compiler context (as for instance, when we recycle a context for use by another compilation. |
| public void | resetNextResultSetNumber()
Implements org. Reset the next ResultSet number from this CompilerContext. |
| public int | scopeDepth(String scopeName)
Implements org. Get the current depth for the named scope. |
| public SchemaDescriptor | Returns: the previous compilation schema descirptorthe compilation schema newDefault)Implements org. Set the compilation schema descriptor for this compilation context. |
| public void | setCurrentAuxiliaryProviderList(ProviderList
The new current AuxiliaryProviderList. apl)Implements org. Set the current auxiliary provider list for this CompilerContext. |
| public void | setCurrentDependent(Dependent
The Dependent currently being compiled. d)Implements org. Set the current dependent from this CompilerContext. |
| public void | setCursorInfo(Object
the cursor info cursorInfo)Implements org. Set params |
| public void | setInUse(boolean
The new inUse state for the compiler context. inUse)Implements org. Set the in use state for the compiler context. |
| public void | setParameterList(List<ParameterNode>
The parameter list. parameterList)Implements org. Set the parameter list. |
| public void | setReliability(int
bitmask of types of query fragments to be forbidden
see the reliability bitmasks in CompilerContext.java reliability)Implements org. Sets which kind of query fragments are NOT allowed. |
| public void | setReturnParameterFlag()
Implements org. If callable statement uses ? |
| public void | setSavedObjects(List<Object>
The new saved objects objs)Implements org. Set the saved object pool (for putting into the prepared statement). |
| public void | setScanIsolationLevel(int
The isolation level to use. isolationLevel)Implements org. Set the isolation level for the scans in this query. |
| public boolean | skippingTypePrivileges()
Implements org. Return whether we are skipping USAGE privileges for user-defined types |
| public boolean | skipTypePrivileges(boolean skip)
Implements org. Set whether we should skip adding USAGE privileges for user-defined types |