Top Description Fields Constructors Methods
org.apache.derby.impl.sql.execute.xplain

public Class XPLAINFactory

extends Object
implements XPLAINFactoryIF
Class Inheritance
All Implemented Interfaces
org.apache.derby.iapi.sql.execute.xplain.XPLAINFactoryIF
Imports
java.sql.SQLException, org.apache.derby.shared.common.error.StandardException, org.apache.derby.iapi.sql.conn.ConnectionUtil, .LanguageConnectionContext, org.apache.derby.iapi.sql.execute.xplain.XPLAINFactoryIF, .XPLAINVisitor, org.apache.derby.iapi.sql.dictionary.SchemaDescriptor

This is the module implementation of the XPLAINFactoryIF. It gets lazy-loaded when needed. The factory method determines which visitor to use. The visitor is cached in this factory for later reuse.

Field Summary

Modifier and TypeField and Description
private String
currentSchema

the current cached schema

private XPLAINVisitor
currentVisitor

the last instance of a visitor is cached

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
freeResources()

Implements org.apache.derby.iapi.sql.execute.xplain.XPLAINFactoryIF.freeResources.

uncache the visitor and reset the factory state

public XPLAINVisitor
getXPLAINVisitor()

Implements org.apache.derby.iapi.sql.execute.xplain.XPLAINFactoryIF.getXPLAINVisitor.

the factory method, which gets called to determine and return an appropriate XPLAINVisitor instance

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

currentSchemaback to summary
private String currentSchema

the current cached schema

currentVisitorback to summary
private XPLAINVisitor currentVisitor

the last instance of a visitor is cached

Constructor Detail

XPLAINFactoryback to summary
public XPLAINFactory()

Method Detail

freeResourcesback to summary
public void freeResources()

Implements org.apache.derby.iapi.sql.execute.xplain.XPLAINFactoryIF.freeResources.

uncache the visitor and reset the factory state

getXPLAINVisitorback to summary
public XPLAINVisitor getXPLAINVisitor() throws StandardException

Implements org.apache.derby.iapi.sql.execute.xplain.XPLAINFactoryIF.getXPLAINVisitor.

the factory method, which gets called to determine and return an appropriate XPLAINVisitor instance

Returns:XPLAINVisitor

Doc from org.apache.derby.iapi.sql.execute.xplain.XPLAINFactoryIF.getXPLAINVisitor.

a XPLAINVisitor to traverse the ResultSetStatistics