| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| private int | |
| private ContextManager | |
| private GenericConstantActionFactory | |
| private int | |
| private boolean | isPrivilegeCollectionRequired
In Derby SQL Standard Authorization, views, triggers and constraints execute with definer's privileges. |
| private LanguageConnectionContext | |
| private ArrayList |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public final Visitable | accept(Visitor
the visitor v)Implements org. Accept a visitor, and call |
| pack-priv void | |
| public void | addTag(String tag)
Implements org. Add a tag to this Visitable. |
| pack-priv void | addUDTUsagePriv(List<ValueNode> valueNodes)
Add USAGE privilege for all UDTs mentioned in the indicated ValueNodes. |
| pack-priv void | |
| public static void | bindOffsetFetch(ValueNode
the OFFSET parameter, if any offset, ValueNode the FETCH parameter, if any fetchFirst)Bind the parameters of OFFSET n ROWS and FETCH FIRST n ROWS ONLY, if any. |
| public DataTypeDescriptor | Returns: The bound table type if originalDTD was an unbound table type; otherwise returns originalDTD.A datatype: might be an unbound UDT and might not be originalDTD)Bind the UDTs in a table type. |
| public TypeDescriptor | |
| public DataTypeDescriptor | Returns: The bound UDT if originalDTD was an unbound UDT; otherwise returns originalDTD.A datatype: might be an unbound UDT and might not be originalDTD)Bind a UDT. |
| public void | checkReliability(String
Type of fragment as a String, for inclusion in error messages. fragmentType, int Type of fragment as a bitmask of possible fragment types fragmentBitMask)Bind time logic. |
| public void | checkReliability(int
Type of fragment as a bitmask of possible fragment types fragmentBitMask, String Type of fragment as a String, to be fetch for the error message. fragmentType)Bind time logic. |
| private static boolean | |
| pack-priv DataValueDescriptor | convertDefaultNode(DataTypeDescriptor
A description of the required data type. typeDescriptor)Translate a Default node into a default value, given a type descriptor. |
| protected void | |
| public void | createTypeDependency(DataTypeDescriptor
Type which may have a dependency declared on it. dtd)Declare a dependency on a type and check that you have privilege to use it. |
| private void | createTypeDependency(AliasDescriptor ad)
Declare a dependency on an ANSI UDT, identified by its AliasDescriptor, and check that you have privilege to use it. |
| protected static void | |
| pack-priv static void | |
| pack-priv final void | disablePrivilegeCollection()
Triggers, constraints and views get executed with their definers' privileges and they can exist in the system only if their definers still have all the privileges to create them. |
| pack-priv static String | Returns: The node String reformatted with tab indentationThe node formatted as a String nodeString, int The depth to indent the given node depth)Format a node that has been converted to a String for printing as part of a tree. |
| pack-priv void | generate(ActivationClassBuilder
The ActivationClassBuilder for the class being built acb, MethodBuilder The method for the generated code to go into mb)Do the code generation for this node. |
| pack-priv void | generateAuthorizeCheck(ActivationClassBuilder acb, MethodBuilder mb, int sqlOperation)
Add an authorization check into the passed in method. |
| public int | Returns: The beginning offset of the SQL substring. -1 means unknown.Gets the beginning offset of the SQL substring which this query node represents. |
| protected final ClassFactory | |
| protected final CompilerContext | |
| pack-priv static Context | getContext(final String contextID)
Must be package protected so that user code can't call this entry point. |
| pack-priv final ContextManager | |
| public final DataDictionary | |
| pack-priv final DependencyManager | |
| public int | Returns: The ending offset of the SQL substring. -1 means unknown.Gets the ending offset of the SQL substring which this query node represents. |
| public final ExecutionFactory | |
| public final GenericConstantActionFactory | Returns: the constant action factory.Gets the constant action factory for this database. |
| protected int | Returns: The int value of the propertyProperty value as a String value, String Key value of property key)Get the int value of a Property |
| protected final LanguageConnectionContext | Returns: the lcc for this connectionGets the LanguageConnectionContext for this connection. |
| protected long | Returns: The long value of the propertyProperty value as a String value, String Key value of property key)Get the long value of a Property |
| pack-priv ConstantNode | Returns: A ConstantNode with the specified type, and a value of nullType of the null node. type)Get a ConstantNode to represent a typed null value. |
| public < the type of node to look for N extends QueryTreeNode> SortedSet | Returns: all nodes of the specified typethe type of node to look for type)Get all child nodes of a specific type, and return them in the order in which they appear in the SQL text. |
| public final OptimizerFactory | Returns: the node factory for this database.Gets the NodeFactory for this database. |
| public OptTrace | |
| public DataTypeDescriptor[] | |
| pack-priv final SchemaDescriptor | Returns: The descriptor for the schema.The name of the schema we're interested in.
If the name is NULL, get the descriptor for the
current compilation schema. schemaName)Get the descriptor for the named schema. |
| pack-priv final SchemaDescriptor | Returns: Valid SchemaDescriptor or null if raiseError is false and the schema does not exist.The name of the schema we're interested in.
If the name is NULL, get the descriptor for the current compilation schema. schemaName, boolean True to raise an error if the schema does not exist,
false to return null if the schema does not exist. raiseError)Get the descriptor for the named schema. |
| protected int | Returns: the type of statementReturn the type of statement, something from StatementType. |
| protected final TableDescriptor | Returns: The descriptor for the table, null if table does not exist.The name of the table to get the descriptor for tableName, SchemaDescriptor The descriptor for the schema the table lives in.
If null, use the current (default) schema. schema)Get the descriptor for the named table within the given schema. |
| protected final TypeCompiler | Returns: The corresponding TypeCompilerThe TypeId to get a TypeCompiler for typeId)Get the TypeCompiler associated with the given TypeId |
| public AliasDescriptor | |
| public boolean | |
| pack-priv boolean | Returns: true if need to collect privilege requirement for this nodeReturn true from this method means that we need to collect privilege requirement for this node. |
| pack-priv final boolean | Returns: true if the passed schema descriptor is for SESSION schemaChecks if the passed schema descriptor is for SESSION schema |
| pack-priv static boolean | Returns: true if the passed schema name is for SESSION schemaChecks if the passed schema name is for SESSION schema |
| public ConstantAction | makeConstantAction()
This creates a class that will do the work that's constant across all Executions of a PreparedStatement. |
| public TableName | |
| public static TableName | |
| protected String | Returns: Header information for debug printing of this query tree node.Return header information for debug printing of this query tree node. |
| public boolean | |
| public int | |
| pack-priv ValueNode | Returns: aValueNode representing the parse tree of the
SQL fragmenta fragment of an SQL statement sql, boolean true if the SQL fragment is allowed to
contain internal syntax, false otherwiseParse an SQL fragment that represents a |
| pack-priv StatementNode | parseStatement(String sql, boolean internalSQL)
Parse the a SQL statement from the body of another SQL statement. |
| private Visitable | Returns: a parse treethe SQL statement or fragment to parse sql, boolean true if it is allowed to contain internal
syntax, false otherwisetrue if sql is a full SQL statement,
false if it is a fragmentParse a full SQL statement or a fragment representing a |
| pack-priv void | printLabel(int
The depth of indentation to use when printing
the label depth, String The String to print label)Print the given label at the given indentation depth. |
| pack-priv void | |
| public boolean | Returns: true if references SESSION schema tables, else falseReturn true if the node references SESSION schema tables (temporary or permanent) |
| pack-priv TableName | Returns: Synonym TableName if a match is found, NULL otherwise.to match for a synonym tabName)Resolve table/view reference to a synonym. |
| public void | setBeginOffset(int
The beginning offset of the SQL substring. beginOffset)Sets the beginning offset of the SQL substring which this query node represents. |
| public void | setEndOffset(int
The ending offset of the SQL substring. endOffset)Sets the ending offset of the SQL substring which this query node represents. |
| pack-priv void | setRefActionInfo(long fkIndexConglomId, int[] fkColArray, String parentResultSetId, boolean dependentScan)
set the Information gathered from the parent table that is required to perform a referential action on dependent table. |
| pack-priv void | |
| public boolean | taggedWith(String tag)
Implements org. Return true if this Visitable is tagged with the indicated tag. |
| private void | throwReliabilityException(String
Type of fragment as a string, for inclusion in error messages. fragmentType, int Describes the kinds of expressions we ar suspicious of fragmentBitMask)Common code for the 2 checkReliability functions. |
| public String | Returns: This node formatted as a StringOverrides java. Format this node as a string Each sub-class of QueryTreeNode should implement its own toString() method. |
| public void | |
| pack-priv void | treePrint(int
The depth of this node in the tree, thus,
the amount to indent it when printing it. depth)Print this tree for debugging purposes. |
| pack-priv void | verifyClassExist(String
The name of the java class to resolve. javaClassName)Verify that a java class exists, is accessible (public) and not a class representing a primitive type. |